{"version":3,"file":"portal-4fab8c1fb5e547a4493eec4add7c0415.js","names":["define","_exports","_rest","_environment","_emberInflector","_service","_string","_class","_descriptor","_descriptor2","_initializerDefineProperty","e","i","r","l","Object","defineProperty","enumerable","configurable","writable","value","initializer","call","_defineProperty","t","Symbol","toPrimitive","TypeError","String","Number","_toPrimitive","_toPropertyKey","_applyDecoratedDescriptor","n","a","keys","forEach","slice","reverse","reduce","default","pathForType","type","pluralize","dasherize","constructor","args","super","this","host","urls","api","apiV2Path","access_token","session","data","authenticated","headers","Authorization","createRecord","store","snapshot","serialize","includeId","key","undefined","record","url","buildURL","modelName","ajax","updateRecord","id","saveBulk","records","serializedRecords","map","JSON","stringify","contentType","then","response","res","index","modelClass","modelFor","pendingRecord","mergedData","assign","serializerFor","normalize","_id","isNew","set","push","_internalModel","_recordData","_attributes","send","deleteBulk","peekRecord","deleteRecord","pendingRecordId","isDeleted","unloadRecord","prototype","inject","_jsonApi","_errors","_string2","irregular","concurrencyHandler","maxConcurrency","runningCount","queue","enqueue","asyncTask","Promise","resolve","reject","async","result","error","dequeue","length","shift","nextTask","isAuthenticated","_withRequiredMeta","query","required","requiredMetaFields","fields","split","trim","filter","Boolean","Set","join","buildQuery","options","shouldReloadAll","shouldBackgroundReloadRecord","handleResponse","status","ConnectionError","invalidate","catch","arguments","chunkArray","array","size","Array","from","Math","ceil","_","findMany","ids","snapshots","chunkSize","chunkCallbackSize","requests","chunk","and","field","op","all","acc","concat","included","simple","operatorMapping","$eq","$ne","$in","$nin","$lt","$gt","$lte","$gte","$like","$ilike","_filter","entries","isArray","operator","operand","mappedOperator","Error","findRecord","adapterOptions","URL","meta","searchParams","toString","_apiV2Adapter","EntityProductAdapter","name","ProjectProductAdapter","TaskProductAdapter","_application","_emberPowerCalendarMoment","_emberResolver","_emberLoadInitializers","_emberPowerCalendar","registerDateLibrary","App","modulePrefix","podModulePrefix","dependencies","services","hostRouter","_base","_jquery","restore","authenticate","accessToken","userId","transition","user","method","dataType","attemptedTransition","authenticator","expires_in","token_type","attributes","_rsvp","_oauth","extend","_utils","_runloop","_object","_array","_oauth2PasswordGrant","router","serverTokenEndpoint","apiV1Path","serverTokenRevocationEndpoint","refreshAccessTokens","identification","password","scope","grant_type","get","scopesString","makeArray","isEmpty","makeRequest","run","xhr","transitionTo","success","cancel","_refreshTokenTimeout","apply","A","tokenType","token","token_type_hint","succeed","_oidcConfig","waitForRedirect","startRedirect","_resolve","timer","setTimeout","clearTimeout","_bindOidcEvents","userManager","events","addUserLoaded","existingBpUser","trigger","bypassRedirect","addUserUnloaded","_isInvalidating","addAccessTokenExpiring","navigator","locks","request","ifAvailable","lock","currentUser","getUser","signinSilent","_buildSessionData","oidcUser","bpUser","buildaPrice","getMeFromIdentityId","profile","sub","window","location","search","includes","signinRedirectCallback","signinRedirect","expired","_data","logoutComplete","signoutRedirect","_forgetUser","removeUser","BREAKPOINTS","mobileMax","tablet","desktop","jumbo","ultrawide","minWidth","px","maxWidth","mobile","_component","_activeTable","_templateFactory","__COLOCATED_TEMPLATE__","createTemplateFactory","block","moduleName","isStrictMode","setComponentTemplate","layout","tagName","classNames","classNameBindings","columns","sortable","computed","sortedBy","sortDir","columnCount","totalUnits","flexibleProportion","column","width","header","create","actions","sortBy","columnToSort","toSortBy","newDir","_component2","AllocationHierarchyComponent","maxPaths","allocations","primaryAllocation","isMultiple","needsTitle","firstPart","middleParts","paths","lastPart","at","formattedPath","parts","separator","popupText","path","_tracking","_treeItem","_descriptor3","_descriptor4","_descriptor5","_descriptor6","items","constructItemTreeFromProjectAndTasks","tasks","projects","item","belongsTo","selectedItem","find","values","next","findItemInTree","numberOfInvoices","mapBy","uniqBy","toggleIsOverridingXeroAccount","isOverridingXeroAccount","xeroAccountOverride","toggleIsOverridingQuickbooksAccount","isOverridingQuickbooksAccount","quickbooksAccountOverride","tracked","action","getOwnPropertyDescriptor","buttonText","attachment","attachments","intl","onAttachmentsUploadComplete","validationErrors","onUploadComplete","isAttachmentModalVisible","numberOfAttachments","_onDelete","isDeleting","onDelete","_debug","_attachment","_descriptor7","_descriptor8","_class2","_descriptor9","_descriptor0","_descriptor1","_descriptor10","_descriptor11","_descriptor12","_descriptor13","_descriptor14","FileContainer","init","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","canManageBills","code","description","allocation","purchaseOrderItem","glAccount","quantity","unitPrice","total","icon","totalSpan","sum","span","loadedBillItems","bill","safeHasManyToValue","hasNextPurchaseOrderPage","purchaseOrdersPage","currentPage","totalPages","isActionsRunning","billActions","secondaryActions","isRunning","primaryAction","activeAttachment","allAttachments","attachmentIndex","myAttachments","sortBillItems","billItems","sort","sortIndexDiff","Date","getTime","filteredBillItemForms","billItemForms","form","allBillItemsSelected","selectedBillItemForms","someBillItemsSelected","totalPrice","bif","hasUnsavedChanges","isDirty","isBillFormValid","isValid","isTotalPriceValid","every","isBillFormPristine","isPristine","isHandlingTransition","billValidations","sortedItems","billItemValidations","hasAttachments","attachmentsVisible","validateBillForm","timeout","restartable","searchTerm","effectiveSearchTerm","contactsSearchTerm","contactsPage","contacts","contactFilter","nextPageNumber","nextPage","page","number","clearPurchaseOrderIfReferenceChanged","loadPurchaseOrders","purchaseOrderSearchTerm","purchaseOrder","resetPurchaseOrderItems","purchaseOrderItemSearchTerm","purchaseOrderItemsPage","purchaseOrderItems","purchaseOrderItemFilter","contact","issuer","aliases","setContactAliasModalVisible","billsData","reloadBills","syncToAccountingPackage","wasNew","originalIssuerContactId","confirmBillTypeMatchesTotal","showWarning","selectedIssuerContactId","issuerContactAdded","issuerContact","rollbackProperty","content","sortIndex","itemPromises","billItem","formsToDelete","f","removeObjects","addBill","accountingPlatform","sendBill","handleAccountingPackageResponse","allocating","targetStatus","removeBillAndNavigateToNext","invoicedCosts","requestDelete","isInvoiced","title","deleteCb","nextBill","querySelector","nextElementSibling","removeBill","showBillDeleteConfirmModal","on","preventInternalNavigation","preventBrowserClose","resetChangeset","willDestroy","off","viewDuplicateBills","billNumber","urlFor","URLSearchParams","triggerClose","triggerSave","triggerNextBill","current","triggerPreviousBill","previousBill","previousElementSibling","billOutsideFilter","billStatus","validateBothDescriptionAndProductCode","changeset","rollbackAttributes","abort","returnValue","nextAttachment","attachmentCount","previousAttachment","viewAttachment","findIndex","href","attachmentsUploadComplete","newAttachments","filename","extension","fileSize","uploadError","deleteAttachment","linkAttachmentsToBill","attachmentInfo","attachmentsCount","addNewBillItem","row","scrollIntoView","behavior","focus","preventScroll","toggleSelectAll","toggleSelected","stopPropagation","indexOf","toSpliced","deleteSelectedBillItemForms","purchaseOrders","purchaseOrderFilter","setIssuerContact","hadContact","savedBillHasIssuerString","contactNameMatches","results","or","searchTermEscape","pageSize","defaultBillAllocationType","setDefaultAllocationType","currentAllocationType","hasDifferentAllocationType","setPurchaseOrder","existingPurchaseOrder","purchaseOrderNumber","clearBillItemPurchaseOrderItems","reference","setBillItemPurchaseOrderItem","createIssuerContact","contactName","itemsInvalid","warning","suggestedBillType","currentBillType","billTypeChangeConfirmation","billType","sign","existingBillTypePural","existingSign","xeroLinked","handleBillTypeChange","confirmed","confirmation","changeStatusWithoutValidations","fullyMapped","changeStatus","allocate","activePlatform","label","quickbooksLinked","hasRejection","resp","rejected","billResponses","billTypeResponseHandlerVisible","filterResponses","onBillTypeResponseHandlerCancel","onBillItemAllocatorClose","wasCancelled","BillItemAllocatorComponent","onOverrideGlAccount","overriddenGlAccount","selectedItems","stagedChanges","allItemsSelected","someItemsSelected","fullyAllocatedBills","bills","stagedState","task","allocationActions","billCount","billCountLabel","isActive","acceptAllocateSend","acceptAllocate","isLoading","load","actionsDisabled","primaryActionDisabled","searchString","glAccountsPage","glAccounts","hasNextPage","loadActivePlatformGlAccounts","projectIds","p","projectTree","billIds","unallocatedItems","computeMap","itemsJson","toJSON","updateInvoiceItems","itemIds","add","_saveAllocations","onClose","_acceptBills","errorCount","oldStatus","selectedMap","mapSetFromComputeMap","targetProject","targetTask","has","onMapChange","getPath","effectivePurchasesGlAccount","clearSelectedAllocations","Map","escapeHtml","replace","BillItemSummaryComponent","allocationPaths","isAllocated","isMapped","rows","summaryText","statusLabel","replaceAll","statusIcon","statusClass","responseErrors","responses","flat","attachmentErrors","BillsTableComponent","loadMoreBills","hasOneBill","selectedBills","info","currentRoute","params","bill_id","showBillsDeleteConfirmModal","allSettled","failedUpdates","failed","hasStatusFilter","someBillsSelected","selectedBillItems","deleteConfirmText","count","scrollActiveBill","active","inline","deleteMessages","showStatusColumn","condensed","filterString","showCondensedStatusStripe","fromColumnSpan","numberColumnSpan","allocationColumnSpan","billStatusBackgroundClasses","resetSelectionOnFilterChange","currentFilter","originalFilter","billStatusStripeClasses","navigateToBill","closeAllocator","getPurchaseOrderMatchingStatus","purchaseOrderDetails","BillsTableThComponent","state","endsWith","toggleOrderBy","onOrderBy","_stringSimilarity","_esm","_moment","_parseCurrencyString","_placemakersBillCsvNormalizer","_bunningsBillCsvNormalizer","normalizeColumnValue","toLowerCase","ParserError","getValidationMessages","flatMap","validation","TrimValue","BillsFile","sampleRows","csv","columnsLength","columnTypeOptions","matches","columnTypes","_findLikelyColumnTypes","columnTypeForm","_generateColumnTypeForm","validator","_key","changes","rv","v","validatorMap","bestMatch","option","rating","normalizedMatches","findBestMatch","base64","parse","bom","skip_empty_lines","relax_column_count","read","csvText","atob","write","end","parseCsvFromBase64","_e","skipNoneDescriptionRows","billFile","contactChangeSet","validationMessages","billsMap","noDescriptionIndexes","rowIndex","getColumn","colIndex","colType","invoiceNumber","productCode","parseFloat","abs","rawIssueDate","parsedIssueDate","ISO_8601","issueDate","toDate","rawDueDate","parsedDueDate","dueDate","getBillDueDate","allocationType","source","invalidProductRowIndexes","importedBills","findExistingBills","existing","saveBills","failedBills","billAttrs","billData","subtotal","onUploadBillsCSV","clearDuration","setContact","onClear","billFileItems","skipNoneDescriptionRowsAndUpload","uploadBills","onUpload","parseCsvFromAttachment","isPlaceMakersBillCsv","isBunningsBillCsv","entityId","uniqueBillNumbers","existingBills","peekAll","grouped","existingBill","new","importNewBillsOnly","importAllBills","contactValidator","bind","_c3Chart","steps","calc","inputs","chars","PLUS","MINUS","MULTIPLY","DIV","step","char","_formatNumber","metrics","date","endOf","periodType","table","metric","format","series","period","objectAt","toISOString","formatNumber","reverseColors","min","max","height","gauge","_ratio","places","dashZero","show","units","color","colors","pattern","threshold","unit","legend","position","dates","seriesMeta","start","currentPeriod","seriesIndex","periods","s","group","periodIndex","unshift","x","axis","reduction","yAxisPlaces","longest","longestLength","floor","setsOfThree","reductionText","pow","tick","y","text","grid","tooltip","sigfigs","numberLength","markEmptySeries","markNegativeSeries","markEmpty","markNegative","validateTitle","questionId","question","deleteQuestion","showEditQuestion","addNewQuestion","newQuestionTitle","checklist","hasDirtyAttributes","editQuestion","questionValidator","saveChecklist","setFocus","onChangeNewQuestionInput","hidingChildren","attributeBindings","tmpId","deleteAccount","account","createChildAccount","toggleHidingChildren","toggleProperty","toggleIsEditingDescription","saveDescription","didInsertElement","_super","hover","addClass","removeClass","nestedSortable","handle","helper","excludeRoot","toleranceElement","placeholder","update","updateList","accounts","nestingData","beginPropertyChanges","line","findBy","item_id","parent_id","left","children","filterBy","endPropertyChanges","_comboBox","tlc","string","finderVisible","selectedRow","is","activeValue","willDestroyElement","willRender","finderNotVisible","filteredOptions","activeDisplayName","setFinderVisible","visible","isDestroyed","isDestroying","keyDown","keyCode","newSelectedRow","keyUp","keepSelectedRowVisible","selectedRowIndex","$row","$container","top","scrollTop","outerHeight","unSetHighlight","setItem","_comboButton","showDropdown","focusOut","onButtonClick","holdFocus","confirmText","onCancel","allowDelete","getElement","clearTarget","longPressed","targetPosition","setTarget","withScroll","disabled","menuVisible","bindEvents","container","containerId","button","buttonId","setAttribute","containerContextMenuListener","onContainerContextMenu","containerClickListener","onContainerClick","containerMouseDownListener","onContainerMouseDown","containerMouseUpListener","onContainerMouseUp","containerFocusOutListener","onContainerFocusOut","buttonClickListener","removeEvents","random","clientX","clientY","longPressTimeout","onContainerLongPress","buttonRect","getBoundingClientRect","bottomRightX","right","scrollX","bottomRightY","bottom","scrollY","relatedTarget","parsePx","pxValue","parseInt","isVisible","innerHeight","innerWidth","onScroll","menuElement","parentElement","initialPosition","rect","parentRect","style","scrollLeft","scrollParent","scrollParentScrollListener","positionMenuFixed","removeProperty","originalDirection","checkedAllDirections","menuRect","menuStyle","getComputedStyle","menuOuterWidth","borderLeftWidth","paddingLeft","borderRightWidth","paddingRight","menuOuterHeight","borderTopWidth","paddingTop","borderBottomWidth","paddingBottom","overflowY","getPropertyValue","findFirstScrollableParent","passive","_dashboardItem","mouseEnter","mouseLeave","_evented","_account","_kpi","_entity","_entityGroup","groups","selectedKpis","selectedAccounts","selectedEntityGroups","selectedEntities","isMac","platform","canAccessEntities","canAccessEntityGroups","parentEntity","parenEntityFilter","canAccessMultipleEntities","role","readableForCurrentOrganisation","treeExpansion","kpis","profitAndLoss","balanceSheet","otherData","entities","entityGroups","isFirstStep","equal","isLastStep","singleMetric","multipleSeries","correctMetricCount","observer","module","getProperties","setProperties","correctSeriesCount","setSelectedKpis","kpiIds","allKpisInStore","setSelectedAccounts","accountIds","allAccountsInStore","setSelectedEntityGroups","entityGroupIds","allEntityGroupsInStore","setSelectedEntities","entityIds","allEntitiesInStore","setAccounts","depth","selectedMetric","kpi","dashboardModule","selectedSeries","includeCurrentEntity","entityGroup","advance","back","prev","withoutSaving","savePromises","model","updateEntityGroups","_newSelection","operation","updateEntities","updateKpis","updateAccounts","toggleIsDeleting","delete","toggleTree","cache","isEditing","updateMetrics","visualiser","subtract","linkDashboardModuleToAccounts","linkDashboardModuleToKpis","linkDashboardModuleToEntities","linkDashboardModulesToEntityGroups","includeCurrent","loadBalances","getMetrics","loadKpiValues","setMetrics","err","responseJSON","attemptToCorrectPermissionsError","periodTypes","hasData","payload","periodStart","periodEnd","cacheKey","merge","cached","lookup","loadGroups","disallowedGroups","detail","match","startingLength","toggleIsEditing","_makeTempId","modules","tree","spare","saveModulePositions","resizeEvent","createEvent","initEvent","dispatchEvent","$dashboardModules","later","each","section","dataset","moduleId","positionX","positionY","checkRowCount","$section","put","makeNewRowsSortable","component","nativeSortable","animation","pull","onSort","onAdd","onRemove","createModule","getEntity","includeCurrentBranch","isNewModule","finally","deleteModule","col","saveModsToRight","m","_dateInput","elementId","isTarget","hasTarget","focusDateInput","selectAndDeactivate","handleDateInput","toggle","today","didReceiveAttrs","setupAttrs","startDate","endDate","daysFromCenter","round","diff","center","dateString","isPicking","isThisYear","isSame","isSameYear","applyFilter","closeDropdown","onApply","thisWeek","calendar","startOf","calendarSelect","lastWeek","thisFortnight","lastFortnight","thisMonth","lastMonth","didOpen","willClose","range","changeCenter","currentFile","isDragAndDropVisible","emptyContent","isDelete","tableData","removeAttachment","filteredFiles","shortcutsToMime","image","archive","validationError","fileName","fileContainersForUpload","onDragLeave","isDropHover","onDragOver","processAttachments","DragSortListComponent","eachKey","containers","DSLContainer","buildContainers","list","setDraggedContainer","draggedContainer","sourceId","targetId","sortAction","onUpdate","newContainerList","unwrap","coordinates","containerList","clone","sourceCoordinates","c","targetCoordinates","sourceContainer","targetContainer","sourceList","sourceIndex","splice","targetList","targetIndex","newContainer","_buildContainers","prefix","dslId","DragSortListChildrenComponent","DragSortListDragHandleComponent","cursorClass","disableDragging","isDragging","DragSortListDraggableComponent","isDraggingOntoSelf","isDraggingInsideSelf","onDragStart","setData","onDragEnter","cursorYPos","originalEvent","pageY","elementTop","currentTarget","documentElement","elementHeight","offsetHeight","heightOffset","third","inTopThird","inBottomThird","inMiddleThird","isDroppingAbove","isDroppingInto","isDroppingBelow","onDrop","getData","onDragEnd","_durationInput","formatDuration","duration","handleFocus","selectOnFocus","requestAnimationFrame","handleBlur","rawValue","parseDuration","onDurationChange","couponCode","calEducationCouponCode","_positionedContainer","_basicDialog","_inPlaceDialog","_liquidDialog","_liquidTetherDialog","_tetherDialog","_overlay","_emberWormhole","parentNames","allowedEntities","aString","bString","localeCompare","hasParentColumn","filteredEntities","changeEntity","setProjectedRemaining","hours","manHoursProjectedTotal","manHoursActual","setProjectedRemainingTotal","costCenter","_faIcon","change","_basicImporter","baseParser","baseParserComponent","importObserver","importing","_ember","_fileField","reader","FileReader","sanitizedText","Papa","skipEmptyLines","newline","complete","readAsText","testing","onload","_dec","testMimes","tm","mime","doc","docx","pdf","ppt","pptx","rtf","xls","xlsx","extensionToMime","audio","video","defaultSize","hasBackgroundImports","canMap","setHasImported","selectedSystemDidChange","hasClass","optionsTemplate","system","unmapped","resetImport","remap","invertMap","setSelectedSystemValue","matchedSystem","systems","sys","selectSystem","manualUpdate","balance","revertToAuto","toggleConfigPane","colsPerGroup","totals","plBs","drCr","month","ytd","continuous","toggleShowChildren","toggleShowBreakdown","toggleFilter","valueWithUnit","suffix","emptyPlaceholder","currencyValue","formatterOptions","isUpdating","formatter","val","parseNumber","editRawValue","formatClassName","isZero","doWarnForZero","warnOnZero","displayFormattedValue","handleInput","handleFocusIn","handleFocusOut","isNaN","parsed","parserOptions","defaultValue","wasUpdated","_fromElsewhere","_banklink","_empower","_frameworks","_gjGardner","_itmManual","_maxim","_myobAo","_myob","_prostix","_rees","$fileInput","$fileInputClone","replaceWith","xeroIntegration","getXeroBalances","financialPortalPeriodSelector","_xeroCsv","GoogleMapComponent","registerControl","pendingControls","attachControls","pending","wrapper","controls","google","maps","ControlPosition","MutationObserver","classList","remove","disconnect","observe","childList","controlObservers","disconnectControlObservers","setupMap","lat","lng","radius","minRadius","maxRadius","hasLocation","zoom","clickableIcons","mapTypeId","MapTypeId","HYBRID","mapId","googleMaps","mapTypeControl","mapTypeControlOptions","TOP_RIGHT","clickListener","addListener","handleMapClick","mapListeners","marker","AdvancedMarkerElement","circle","Circle","strokeColor","strokeOpacity","strokeWeight","fillColor","fillOpacity","clickable","editable","radiusListener","isProgrammaticUpdate","newRadius","getRadius","isClamped","setRadius","onRadiusChange","centerListener","newCenter","getCenter","onClick","newLat","latLng","newLng","updateMap","panTo","currentCenter","latDiff","lngDiff","setCenter","currentMapRadius","setMap","fitMapToCircle","setZoom","getMap","bounds","getBounds","fitBounds","listener","removeListener","getAxes","GroupingSelectorComponent","gs","axes","onChange","noneOption","level","updatedValue","getOptions","remainingGroups","opt","isSelected","g","IconButtonComponent","sizeClass","onChangeIndeterminate","indeterminate","onScrollEventListener","scrollableParent","el","clientHeight","scrollHeight","isNearScrollBottom","currentPosition","lastTriggerPosition","onLoadMore","didInsert","maybeLoadOnInsert","prevHeight","newHeight","synced","exported","imported","_roundNumber","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","HELD","taskErrors","onTaskSelect","openTaskSelector","_chunkCallback","changeSet","selectedTaskIds","isCreatingProduct","taskProductIds","activeTasks","orderQty","remainingQty","orderedQuantity","breadcrumbs","taskProduct","pristineProducts","textClass","onChangeOrderQty","extraData","onClickButton","addOrderQty","canAddProducts","canUseTasks","canManageProducts","removeProjectFilter","removeAllTaskFilters","removeSelectedTask","showTaskPopUp","filteredSelectTasks","setSelectedTasks","hasOrderQuantity","orderQuantityIndex","_radioButton","_internals","guidFor","_emberLocalStorage","storageFor","referralPromotionIsDismissed","persistedSettings","userEmail","email","encodeURI","openPromotion","openDismissModal","dismissModalVisible","confirmReferralPromotionDismiss","_dec2","_dec3","_dec4","_dec5","_dec6","tableIsHeightConstrained","heightClass","widthClass","borderClass","borderStyle","classes","filterData","filteredData","tableIndex","cell","filterValue","hasValue","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","onItem","taskRecord","language","LocaleManager","applyLocale","DateHelper","ProjectLines","Gantt","smoothZoom","visibleDate","scrollTaskIntoViewOnCellClick","animate","highlight","autoLoad","trackProjectSettings","listeners","loadStart","ganttIsLoading","loadFail","loadCanceled","autoRecord","recordingstop","redoCount","undoCount","restoringstop","queueReset","resetUndoRedoQueuesAfterLoad","silenceInitialCommit","autoCalculatePercentDoneForParentTasks","transport","mode","credentials","referrerPolicy","fillTicks","ganttFillTicksEnabled","subGridConfigs","locked","ganttTableCollapsed","ganttSubGridConfigsEnabled","normal","subGridCollapse","syncSubGridSetting","subGridExpand","showTaskColorPickers","features","cellEdit","addNewAtEnd","dependencyEdit","ganttDependenciesEnabled","ganttLabelsEnabled","criticalPaths","ganttCriticalPathsEnabled","nonWorkingTime","ganttNonWorkingTimeEnabled","columnLines","ganttColumnLinesEnabled","rollups","ganttRollupsEnabled","progressLine","ganttProgressLineEnabled","parentArea","ganttParentAreaEnabled","timeRanges","showCurrentTimeLine","cls","projectLines","percentBar","allowResize","rowReorder","pdfExport","exportDialog","orientationField","rowsRangeField","scheduleRangeField","exportServer","ganttExportServer","clientURL","translateURLsToAbsolute","sendAsBinary","taskEdit","generalTab","percentDone","effort","resourcesTab","advancedTab","constraintDateField","projectsById","selected_projects","projectIsSetting","onSetProjects","onSyncGantt","ganttChartIsVisible","manageableProjects","canUseImportAndManage","_ganttFillTicksEnabled","_ganttSubGridConfigsEnabled","subGrids","_ganttTableCollapsed","_ganttDependenciesEnabled","_ganttLabelsEnabled","_ganttCriticalPathsEnabled","_ganttNonWorkingTimeEnabled","_ganttColumnLinesEnabled","_ganttRollupsEnabled","_ganttProgressLineEnabled","_ganttParentAreaEnabled","toggleSetting","subGrid","onZoomInClick","zoomIn","onZoomOutClick","zoomOut","onCollapseAllClick","expandAll","onUndo","canUndo","undo","onRedo","canRedo","redo","onExpandAllClick","collapseAll","onShiftPreviousClick","shiftPrevious","onShiftNextClick","shiftNext","onZoomToFitClick","zoomToFit","leftMargin","rightMargin","onGoToTodayClick","onSearchChange","searchFilterRegex","searchValue","nbrDecimals","downloadPDF","showExportDialog","onTaskImportModalClose","reloadProject","initializeGanttChart","taskImportModalVisible","hasChargebeeSubscription","openChargebee","buildaPriceLogoSrc","BUILDA_PRICE","_nest","nestedAccounts","debitCreditMatchesParent","childAccounts","addLine","lastAccount","highestIndex","newAccount","isHeading","createAccount","cancelDelete","doDelete","parentAccount","remainingChildren","profitAndLossData","balanceSheetData","otherDataData","setAccountProperties","queuedSave","toggleDebitCredit","_dashboard","_editRecord","firstClosedPeriodLabel","firstClosedPeriodExplanation","openAllPeriods","setFirstClosedPeriod","firstClosedPeriod","firstClosedMonth","firstClosedYear","years","currentYear","months","_membership","propertyToToggle","noEditGroups","tableContent","branch","branchId","isInGroup","groupMembers","existingMember","canAccessGroup","accessItems","existingAccess","access","addNewGroup","deleteGroup","cancelDeleteGroup","confirmDeleteGroup","reason","saveGroups","saveLinks","saveAll","hasOtherData","otherDataAccounts","balanceCalculator","calcBalances","addValue","application","importController","editedMaps","stepName","multipleFiles","visibleSystems","selectedSystem","importSystem","entitySystem","switchSystem","getBranch","isConfiguring","unusedMaps","extBals","extBal","accountList","imp","balances","colspan","_getAccountDepth","importMaps","newMaps","externalId","mapRecord","importBalances","systemKey","previousSystemKey","newBalances","oldBalances","combineBalances","oldBals","newBals","newBalExtIds","oldBal","onEditMap","toggleEditing","toggleClass","currentId","oldMaps","oldMap","allMaps","mapsToSave","uniq","manBals","saveImport","saveMaps","currentStep","transitionToOnSave","transitionToOnDelete","_sortAccounts","monthVisible","ytdVisible","focusToggle","targets","breakdown","sourceValues","targetValue","actualValue","isBalanceTarget","isKpiTarget","showYtd","hasBreakdown","showBreakdown","monthTarget","computedValue","monthActual","monthDifference","computedDifference","monthArrowClasses","computedArrow","ytdTarget","ytdActual","ytdDifference","ytdArrowClasses","accountTargets","balanceTargets","untargetedAccounts","untargeted","kpiTargets","untargetedKPIs","checkingEmpty","arrayOfResults","addTarget","savedTarget","removeTarget","targetRecord","emptyLines","field1","field2","value1","value2","metricsKey","targetedKey","targeted","_generic","dataKeyPrefix","accountSettings","hideChildrenKey","canSeeBreakdown","colSpan","orderedEntities","initOrderedEntities","accountsSortedByEntity","applySetting","setting","hide","cloneDeep","sortByEntity","pageAsCSV","downloadSheet","existingSetting","togglePrintableTrue","groupNumber","shiftFarLeft","scopedEntity","otherEntities","hideChildren","csvBuilder","generateMetaDataRows","lastYearVisible","percentageVisible","profitAndLossTableVisible","selectedGroupIds","selectedGroups","selectedEntityIds","newUserData","financialsTableColspan","createNewUser","isItmPLInvite","createUserAjax","selectEntity","selectGroup","setProfitAndLossTableVisible","boolean","toggleYtdVisible","toggleMonthVisible","createRows","recurse","percentSales","percentParent","percentages","totalTitle","getPercentValue","repeat","monthPrev","ytdPrev","getSelectedItemName","entityNames","percentSalesHeadings","pAndLHeadingRow","pAndLContent","expensesHeadingRow","expensesContent","generateDataRows","interval","dateRange","age","durationOptions","intervalOptions","applyAccountSettings","intervalCount","linkToDetail","kpisSortedByEntity","groupId","currentStats","stats","chartPeriod","selectedPeriodData","periodDate","noData","watchchecked","goToModule","mod","outsideLink","slug","selectedDisplayOption","displayOptions","readyToDelete","deleting","showInvalid","referenceDirectives","openReferenceDirectives","closedReferenceDirectives","accountDirectives","openAccountDirectives","closedAccountDirectives","unusedAccounts","usedCodes","duplicates","duplicatesFound","isDuplicate","diplicatesPresent","directives","addDirective","kind","newDirective","unshiftObject","deleteDirective","showSyncIcon","isLinkedToActiveAccountingPlatform","disableForm","canEditGlAccounts","handleAccountsUpdated","handleAccountsRemoved","selectedAccountIds","isDeletingAccounts","onSelectAllAccounts","onClickGlAccountName","onSelectAccount","addNewGlAccount","loadedAccounts","validateEntityContent","businessNumber","companyLogo","lastLogo","updatedEntity","businessNumberLabel","taxNumberLabel","autoClear","toggleAdditionalLabourMargin","updateLogo","entityModel","previewImage","clearLogo","updateContacts","isContactLinkedToAccountingPlatform","onChangeSyncWithAccountingPlatform","createContact","aliasName","aliasNameInput","supplierChangeset","currentAliases","showAddAliasModal","isDeletingSupplier","aliasesTableData","removeAlias","aliasesTableHeader","canEditSupplier","saveSupplier","deleteSupplier","deleteSupplierDisabledTitle","isLinkedToResources","filteredAliases","closeAddAliasModal","duplicateSuppliers","getDuplicateSuppliers","mergeOptions","needDeleteSuppliers","selectedSupplierIds","isDeletingSuppliers","needDeleteXeroSuppliers","updateSupplierList","mergeDuplicateSuppliers","actionData","optionsIndex","mergeIndex","updateIds","selectableSuppliers","supplierTableHeader","supplierHeader","onSelectAllSuppliers","supplierTableData","isLinkedToAccountingPlatform","selectionDisabledTitle","supplierData","onClickSupplierName","viewContactLabel","onClickViewAccountingPlatform","contactPerson","contactNumber","onSelectSupplier","onDeletingSuppliers","xeroContactId","viewContactUrl","openMergeDuplicateSuppliersDialog","onMergeDuplicateSuppliers","onCheckingDuplicateSuppliers","closeDuplicateSupplierModal","hasDuplicateSuppliers","goNewSupplier","_ipsConnection","setEntityFeatures","getUsage","connect","stores","selectedItmStores","requestIntegrationAjax","itmSuppliers","statusText","xeroCompanyId","companyId","xeroCompanyName","companyName","shortCode","allowedXeroIntegration","quickbooksUrl","xeroConnection","connection","ipsConnectionValidator","eaccountsInvoiceIntegration","allowed","requestableItmStores","requestedItmStores","addItmStoreRequest","contactSupport","helpCenter","helpCenterActive","openHelpCenter","cancelItmStoreRequest","reconnectITmStoreRequest","inviteUserAjax","destroyAttribute","userChangeset","canManageUser","loginAs","entityAttributesToAdd","entityAttributesToRemove","workersToAdd","isCompanyAdministrator","administratorAttributes","canManageEverything","managerAttributes","canViewBills","canViewTimesheets","canViewProjects","canViewProjectsAttributes","canManageWorkersAttributes","canViewWorkers","canViewWorkersAttributes","canViewPayrollReports","canViewPayrollReportsAttributes","canEstimate","canManageEstimateSettings","canManageEstimateSettingsAttributes","canUseReportBuilderReport","canUseReportBuilderReportAttributes","canManageIntegrations","canManageIntegrationsAttributes","handleEntityAttributes","handleWorkers","workerCount","includesClaimsAboutWorker","canManageNotes","canViewNotes","settingsPermissionsCount","settingsPermissionsVisible","_settingsPermissionsVisible","canEditUser","canManageUserPermissions","_entityAttributesToRemove","existingEntityAttributes","existingWorkerAttributes","canViewUsers","canViewUsersAttributes","canManageUsersAttributes","canViewFinancialReporting","canViewFinancialReportingAttributes","canManageFinancialReporting","canManageFinancialReportingAttributes","permissionsDescription","financialReportingPermissionsCount","financialReportingPermissionsVisible","_financialReportingPermissionsVisible","authCode","clipboard","writeText","_getDefaultLanguage","languages","workerChangeset","permissionChangeset","confirmMessage","canDeleteWorker","backdateChargeOutRateChangeSet","backdateCostRateChangeSet","validateChargeOutRateContent","validateCostRateContent","numberOfTimesheetsUpdated","costRates","getEmployees","accountingPlatformEmployees","getEarningRates","xeroEarningsRates","canUseWorkerType","canUsePayRate","canUseCostRate","canUseWorkerCostCalculator","canUseChargeOutRate","canUseBackdateChargeOutRate","canUseBackdateCostRate","workerTypes","setDefaultChargeOutRate","initBackdateChargeOutRateChangeset","backdateChargeOutRateMap","initBackdateCostRateChangeset","backdateCostRateMap","copyAuthCode","copiedAuthCode","validateUserContent","addOrRemoveHAndSPerm","userCanManageHealthAndSafety","setLocale","currentPassword","oldPassword","newPassword","confirmPassword","changePassword","closePasswordModal","passwordModalVisible","terms","initUserCanManageHealthAndSafety","hasManage","hasCreate","resetPassword","signOut","tokenExpired","resetPasswordForm","passwordConfirmation","clearAll","handleRequestPasswordReset","_dataAdapter","time","hhmmss","second","compact","notation","EUR","USD","NZD","CNY","AUD","GBP","_and","_helper","_regexp","appVersion","version","APP","versionOnly","hideSha","shaOnly","hideVersion","showExtended","versionExtendedRegExp","versionRegExp","shaRegExp","_assign","param","camelCaseWords","word","_camelize","camelize","_cancelAll","_capitalize","capitalize","_changesetGet","_changesetSet","changesetSet","_changeset","_collectionToArray","chunks","_classify","classify","convertToTitleCase","txt","charAt","_dasherize","dateAgo","thatMoment","fromNow","_element","ellipsisTextCharacters","maxCharacters","truncatedText","ellipsisTextWords","maxWords","truncatedWords","truncatedString","_emberPowerCalendarDayClasses","_emberPowerSelectIsEqual","_emberPowerSelectIsGroup","_emberPowerSelectIsSelectedPresent","_util","EnsureSafeComponentHelper","_eq","compute","excludesSomeFeatureFlags","fileSizeToString","bytes","si","dp","thresh","_formatDate","_formatMessage","NaN","DASH","isPercentage","MINUS_SIGN","MIN_SAFE_INTEGER","MAX_SAFE_INTEGER","formatAs","rawNumber","standardizeInput","finalize","calcPlaces","rounded","factor","padded","pointIndex","pad","formatNegativeSign","len","addCommas","currencySymbol","symbol","addCurrencySymbol","applyDecoration","flags","raw","parsedInput","roundsToZero","isNegative","_formatRelative","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","projectCount","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","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/timesheets.js","portal/routes/embed/timesheets/timesheet.js","portal/routes/entity-loading.js","portal/routes/entity.js","portal/routes/entity/builda-price.js","portal/routes/entity/builda-price/dashboard/index.js","portal/routes/entity/builda-price/index.js","portal/routes/entity/builda-price/operations/documents.js","portal/routes/entity/builda-price/operations/documents/index.js","portal/routes/entity/builda-price/operations/documents/project-file.js","portal/routes/entity/builda-price/operations/documents/project-file/index.js","portal/routes/entity/builda-price/operations/documents/project-file/task-file.js","portal/routes/entity/builda-price/operations/incoming/bills-legacy.js","portal/routes/entity/builda-price/operations/incoming/bills-legacy/bill.js","portal/routes/entity/builda-price/operations/incoming/bills.js","portal/routes/entity/builda-price/operations/incoming/bills/bill.js","portal/routes/entity/builda-price/operations/incoming/index.js","portal/routes/entity/builda-price/operations/incoming/invoices/index.js","portal/routes/entity/builda-price/operations/incoming/invoices/invoice.js","portal/routes/entity/builda-price/operations/incoming/statements.js","portal/routes/entity/builda-price/operations/incoming/timesheets.js","portal/routes/entity/builda-price/operations/incoming/timesheets/index.js","portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet-loading.js","portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet.js","portal/routes/entity/builda-price/operations/index.js","portal/routes/entity/builda-price/operations/outgoing/index.js","portal/routes/entity/builda-price/operations/outgoing/invoices/index.js","portal/routes/entity/builda-price/operations/outgoing/invoices/invoice.js","portal/routes/entity/builda-price/operations/outgoing/payroll.js","portal/routes/entity/builda-price/operations/outgoing/purchase-orders.js","portal/routes/entity/builda-price/operations/outgoing/purchase-orders/index.js","portal/routes/entity/builda-price/operations/outgoing/purchase-orders/purchase-order.js","portal/routes/entity/builda-price/operations/outgoing/report-builder/csv.js","portal/routes/entity/builda-price/operations/outgoing/report-builder/excel.js","portal/routes/entity/builda-price/operations/outgoing/report-builder/index.js","portal/routes/entity/builda-price/operations/outgoing/report-builder/pdf.js","portal/routes/entity/builda-price/operations/products.js","portal/routes/entity/builda-price/projects.js","portal/routes/entity/builda-price/projects/index.js","portal/routes/entity/builda-price/projects/project.js","portal/routes/entity/builda-price/projects/project/documents.js","portal/routes/entity/builda-price/projects/project/estimates/estimate.js","portal/routes/entity/builda-price/projects/project/estimates/index.js","portal/routes/entity/builda-price/projects/project/financials.js","portal/routes/entity/builda-price/projects/project/health-and-safety.js","portal/routes/entity/builda-price/projects/project/index.js","portal/routes/entity/builda-price/projects/project/people.js","portal/routes/entity/builda-price/projects/project/people/clients/client.js","portal/routes/entity/builda-price/projects/project/people/clients/index.js","portal/routes/entity/builda-price/projects/project/people/index.js","portal/routes/entity/builda-price/projects/project/people/subcontractors/index.js","portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor.js","portal/routes/entity/builda-price/projects/project/people/users/index.js","portal/routes/entity/builda-price/projects/project/people/users/user.js","portal/routes/entity/builda-price/projects/project/people/workers/index.js","portal/routes/entity/builda-price/projects/project/people/workers/worker.js","portal/routes/entity/builda-price/projects/project/prices.js","portal/routes/entity/builda-price/projects/project/products.js","portal/routes/entity/builda-price/projects/project/progress.js","portal/routes/entity/builda-price/projects/project/settings.js","portal/routes/entity/builda-price/projects/project/stage-payments.js","portal/routes/entity/builda-price/projects/project/tasks/index.js","portal/routes/entity/builda-price/projects/project/tasks/task.js","portal/routes/entity/builda-price/projects/project/tasks/task/documents.js","portal/routes/entity/builda-price/projects/project/tasks/task/financials.js","portal/routes/entity/builda-price/projects/project/tasks/task/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/client.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/users/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/users/user.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/workers/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/workers/worker.js","portal/routes/entity/builda-price/projects/project/tasks/task/products.js","portal/routes/entity/builda-price/projects/project/tasks/task/settings.js","portal/routes/entity/builda-price/reports/company/forecast-breakdown.js","portal/routes/entity/builda-price/reports/company/invoicing.js","portal/routes/entity/builda-price/reports/company/labour-hours.js","portal/routes/entity/builda-price/reports/company/notes.js","portal/routes/entity/builda-price/reports/company/position.js","portal/routes/entity/builda-price/reports/company/profit-margins.js","portal/routes/entity/builda-price/reports/company/wip.js","portal/routes/entity/builda-price/reports/index.js","portal/routes/entity/builda-price/reports/projects/index.js","portal/routes/entity/builda-price/reports/projects/project.js","portal/routes/entity/builda-price/reports/projects/project/access.js","portal/routes/entity/builda-price/reports/projects/project/budget/index.js","portal/routes/entity/builda-price/reports/projects/project/budget/task.js","portal/routes/entity/builda-price/reports/projects/project/budget/task/index.js","portal/routes/entity/builda-price/reports/projects/project/chargeup/index.js","portal/routes/entity/builda-price/reports/projects/project/chargeup/task.js","portal/routes/entity/builda-price/reports/projects/project/chargeup/task/index.js","portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/index.js","portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/task.js","portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/task/index.js","portal/routes/entity/builda-price/reports/projects/project/cost.js","portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/index.js","portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/task.js","portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/task/index.js","portal/routes/entity/builda-price/reports/projects/project/index.js","portal/routes/entity/builda-price/reports/projects/project/invoicing/index.js","portal/routes/entity/builda-price/reports/projects/project/invoicing/task.js","portal/routes/entity/builda-price/reports/projects/project/invoicing/task/index.js","portal/routes/entity/builda-price/reports/projects/project/labour-hours/index.js","portal/routes/entity/builda-price/reports/projects/project/labour-hours/task.js","portal/routes/entity/builda-price/reports/projects/project/labour-hours/task/index.js","portal/routes/entity/builda-price/reports/projects/project/notes.js","portal/routes/entity/builda-price/reports/projects/project/position/index.js","portal/routes/entity/builda-price/reports/projects/project/position/task.js","portal/routes/entity/builda-price/reports/projects/project/position/task/index.js","portal/routes/entity/builda-price/reports/projects/project/profit-margins/index.js","portal/routes/entity/builda-price/reports/projects/project/profit-margins/task.js","portal/routes/entity/builda-price/reports/projects/project/profit-margins/task/index.js","portal/routes/entity/builda-price/reports/projects/project/quote/index.js","portal/routes/entity/builda-price/reports/projects/project/quote/task.js","portal/routes/entity/builda-price/reports/projects/project/quote/task/index.js","portal/routes/entity/builda-price/scheduling.js","portal/routes/entity/builda-price/scheduling/index.js","portal/routes/entity/builda-price/scheduling/timeline.js","portal/routes/entity/disabled.js","portal/routes/entity/financials.js","portal/routes/entity/financials/chart-of-accounts.js","portal/routes/entity/financials/dashboard-loading.js","portal/routes/entity/financials/dashboard.js","portal/routes/entity/financials/general.js","portal/routes/entity/financials/groups.js","portal/routes/entity/financials/groups/access.js","portal/routes/entity/financials/groups/index.js","portal/routes/entity/financials/groups/membership.js","portal/routes/entity/financials/groups/order.js","portal/routes/entity/financials/import.js","portal/routes/entity/financials/import/data.js","portal/routes/entity/financials/import/done.js","portal/routes/entity/financials/import/index.js","portal/routes/entity/financials/import/start.js","portal/routes/entity/financials/index.js","portal/routes/entity/financials/kpis.js","portal/routes/entity/financials/kpis/index.js","portal/routes/entity/financials/kpis/kpi.js","portal/routes/entity/financials/planning/strategies.js","portal/routes/entity/financials/reports/general-ledger/balance-sheet.js","portal/routes/entity/financials/reports/general-ledger/base.js","portal/routes/entity/financials/reports/general-ledger/itm-profit-and-loss.js","portal/routes/entity/financials/reports/general-ledger/other-data.js","portal/routes/entity/financials/reports/general-ledger/personal-data.js","portal/routes/entity/financials/reports/general-ledger/profit-and-loss.js","portal/routes/entity/financials/reports/imports.js","portal/routes/entity/financials/reports/index.js","portal/routes/entity/financials/reports/kpis/index.js","portal/routes/entity/financials/reports/kpis/kpi.js","portal/routes/entity/index.js","portal/routes/entity/module-dashboard.js","portal/routes/entity/settings/auto-mapping.js","portal/routes/entity/settings/chart-of-accounts/chart-of-account.js","portal/routes/entity/settings/chart-of-accounts/index.js","portal/routes/entity/settings/company.js","portal/routes/entity/settings/contacts/contact.js","portal/routes/entity/settings/contacts/index.js","portal/routes/entity/settings/estimates/embedded-page.js","portal/routes/entity/settings/index.js","portal/routes/entity/settings/integrations.js","portal/routes/entity/settings/people/clients/client.js","portal/routes/entity/settings/people/clients/index.js","portal/routes/entity/settings/people/index.js","portal/routes/entity/settings/people/subcontractors/index.js","portal/routes/entity/settings/people/subcontractors/subcontractor.js","portal/routes/entity/settings/people/users/index.js","portal/routes/entity/settings/people/users/user.js","portal/routes/entity/settings/people/workers/index.js","portal/routes/entity/settings/people/workers/worker.js","portal/routes/entity/settings/profile.js","portal/routes/error.js","portal/routes/index.js","portal/routes/initiate-password-reset.js","portal/routes/loading.js","portal/routes/login-redirect.js","portal/routes/login.js","portal/routes/logout-redirect.js","portal/routes/no-access.js","portal/routes/reset-password.js","portal/routes/terms-of-service.js","portal/serializers/api-v2-serializer.js","portal/serializers/application.js","portal/serializers/entity-product.js","portal/serializers/project-product.js","portal/serializers/task-product.js","portal/services/-ensure-registered.js","portal/services/accounting-platform.js","portal/services/bills-data.js","portal/services/builda-price.js","portal/services/cache.js","portal/services/chargebee.js","portal/services/cookies.js","portal/services/dialog.js","portal/services/ember-elsewhere.js","portal/services/engine-data.js","portal/services/financial-portal-period-selector.js","portal/services/help-center.js","portal/services/intl.js","portal/services/invoiced-costs.js","portal/services/ips.js","portal/services/keyboard.js","portal/services/media-events.js","portal/services/media.js","portal/services/metrics.js","portal/services/mobile-menu.js","portal/services/modal-dialog.js","portal/services/modules.js","portal/services/moment.js","portal/services/new-feature-flags.js","portal/services/notifications.js","portal/services/number-format.js","portal/services/os.js","portal/services/oss-engine-data.js","portal/services/page-title.js","portal/services/pdf-export.js","portal/services/placemakers.js","portal/services/platform.js","portal/services/portal-api-v2.js","portal/services/portal-api.js","portal/services/power-calendar.js","portal/services/pricing.js","portal/services/quickbooks.js","portal/services/reports-download.js","portal/services/session-data.js","portal/services/session.js","portal/services/store.js","portal/services/system-announcements.js","portal/services/xero-integration.js","portal/session-stores/application.js","portal/storages/settings.js","portal/templates/admin-loading.js","portal/templates/admin.js","portal/templates/admin/announcements.js","portal/templates/admin/announcements/announcement.js","portal/templates/admin/announcements/index.js","portal/templates/admin/billing-report.js","portal/templates/admin/demo-entity.js","portal/templates/admin/entities.js","portal/templates/admin/entities/entity.js","portal/templates/admin/entities/index.js","portal/templates/admin/licensees.js","portal/templates/admin/licensees/index.js","portal/templates/admin/licensees/licensee.js","portal/templates/application.js","portal/templates/complete-pm-auth.js","portal/templates/complete-registration-cb.js","portal/templates/embed.js","portal/templates/embed/error.js","portal/templates/entity-access-denied.js","portal/templates/entity.js","portal/templates/entity/builda-price.js","portal/templates/entity/builda-price/dashboard.js","portal/templates/entity/builda-price/dashboard/index.js","portal/templates/entity/builda-price/operations.js","portal/templates/entity/builda-price/operations/communications.js","portal/templates/entity/builda-price/operations/documents.js","portal/templates/entity/builda-price/operations/documents/index.js","portal/templates/entity/builda-price/operations/documents/project-file.js","portal/templates/entity/builda-price/operations/documents/project-file/index.js","portal/templates/entity/builda-price/operations/documents/project-file/task-file.js","portal/templates/entity/builda-price/operations/incoming.js","portal/templates/entity/builda-price/operations/incoming/bills-legacy-loading.js","portal/templates/entity/builda-price/operations/incoming/bills-legacy.js","portal/templates/entity/builda-price/operations/incoming/bills-legacy/bill.js","portal/templates/entity/builda-price/operations/incoming/bills.js","portal/templates/entity/builda-price/operations/incoming/bills/bill.js","portal/templates/entity/builda-price/operations/incoming/statements.js","portal/templates/entity/builda-price/operations/incoming/timesheets-loading.js","portal/templates/entity/builda-price/operations/incoming/timesheets.js","portal/templates/entity/builda-price/operations/incoming/timesheets/timesheet.js","portal/templates/entity/builda-price/operations/outgoing.js","portal/templates/entity/builda-price/operations/outgoing/invoices/index.js","portal/templates/entity/builda-price/operations/outgoing/invoices/invoice.js","portal/templates/entity/builda-price/operations/outgoing/payroll-loading.js","portal/templates/entity/builda-price/operations/outgoing/payroll.js","portal/templates/entity/builda-price/operations/outgoing/purchase-orders/index.js","portal/templates/entity/builda-price/operations/outgoing/purchase-orders/purchase-order.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/csv.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/excel.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/index-loading.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/index.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/pdf.js","portal/templates/entity/builda-price/operations/products.js","portal/templates/entity/builda-price/projects.js","portal/templates/entity/builda-price/projects/index.js","portal/templates/entity/builda-price/projects/project.js","portal/templates/entity/builda-price/projects/project/documents.js","portal/templates/entity/builda-price/projects/project/estimate.js","portal/templates/entity/builda-price/projects/project/estimates/estimate-loading.js","portal/templates/entity/builda-price/projects/project/estimates/estimate.js","portal/templates/entity/builda-price/projects/project/estimates/index.js","portal/templates/entity/builda-price/projects/project/financials.js","portal/templates/entity/builda-price/projects/project/health-and-safety.js","portal/templates/entity/builda-price/projects/project/health-and-safety/index-loading.js","portal/templates/entity/builda-price/projects/project/health-and-safety/index.js","portal/templates/entity/builda-price/projects/project/people.js","portal/templates/entity/builda-price/projects/project/people/clients.js","portal/templates/entity/builda-price/projects/project/people/clients/client.js","portal/templates/entity/builda-price/projects/project/people/clients/index.js","portal/templates/entity/builda-price/projects/project/people/subcontractors.js","portal/templates/entity/builda-price/projects/project/people/subcontractors/index.js","portal/templates/entity/builda-price/projects/project/people/subcontractors/subcontractor.js","portal/templates/entity/builda-price/projects/project/people/users.js","portal/templates/entity/builda-price/projects/project/people/users/index.js","portal/templates/entity/builda-price/projects/project/people/users/user.js","portal/templates/entity/builda-price/projects/project/people/workers.js","portal/templates/entity/builda-price/projects/project/people/workers/index.js","portal/templates/entity/builda-price/projects/project/people/workers/worker.js","portal/templates/entity/builda-price/projects/project/products.js","portal/templates/entity/builda-price/projects/project/progress.js","portal/templates/entity/builda-price/projects/project/settings.js","portal/templates/entity/builda-price/projects/project/stage-payments.js","portal/templates/entity/builda-price/projects/project/tasks.js","portal/templates/entity/builda-price/projects/project/tasks/index.js","portal/templates/entity/builda-price/projects/project/tasks/task.js","portal/templates/entity/builda-price/projects/project/tasks/task/documents.js","portal/templates/entity/builda-price/projects/project/tasks/task/financials.js","portal/templates/entity/builda-price/projects/project/tasks/task/people.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/clients.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/client.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/index.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/index.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/users.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/users/index.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/users/user.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/workers.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/index.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/worker.js","portal/templates/entity/builda-price/projects/project/tasks/task/products.js","portal/templates/entity/builda-price/projects/project/tasks/task/settings.js","portal/templates/entity/builda-price/reports.js","portal/templates/entity/builda-price/reports/company.js","portal/templates/entity/builda-price/reports/company/forecast-breakdown.js","portal/templates/entity/builda-price/reports/company/invoicing.js","portal/templates/entity/builda-price/reports/company/labour-hours.js","portal/templates/entity/builda-price/reports/company/notes.js","portal/templates/entity/builda-price/reports/company/position.js","portal/templates/entity/builda-price/reports/company/profit-margins.js","portal/templates/entity/builda-price/reports/company/wip.js","portal/templates/entity/builda-price/reports/projects.js","portal/templates/entity/builda-price/reports/projects/index.js","portal/templates/entity/builda-price/reports/projects/project.js","portal/templates/entity/builda-price/reports/projects/project/access.js","portal/templates/entity/builda-price/reports/projects/project/budget/index.js","portal/templates/entity/builda-price/reports/projects/project/budget/task/index.js","portal/templates/entity/builda-price/reports/projects/project/chargeup/index.js","portal/templates/entity/builda-price/reports/projects/project/chargeup/task/index.js","portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/index.js","portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/task/index.js","portal/templates/entity/builda-price/reports/projects/project/cost.js","portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/index.js","portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/task/index.js","portal/templates/entity/builda-price/reports/projects/project/invoicing/index.js","portal/templates/entity/builda-price/reports/projects/project/invoicing/task/index.js","portal/templates/entity/builda-price/reports/projects/project/labour-hours/index.js","portal/templates/entity/builda-price/reports/projects/project/labour-hours/task/index.js","portal/templates/entity/builda-price/reports/projects/project/notes.js","portal/templates/entity/builda-price/reports/projects/project/position/index.js","portal/templates/entity/builda-price/reports/projects/project/position/task/index.js","portal/templates/entity/builda-price/reports/projects/project/profit-margins/index.js","portal/templates/entity/builda-price/reports/projects/project/profit-margins/task/index.js","portal/templates/entity/builda-price/reports/projects/project/quote/index.js","portal/templates/entity/builda-price/reports/projects/project/quote/task/index.js","portal/templates/entity/builda-price/scheduling.js","portal/templates/entity/builda-price/scheduling/timeline.js","portal/templates/entity/disabled.js","portal/templates/entity/financials-loading.js","portal/templates/entity/financials.js","portal/templates/entity/financials/chart-of-accounts-loading.js","portal/templates/entity/financials/chart-of-accounts.js","portal/templates/entity/financials/dashboard.js","portal/templates/entity/financials/general-loading.js","portal/templates/entity/financials/general.js","portal/templates/entity/financials/groups-loading.js","portal/templates/entity/financials/groups.js","portal/templates/entity/financials/groups/membership-and-access.js","portal/templates/entity/financials/groups/order.js","portal/templates/entity/financials/import.js","portal/templates/entity/financials/import/data.js","portal/templates/entity/financials/import/done.js","portal/templates/entity/financials/import/index.js","portal/templates/entity/financials/import/start.js","portal/templates/entity/financials/kpis-loading.js","portal/templates/entity/financials/kpis.js","portal/templates/entity/financials/kpis/kpi.js","portal/templates/entity/financials/planning/strategies.js","portal/templates/entity/financials/reports.js","portal/templates/entity/financials/reports/general-ledger/balance-sheet-loading.js","portal/templates/entity/financials/reports/general-ledger/balance-sheet.js","portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss-loading.js","portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss.js","portal/templates/entity/financials/reports/general-ledger/other-data-loading.js","portal/templates/entity/financials/reports/general-ledger/other-data.js","portal/templates/entity/financials/reports/general-ledger/personal-data-loading.js","portal/templates/entity/financials/reports/general-ledger/personal-data.js","portal/templates/entity/financials/reports/general-ledger/profit-and-loss-loading.js","portal/templates/entity/financials/reports/general-ledger/profit-and-loss.js","portal/templates/entity/financials/reports/imports-loading.js","portal/templates/entity/financials/reports/imports.js","portal/templates/entity/financials/reports/kpis-loading.js","portal/templates/entity/financials/reports/kpis.js","portal/templates/entity/financials/reports/kpis/index.js","portal/templates/entity/financials/reports/kpis/kpi.js","portal/templates/entity/module-dashboard.js","portal/templates/entity/settings.js","portal/templates/entity/settings/auto-mapping-loading.js","portal/templates/entity/settings/auto-mapping.js","portal/templates/entity/settings/chart-of-accounts.js","portal/templates/entity/settings/chart-of-accounts/chart-of-account.js","portal/templates/entity/settings/chart-of-accounts/index.js","portal/templates/entity/settings/company-loading.js","portal/templates/entity/settings/company.js","portal/templates/entity/settings/contacts.js","portal/templates/entity/settings/contacts/contact.js","portal/templates/entity/settings/contacts/index.js","portal/templates/entity/settings/estimates/embedded-page.js","portal/templates/entity/settings/integrations.js","portal/templates/entity/settings/people.js","portal/templates/entity/settings/people/clients.js","portal/templates/entity/settings/people/clients/client.js","portal/templates/entity/settings/people/clients/index.js","portal/templates/entity/settings/people/subcontractors.js","portal/templates/entity/settings/people/subcontractors/index.js","portal/templates/entity/settings/people/subcontractors/subcontractor.js","portal/templates/entity/settings/people/users.js","portal/templates/entity/settings/people/users/index.js","portal/templates/entity/settings/people/users/user.js","portal/templates/entity/settings/people/workers.js","portal/templates/entity/settings/people/workers/index.js","portal/templates/entity/settings/people/workers/worker.js","portal/templates/entity/settings/profile.js","portal/templates/error.js","portal/templates/initiate-password-reset.js","portal/templates/loading.js","portal/templates/login.js","portal/templates/logout-redirect.js","portal/templates/no-access.js","portal/templates/not-found.js","portal/templates/project.js","portal/templates/project/no-site.js","portal/templates/project/site.js","portal/templates/project/site/dashboard.js","portal/templates/project/site/details.js","portal/templates/project/site/hazards.js","portal/templates/project/site/hazards/board.js","portal/templates/project/site/hazards/selection.js","portal/templates/project/site/index.js","portal/templates/project/site/ppe.js","portal/templates/project/site/reports/index.js","portal/templates/project/site/reports/report.js","portal/templates/project/site/setup.js","portal/templates/project/site/setup/notifiable.js","portal/templates/project/site/setup/summary.js","portal/templates/project/site/signin.js","portal/templates/reports.js","portal/templates/reset-password.js","portal/templates/site.js","portal/templates/terms-of-service.js","portal/test-support/helpers.js","portal/transforms/array.js","portal/transforms/boolean.js","portal/transforms/date.js","portal/transforms/number.js","portal/transforms/string.js","portal/transitions.js","portal/utils/am5-bp-theme.js","portal/utils/auto-map.js","portal/utils/balance-calculator.js","portal/utils/bill-parsers/bunnings.js","portal/utils/bill-parsers/carters-type-1.js","portal/utils/bill-parsers/carters-type-2.js","portal/utils/bill-parsers/carters-type-3.js","portal/utils/bill-parsers/carters-type-4.js","portal/utils/bill-parsers/carters.js","portal/utils/bill-parsers/csv.js","portal/utils/bill-parsers/itm.js","portal/utils/bill-parsers/mitre.js","portal/utils/bill-parsers/placemakers.js","portal/utils/bill-parsers/xero.js","portal/utils/bunnings-bill-csv-normalizer.js","portal/utils/calc-map-balance.js","portal/utils/collection-to-array.js","portal/utils/computed.js","portal/utils/crystal-csv-generator.js","portal/utils/csv-builder.js","portal/utils/deprecation-filter.js","portal/utils/download.js","portal/utils/duration-input.js","portal/utils/email-validator.js","portal/utils/extract-number.js","portal/utils/favicon-title.js","portal/utils/find-date.js","portal/utils/find-param.js","portal/utils/get-default-language.js","portal/utils/gl-import-parsers/banklink.js","portal/utils/gl-import-parsers/empower.js","portal/utils/gl-import-parsers/frameworks.js","portal/utils/gl-import-parsers/gj-gardner.js","portal/utils/gl-import-parsers/itm-manual.js","portal/utils/gl-import-parsers/maxim.js","portal/utils/gl-import-parsers/myob-ao.js","portal/utils/gl-import-parsers/myob.js","portal/utils/gl-import-parsers/new-xero-parser.js","portal/utils/gl-import-parsers/old-xero-parser.js","portal/utils/gl-import-parsers/prostix.js","portal/utils/gl-import-parsers/rees.js","portal/utils/gl-import-parsers/xero-csv.js","portal/utils/intl/missing-message.js","portal/utils/labour-cost-calculator-fixtures.js","portal/utils/loading-route-from.js","portal/utils/make-temp-id.js","portal/utils/multi-selectable-tree-item.js","portal/utils/nest.js","portal/utils/network-errors.js","portal/utils/oidc-config.js","portal/utils/parse-currency-string.js","portal/utils/path-resolver.js","portal/utils/placemakers-bill-csv-normalizer.js","portal/utils/platform.js","portal/utils/profit-margin.js","portal/utils/report-builder-attachments-bundle.js","portal/utils/report-builder-mark-as-reported.js","portal/utils/report-builder.js","portal/utils/sanitize-filename.js","portal/utils/search-filter.js","portal/utils/search-term-escape.js","portal/utils/smart-payroll-csv-generator.js","portal/utils/sort-accounts.js","portal/utils/sort-by-account-code.js","portal/utils/string-similarity.js","portal/utils/sums.js","portal/utils/task-templates.js","portal/utils/titleize.js","portal/utils/tree-item.js","portal/validators/bill-item.js","portal/validators/bill.js","portal/validators/ips-connection.js","vendor/ember-cli/app-config.js","vendor/ember-cli/app-boot.js"],"sourcesContent":["'use strict';\n\n\n","define(\"portal/adapters/api-v2-adapter\", [\"exports\", \"@ember-data/adapter/rest\", \"portal/config/environment\", \"ember-inflector\", \"@ember/service\", \"@ember/string\"], function (_exports, _rest, _environment, _emberInflector, _service, _string) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter/rest\",0,\"portal/config/environment\",0,\"ember-inflector\",0,\"@ember/service\",0,\"@ember/string\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let ApiV2Adapter = _exports.default = (_class = class ApiV2Adapter extends _rest.default {\n    pathForType(type) {\n      // eslint-disable-next-line ember/no-string-prototype-extensions\n      return (0, _emberInflector.pluralize)((0, _string.dasherize)(type));\n    }\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"host\", void 0);\n      _defineProperty(this, \"headers\", void 0);\n      this.host = _environment.default.urls.api + _environment.default.urls.apiV2Path + '/resources';\n      const access_token = this.session.data.authenticated.access_token;\n      this.headers = {\n        Authorization: `Bearer ${access_token}`\n      };\n    }\n    createRecord(store, type, snapshot) {\n      const data = this.serialize(snapshot, {\n        includeId: true\n      });\n      for (const key of Object.keys(data)) {\n        if (snapshot.record[key] === undefined) delete data[key];\n      }\n      let url = this.buildURL(type.modelName, null, snapshot, 'createRecord');\n      return this.ajax(url, 'POST', {\n        data\n      });\n    }\n    updateRecord(store, type, snapshot) {\n      const data = this.serialize(snapshot, {\n        includeId: true\n      });\n      for (const key of Object.keys(data)) {\n        if (snapshot.record[key] === undefined) delete data[key];\n      }\n      let id = snapshot.id;\n      let url = this.buildURL(type.modelName, id, snapshot, 'updateRecord');\n      return this.ajax(url, 'PUT', {\n        data\n      });\n    }\n    async saveBulk(type, records) {\n      const url = this.buildURL(type, null, records, 'saveBulk');\n      const serializedRecords = records.map(record => this.serialize(record, {\n        includeId: true\n      }));\n      return this.ajax(url, 'PUT', {\n        data: JSON.stringify(serializedRecords),\n        contentType: 'application/json; charset=utf-8'\n      }).then(response => {\n        response.forEach((res, index) => {\n          const modelClass = this.store.modelFor(type);\n          const pendingRecord = records[index];\n          const mergedData = Object.assign({}, this.serialize(pendingRecord, {\n            includeId: true\n          }), res);\n          const data = this.store.serializerFor(type).normalize(modelClass, {\n            id: res._id,\n            ...mergedData\n          });\n          if (pendingRecord.isNew) {\n            pendingRecord.set('id', res._id);\n          }\n          this.store.push(data);\n          pendingRecord._internalModel._recordData._attributes = {};\n          pendingRecord.send('pushedData');\n        });\n      });\n    }\n    async deleteBulk(type, records) {\n      const url = this.buildURL(type, null, records, 'deleteBulk');\n\n      // mark records as deleted in store before sending to backend\n      records.forEach(record => this.store.peekRecord(type, record).deleteRecord());\n      return this.ajax(url, 'DELETE', {\n        data: JSON.stringify(records),\n        contentType: 'application/json; charset=utf-8'\n      }).then(response => {\n        response.forEach((res, index) => {\n          const pendingRecordId = records[index];\n          const pendingRecord = this.store.peekRecord(type, pendingRecordId);\n          if (pendingRecord.isDeleted && pendingRecord.id === res.id) pendingRecord.unloadRecord();\n        });\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/adapters/application\", [\"exports\", \"@ember-data/adapter/json-api\", \"portal/config/environment\", \"@ember/service\", \"portal/adapters/errors\", \"@ember/string\", \"@ember-data/request-utils/string\"], function (_exports, _jsonApi, _environment, _service, _errors, _string, _string2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter/json-api\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"portal/adapters/errors\",0,\"@ember/string\",0,\"@ember-data/request-utils/string\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  (0, _string2.irregular)('link-entity-group-can-be-accessed-by', 'link-entity-group-can-be-accessed-bys');\n  class ConcurrencyHandler {\n    constructor(maxConcurrency) {\n      this.maxConcurrency = maxConcurrency;\n      this.runningCount = 0;\n      this.queue = [];\n    }\n    enqueue(asyncTask) {\n      return new Promise((resolve, reject) => {\n        const taskWrapper = async () => {\n          this.runningCount++;\n          try {\n            const result = await asyncTask();\n            resolve(result);\n          } catch (error) {\n            reject(error);\n          } finally {\n            this.runningCount--;\n            this.dequeue();\n          }\n        };\n        this.queue.push(taskWrapper);\n        if (this.runningCount < this.maxConcurrency) {\n          this.dequeue();\n        }\n      });\n    }\n    dequeue() {\n      if (this.queue.length > 0 && this.runningCount < this.maxConcurrency) {\n        const nextTask = this.queue.shift();\n        nextTask();\n      }\n    }\n  }\n  const concurrencyHandler = new ConcurrencyHandler(10);\n  let ApiV2JSONAdapter = _exports.default = (_class = class ApiV2JSONAdapter extends _jsonApi.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"coalesceFindRequests\", true);\n      this.host = _environment.default.urls.api + _environment.default.urls.apiV2Path + '/json-api';\n    }\n    get headers() {\n      let headers = {\n        'Content-Type': 'application/json'\n      };\n      if (this.session.isAuthenticated) {\n        headers.Authorization = `Bearer ${this.session.data.authenticated.access_token}`;\n      }\n      return headers;\n    }\n    pathForType(type) {\n      return (0, _string2.pluralize)((0, _string.dasherize)(type));\n    }\n\n    // _meta fields the model declares as `static requiredMetaFields`\n    _withRequiredMeta(modelName, query = {}) {\n      const required = this.store.modelFor(modelName)?.requiredMetaFields;\n      if (!required?.length) return query;\n      const type = this.pathForType(modelName);\n\n      // union, so a call site asking for extra meta keeps both\n      const keys = [...(query.fields?.[type]?.split(',') ?? []), ...required.map(key => `_meta.${key}`)].map(key => key.trim()).filter(Boolean);\n      return {\n        ...query,\n        fields: {\n          ...query.fields,\n          [type]: [...new Set(keys)].join(',')\n        }\n      };\n    }\n\n    // findRecord and findAll both build their params here\n    buildQuery(snapshot) {\n      return this._withRequiredMeta(snapshot.modelName, super.buildQuery(snapshot) ?? {});\n    }\n\n    // Limit the max number of concurrent requests to prevent dos\n    async ajax(url, type, options) {\n      return concurrencyHandler.enqueue(() => super.ajax(url, type, options));\n    }\n    shouldReloadAll() {\n      return true;\n    }\n    shouldBackgroundReloadRecord() {\n      return true;\n    }\n    handleResponse(status) {\n      if (status === 0) {\n        return new _errors.ConnectionError();\n      } else if (status === 401) {\n        this.session.invalidate().catch(() => {});\n      }\n      return super.handleResponse(...arguments);\n    }\n    chunkArray(array, size) {\n      return Array.from({\n        length: Math.ceil(array.length / size)\n      }, (_, i) => array.slice(i * size, i * size + size));\n    }\n\n    // when we \"coalesceFindRequests = true\", it groups all get by id of similar resource requests into find many request\n    // for new json api v2, filter has to be below format\n    async findMany(store, type, ids, snapshots) {\n      const chunkSize = _environment.default.chunkCallbackSize;\n      const chunks = this.chunkArray(ids, chunkSize);\n      const requests = chunks.map(chunk => {\n        const url = this.buildURL(type.modelName, chunk, snapshots, 'findMany');\n        return this.ajax(url, 'GET', {\n          data: this._withRequiredMeta(type.modelName, {\n            filter: {\n              and: [{\n                field: '_id',\n                // TODO change this to id\n                op: 'IN',\n                value: chunk\n              }]\n            }\n          })\n        });\n      });\n\n      // TODO this can be done better\n      const responses = await Promise.all(requests);\n      const merged = responses.reduce((acc, response) => {\n        if (response.data) {\n          acc.data = acc.data.concat(response.data);\n        }\n        if (response.included) {\n          acc.included = (acc.included || []).concat(response.included || []);\n        }\n        return acc;\n      }, {\n        data: []\n      });\n      return merged;\n    }\n    query(store, type, query) {\n      if (query.filter?.simple) {\n        const operatorMapping = {\n          $eq: 'EQ',\n          $ne: 'NE',\n          $in: 'IN',\n          $nin: 'NIN',\n          $lt: 'LT',\n          $gt: 'GT',\n          $lte: 'LE',\n          $gte: 'GE',\n          $like: 'LIKE',\n          $ilike: 'ILIKE'\n        };\n        const _filter = {\n          and: []\n        };\n        for (const [key, value] of Object.entries(query.filter.simple)) {\n          if (value && typeof value === 'object' && !Array.isArray(value)) {\n            for (const [operator, operand] of Object.entries(value)) {\n              const mappedOperator = operatorMapping[operator];\n              if (!mappedOperator) {\n                throw new Error(`Invalid operator: ${operator}`);\n              }\n              if ((operator === '$in' || operator === '$nin') && !Array.isArray(operand)) {\n                throw new Error(`Operand for ${operator} must be an array.`);\n              }\n              _filter.and.push({\n                field: key,\n                op: mappedOperator,\n                value: operand\n              });\n            }\n          } else {\n            _filter.and.push({\n              field: key,\n              op: 'EQ',\n              value: value\n            });\n          }\n        }\n        query.filter = _filter;\n      }\n      return super.query(store, type, this._withRequiredMeta(type.modelName, query));\n    }\n    findRecord(store, type, id, snapshot) {\n      let url = this.buildURL(type.modelName, id, snapshot, 'findRecord');\n\n      // usage example\n      //  adapterOptions: {\n      //      fields: {\n      //        meta: 'canDelete',\n      //      }\n      //    }\n\n      let query = this.buildQuery(snapshot) || {};\n      const {\n        fields\n      } = snapshot.adapterOptions || {};\n\n      // http://jsonapi.org/format/#fetching-sparse-fieldsets\n      if (fields && !Array.isArray(fields) && typeof fields === 'object') {\n        for (const [key, value] of Object.entries(fields)) {\n          query[`fields[${key}]`] = value;\n        }\n      }\n      return this.ajax(url, 'GET', {\n        data: query\n      });\n    }\n    deleteRecord(store, type, snapshot) {\n      const url = new URL(this.buildURL(type.modelName, snapshot.id, snapshot, 'deleteRecord'));\n      const {\n        meta\n      } = snapshot.adapterOptions || {};\n      for (const [key, value] of Object.entries(meta || {})) {\n        url.searchParams.set(`meta[${key}]`, value);\n      }\n      return this.ajax(url.toString(), 'DELETE');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/adapters/entity-product\", [\"exports\", \"portal/adapters/api-v2-adapter\"], function (_exports, _apiV2Adapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/adapters/api-v2-adapter\"eaimeta@70e063a35619d71f\n  class EntityProductAdapter extends _apiV2Adapter.default {}\n  _exports.default = EntityProductAdapter;\n});","define(\"portal/adapters/errors\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.ConnectionError = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  class ConnectionError extends Error {\n    constructor() {\n      super('The server could not be reached');\n      this.name = 'ConnectionError';\n    }\n  }\n  _exports.ConnectionError = ConnectionError;\n});","define(\"portal/adapters/project-product\", [\"exports\", \"portal/adapters/api-v2-adapter\"], function (_exports, _apiV2Adapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/adapters/api-v2-adapter\"eaimeta@70e063a35619d71f\n  class ProjectProductAdapter extends _apiV2Adapter.default {}\n  _exports.default = ProjectProductAdapter;\n});","define(\"portal/adapters/task-product\", [\"exports\", \"portal/adapters/api-v2-adapter\"], function (_exports, _apiV2Adapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/adapters/api-v2-adapter\"eaimeta@70e063a35619d71f\n  class TaskProductAdapter extends _apiV2Adapter.default {}\n  _exports.default = TaskProductAdapter;\n});","define(\"portal/app\", [\"exports\", \"@ember/application\", \"ember-power-calendar-moment\", \"ember-resolver\", \"ember-load-initializers\", \"ember-power-calendar\", \"portal/config/environment\"], function (_exports, _application, _emberPowerCalendarMoment, _emberResolver, _emberLoadInitializers, _emberPowerCalendar, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/application\",0,\"ember-power-calendar-moment\",0,\"ember-resolver\",0,\"ember-load-initializers\",0,\"ember-power-calendar\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  (0, _emberPowerCalendar.registerDateLibrary)(_emberPowerCalendarMoment.default);\n\n  //export default class App extends Application {\n  //  modulePrefix = config.modulePrefix;\n  //  podModulePrefix = config.podModulePrefix;\n  //  Resolver = Resolver;\n  //}\n  //\n  //loadInitializers(App, config.modulePrefix);\n\n  class App extends _application.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"modulePrefix\", _environment.default.modulePrefix);\n      _defineProperty(this, \"podModulePrefix\", _environment.default.podModulePrefix);\n      _defineProperty(this, \"Resolver\", _emberResolver.default);\n      _defineProperty(this, \"engines\", {\n        'builda-price-client-addon': {\n          dependencies: {\n            services: ['dialog', 'engineData', {\n              hostRouter: 'router'\n            }, 'session']\n          }\n        },\n        'oss-portal-addon': {\n          dependencies: {\n            services: ['ossEngineData', {\n              hostRouter: 'router'\n            }, 'dialog', 'notifications', 'session']\n          }\n        }\n      });\n    }\n  }\n  _exports.default = App;\n  (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n});","define(\"portal/authenticators/embed\", [\"exports\", \"ember-simple-auth/authenticators/base\", \"portal/config/environment\", \"@ember/service\", \"jquery\"], function (_exports, _base, _environment, _service, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-simple-auth/authenticators/base\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"jquery\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EmbedAuthenticator = _exports.default = (_class = class EmbedAuthenticator extends _base.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    restore(data) {\n      return data;\n    }\n    async authenticate(accessToken = '', userId = '', transition) {\n      const user = await new Promise((resolve, reject) => _jquery.default.ajax({\n        url: `${_environment.default.urls.api}${_environment.default.urls.apiV2Path}/json-api/users/${userId}`,\n        method: 'GET',\n        headers: {\n          Authorization: `Bearer ${accessToken}`\n        },\n        dataType: 'json',\n        contentType: 'application/json'\n      }).then(resolve, reject));\n\n      // https://ember-simple-auth.com/api/classes/ApplicationRouteMixin.html\n      // this causes ember simple auth to retry the transition after the authentication\n      // without this, it would hit the index route and route to the main application\n      this.session.attemptedTransition = transition;\n      return {\n        access_token: accessToken,\n        authenticator: 'authenticator:embed',\n        expires_in: 10800,\n        // not known\n        token_type: 'bearer',\n        user: {\n          id: user.data.id,\n          ...user.data.attributes\n        }\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/authenticators/login-as\", [\"exports\", \"rsvp\", \"portal/authenticators/oauth2\"], function (_exports, _rsvp, _oauth) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"rsvp\",0,\"portal/authenticators/oauth2\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _oauth.default.extend({\n    authenticate(data) {\n      return _rsvp.default.resolve(data);\n    }\n  });\n});","define(\"portal/authenticators/oauth2\", [\"exports\", \"rsvp\", \"@ember/utils\", \"@ember/runloop\", \"@ember/object\", \"@ember/service\", \"jquery\", \"@ember/array\", \"ember-simple-auth/authenticators/oauth2-password-grant\", \"portal/config/environment\"], function (_exports, _rsvp, _utils, _runloop, _object, _service, _jquery, _array, _oauth2PasswordGrant, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"rsvp\",0,\"@ember/utils\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"@ember/service\",0,\"jquery\",0,\"@ember/array\",0,\"ember-simple-auth/authenticators/oauth2-password-grant\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _oauth2PasswordGrant.default.extend({\n    router: (0, _service.inject)(),\n    serverTokenEndpoint: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth',\n    serverTokenRevocationEndpoint: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth/logout',\n    refreshAccessTokens: false,\n    authenticate(identification, password, scope = []) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        const data = {\n          grant_type: 'password',\n          identification,\n          password\n        };\n        const serverTokenEndpoint = (0, _object.get)(this, 'serverTokenEndpoint');\n        const scopesString = (0, _array.makeArray)(scope).join(' ');\n        if (!(0, _utils.isEmpty)(scopesString)) {\n          (0, _object.set)(data, 'scope', scopesString);\n        }\n        this.makeRequest(serverTokenEndpoint, data).then(response => (0, _runloop.run)(() => resolve(response)), xhr => (0, _runloop.run)(() => reject(xhr)));\n      });\n    },\n    // Overriden to prevent session timeouts\n    restore(data) {\n      if ((0, _utils.isEmpty)(data['access_token'])) {\n        return _rsvp.default.reject();\n      } else {\n        return _rsvp.default.resolve(data);\n      }\n    },\n    invalidate(data) {\n      // this is automatically called on a 401\n      // the first thing we do is go into the loading route\n      // nothing is waiting for this promise to resolve and the application\n      // keeps trying to load while invalidated\n      // doing this puts us in a safe place to wait for the invalidate to finish\n      this.router.transitionTo('loading');\n\n      // This is mostly taken from the oath2-password-grant source code, see:\n      // https://github.com/simplabs/ember-simple-auth/blob/1.2.0/addon/authenticators/oauth2-password-grant.js#L257\n      // Deviations from the original source are annotated.\n      const serverTokenRevocationEndpoint = this.get('serverTokenRevocationEndpoint');\n      function success(resolve) {\n        (0, _runloop.cancel)(this._refreshTokenTimeout);\n        delete this._refreshTokenTimeout;\n        resolve();\n      }\n      return new _rsvp.default.Promise(resolve => {\n        if ((0, _utils.isEmpty)(serverTokenRevocationEndpoint)) {\n          success.apply(this, [resolve]);\n        } else {\n          const requests = [];\n\n          // Added original user's token to the list of tokens to invalidate.\n          (0, _array.A)(['access_token', 'refresh_token', 'originalUserData.access_token']).forEach(tokenType => {\n            // Switched to get syntax in order to support a path as well as a key.\n            const token = (0, _object.get)(data, tokenType);\n            if (!(0, _utils.isEmpty)(token)) {\n              requests.push(this.makeRequest(serverTokenRevocationEndpoint, {\n                token_type_hint: tokenType,\n                token\n              }));\n            }\n          });\n          const succeed = () => {\n            success.apply(this, [resolve]);\n          };\n          _rsvp.default.all(requests).then(succeed, succeed);\n        }\n      });\n    },\n    makeRequest(url, data) {\n      return _jquery.default.ajax({\n        url,\n        type: 'POST',\n        data: JSON.stringify(data),\n        dataType: 'json',\n        contentType: 'application/json'\n      });\n    }\n  });\n});","define(\"portal/authenticators/oidc\", [\"exports\", \"ember-simple-auth/authenticators/base\", \"@ember/service\", \"portal/utils/oidc-config\"], function (_exports, _base, _service, _oidcConfig) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-simple-auth/authenticators/base\",0,\"@ember/service\",0,\"portal/utils/oidc-config\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const REDIRECT_TIMEOUT = 15000;\n\n  // basically race the IDP to make sure we don't get stuck (it'll redirect us, so this will die)\n  function waitForRedirect(startRedirect) {\n    return new Promise((_resolve, reject) => {\n      const timer = setTimeout(() => reject(new Error('Timed out waiting for the identity server')), REDIRECT_TIMEOUT);\n      Promise.resolve().then(startRedirect).catch(error => {\n        clearTimeout(timer);\n        reject(error);\n      });\n    });\n  }\n  let OidcAuthenticator = _exports.default = (_class = class OidcAuthenticator extends _base.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _defineProperty(this, \"_isInvalidating\", false);\n      this._bindOidcEvents();\n    }\n    _bindOidcEvents() {\n      _oidcConfig.userManager.events.addUserLoaded(async user => {\n        if (!this.session.isAuthenticated) {\n          // this is a fresh cross tab login so run the full auth method\n          await this.session.authenticate('authenticator:oidc', {\n            bypassRedirect: true,\n            user\n          });\n        } else {\n          // background token refresh - update the session data\n          const existingBpUser = this.session.data.authenticated.user;\n          this.trigger('sessionDataUpdated', {\n            ...user,\n            user: existingBpUser\n          });\n        }\n      });\n      _oidcConfig.userManager.events.addUserUnloaded(() => {\n        if (this.session.isAuthenticated && !this._isInvalidating) {\n          this.session.invalidate();\n        }\n      });\n      _oidcConfig.userManager.events.addAccessTokenExpiring(() => {\n        navigator.locks.request('oidc-client-refresh', {\n          ifAvailable: true\n        }, async lock => {\n          //  if we can't get the lock a faster tab is getting the token\n          if (!lock) return;\n          try {\n            // we got a lock but check if another tab has already refreshed\n            const currentUser = await _oidcConfig.userManager.getUser();\n            if (currentUser && currentUser.expires_in > 60) {\n              return;\n            }\n\n            // token is actually expiring - refresh it\n            await _oidcConfig.userManager.signinSilent();\n          } catch (error) {\n            await this.session.invalidate();\n          }\n        });\n      });\n    }\n    async _buildSessionData(oidcUser) {\n      if (!oidcUser) throw new Error('No OIDC user provided');\n      const bpUser = await this.buildaPrice.getMeFromIdentityId(oidcUser.access_token, oidcUser.profile.sub);\n      return {\n        ...oidcUser,\n        user: bpUser\n      };\n    }\n    async authenticate(options = {}) {\n      if (options.bypassRedirect) {\n        return this._buildSessionData(options.user);\n      }\n\n      // returning from the IDP login screen\n      if (window.location.search.includes('code=')) {\n        const oidcUser = await _oidcConfig.userManager.signinRedirectCallback();\n        return this._buildSessionData(oidcUser);\n      }\n      return waitForRedirect(() => _oidcConfig.userManager.signinRedirect());\n    }\n    async restore(data) {\n      const oidcUser = await _oidcConfig.userManager.getUser();\n      if (!oidcUser || oidcUser.expired) {\n        throw new Error('Session is missing or expired');\n      }\n\n      // if we already have the user, use it...\n      if (data && data.user) {\n        return {\n          ...oidcUser,\n          user: data.user\n        };\n      }\n\n      // ...otherwise we need to load it\n      return this._buildSessionData(oidcUser);\n    }\n\n    // make sure this never rejects otherwise users could get stuck with a broken sesssion\n    async invalidate(_data, options = {}) {\n      this._isInvalidating = true;\n      try {\n        // if returning from the IDP logout screen, just let ESA clear local state\n        if (options.logoutComplete) return;\n\n        // manual logout initiated by the user\n        const oidcUser = await _oidcConfig.userManager.getUser().catch(() => null);\n        if (oidcUser) {\n          try {\n            await waitForRedirect(() => _oidcConfig.userManager.signoutRedirect());\n          } catch (_) {\n            // the IDP never took us, so log out locally rather than hang\n            await this._forgetUser();\n          }\n          return;\n        }\n\n        // if we don't have a session, dump the user manager state\n        await this._forgetUser();\n      } finally {\n        this._isInvalidating = false;\n      }\n    }\n    async _forgetUser() {\n      try {\n        await _oidcConfig.userManager.removeUser();\n      } catch (_) {\n        // absorb the error so we can still clear the ESA session\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/authenticators/push-session\", [\"exports\", \"rsvp\", \"portal/authenticators/oauth2\"], function (_exports, _rsvp, _oauth) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"rsvp\",0,\"portal/authenticators/oauth2\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _oauth.default.extend({\n    authenticate: _rsvp.default.resolve\n  });\n});","define(\"portal/breakpoints\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.BREAKPOINTS = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * the portal's breakpoint scale, declared for the ember-responsive `media`\n   * service. this is what backs `this.media.isDesktop` in js and\n   * `{{media 'isDesktop'}}` in templates.\n   *\n   * keep in sync with app/styles/_breakpoints.scss, which declares the same scale\n   * for scss and also configures bootstrap's $grid-breakpoints -- so `lg` and\n   * `isDesktop` switch at the same width. tests/unit/breakpoints-test.js fails if\n   * the two drift apart.\n   *\n   * only the numbers in BREAKPOINTS are hand-written; the media queries are derived\n   * from them. that matters for `tablet`, whose upper bound is `desktop - 1`: it was\n   * previously a hardcoded 991px, so moving `desktop` on its own would have opened a\n   * band of widths matching no breakpoint at all.\n   */\n\n  const BREAKPOINTS = _exports.BREAKPOINTS = {\n    mobileMax: 767,\n    tablet: 768,\n    desktop: 1200,\n    jumbo: 1550,\n    ultrawide: 1920\n  };\n  const minWidth = px => `(min-width: ${px}px)`;\n  const maxWidth = px => `(max-width: ${px}px)`;\n\n  // mobile / tablet / desktop are mutually exclusive and between them cover every\n  // width. jumbo and ultrawide are subsets of desktop, matching the `*-up` scss\n  // mixins; nothing consumes `isUltrawide` yet, but it is declared so this file and\n  // the scss scale stay a line-for-line match.\n  var _default = _exports.default = {\n    mobile: maxWidth(BREAKPOINTS.mobileMax),\n    tablet: `${minWidth(BREAKPOINTS.tablet)} and ${maxWidth(BREAKPOINTS.desktop - 1)}`,\n    desktop: minWidth(BREAKPOINTS.desktop),\n    jumbo: minWidth(BREAKPOINTS.jumbo),\n    ultrawide: minWidth(BREAKPOINTS.ultrawide)\n  };\n});","define(\"portal/components/active-table\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/components/active-table\", \"@ember/template-factory\"], function (_exports, _component, _object, _activeTable, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"portal/components/active-table\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <thead>\n    <tr>\n      {{#each this.headers as |header|}}\n        <th\n          width={{header.width}}\n          class='{{if header.sorted \"data-table__sorted-column-header\"}}\n            {{if header.ascending \"data-table__sorted-column-header--ascending\"}}'\n        >\n          {{#if header.key}}\n            <a {{action 'sortBy' header}} class='link'>\n              <span>{{header.name}}</span>\n            </a>\n          {{else}}\n            {{header.name}}\n          {{/if}}\n        </th>\n      {{/each}}\n    </tr>\n  </thead>\n  \n  <tbody>\n    {{yield}}\n  </tbody>\n  */\n  {\n    \"id\": \"Kqok1v0p\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"headers\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[10,\\\"th\\\"],[15,\\\"width\\\",[30,1,[\\\"width\\\"]]],[15,0,[29,[[52,[30,1,[\\\"sorted\\\"]],\\\"data-table__sorted-column-header\\\"],\\\"\\\\n          \\\",[52,[30,1,[\\\"ascending\\\"]],\\\"data-table__sorted-column-header--ascending\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"key\\\"]],[[[1,\\\"          \\\"],[11,3],[24,0,\\\"link\\\"],[4,[38,7],[[30,0],\\\"sortBy\\\",[30,1]],null],[12],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13]],[\\\"header\\\",\\\"&default\\\"],false,[\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"if\\\",\\\"a\\\",\\\"action\\\",\\\"span\\\",\\\"tbody\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/active-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _activeTable.default,\n    tagName: 'table',\n    classNames: ['active-table', 'data-table'],\n    classNameBindings: ['sortable'],\n    data: [],\n    columns: [],\n    sortable: true,\n    headers: (0, _object.computed)('columns', 'sortedBy.0', function () {\n      const [sortedBy, sortDir] = (0, _object.get)(this, 'sortedBy.0').split(':');\n      const columns = (0, _object.get)(this, 'columns');\n      const columnCount = (0, _object.get)(columns, 'length');\n      const headers = [];\n      let totalUnits = 0;\n      let flexibleProportion = 1;\n      columns.forEach(column => {\n        if (column.width) {\n          totalUnits += column.width;\n        } else {\n          flexibleProportion -= 1 / columnCount;\n        }\n      });\n      columns.forEach(column => {\n        const header = _object.default.create({\n          name: column.name,\n          key: column.key\n        });\n        if (column.width && typeof column.width === 'number') {\n          (0, _object.set)(header, 'width', column.width / totalUnits * flexibleProportion * 100 + '%');\n        } else if (column.width && typeof column.width === 'string') {\n          (0, _object.set)(header, 'width', column.width);\n        } else {\n          (0, _object.set)(header, 'width', 1 / columnCount * 100 + '%');\n        }\n\n        // If the content is sorted by this column\n        if (sortedBy === (0, _object.get)(header, 'key')) {\n          (0, _object.set)(header, 'sorted', true);\n          (0, _object.set)(header, 'ascending', sortDir !== 'desc');\n        }\n        headers.push(header);\n      });\n      return headers;\n    }),\n    actions: {\n      sortBy: function (columnToSort) {\n        const toSortBy = (0, _object.get)(columnToSort, 'key');\n        const [sortedBy, sortDir] = (0, _object.get)(this, 'sortedBy.0').split(':');\n        if (sortedBy === toSortBy) {\n          // set sort order\n          const newDir = sortDir === 'desc' ? 'asc' : 'desc';\n          (0, _object.set)(this, 'sortedBy', [sortedBy + ':' + newDir]);\n\n          // nofity column\n          (0, _object.set)(columnToSort, 'sorted', true);\n          (0, _object.set)(columnToSort, 'ascending', newDir === 'asc');\n        } else {\n          // set sort order\n          (0, _object.set)(this, 'sortedBy', [toSortBy + ':asc']);\n\n          // set column meta\n          (0, _object.get)(this, 'headers').forEach(column => (0, _object.set)(column, 'sorted', false));\n          (0, _object.set)(columnToSort, 'sorted', true);\n          (0, _object.set)(columnToSort, 'ascending', true);\n        }\n      }\n    }\n  }));\n});","define(\"portal/components/admin-mode\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='logged-in-as'>\n    <div class='logged-in-as__marquee'>\n      <div class='marquee'>\n        <p>\n          You're in admin mode\n          <FaIcon @icon='exclamation-circle' style='margin-left: 5px' />\n        </p>\n      </div>\n    </div>\n    <button\n      class='logged-in-as__return text-button'\n      type='button'\n      {{on 'click' this.sessionData.toggleAdminMode}}\n    >\n      Return\n      <FaIcon @icon='sign-out-alt' style='margin-left: 5px' />\n    </button>\n  </div>\n  */\n  {\n    \"id\": \"t08KA0i8\",\n    \"block\": \"[[[10,0],[14,0,\\\"logged-in-as\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"logged-in-as__marquee\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"marquee\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        You're in admin mode\\\\n        \\\"],[8,[39,2],[[24,5,\\\"margin-left: 5px\\\"]],[[\\\"@icon\\\"],[\\\"exclamation-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"logged-in-as__return text-button\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"sessionData\\\",\\\"toggleAdminMode\\\"]]],null],[12],[1,\\\"\\\\n    Return\\\\n    \\\"],[8,[39,2],[[24,5,\\\"margin-left: 5px\\\"]],[[\\\"@icon\\\"],[\\\"sign-out-alt\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/admin-mode.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/allocation-hierarchy\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.firstPart}}\n    {{#if this.popupText}}\n      <LabelPopup @text={{this.popupText}}>\n        {{this.formattedPath}}\n      </LabelPopup>\n    {{else}}\n      {{this.formattedPath}}\n    {{/if}}\n  {{else}}\n    &mdash;\n  {{/if}}\n  */\n  {\n    \"id\": \"qLj7ZztT\",\n    \"block\": \"[[[41,[30,0,[\\\"firstPart\\\"]],[[[41,[30,0,[\\\"popupText\\\"]],[[[1,\\\"    \\\"],[8,[39,1],null,[[\\\"@text\\\"],[[30,0,[\\\"popupText\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"formattedPath\\\"]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[1,[30,0,[\\\"formattedPath\\\"]]],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"  —\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"label-popup\\\"]]\",\n    \"moduleName\": \"portal/components/allocation-hierarchy.hbs\",\n    \"isStrictMode\": false\n  });\n  class AllocationHierarchyComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"separator\", ' › ');\n    }\n    get maxPaths() {\n      return this.args.maxPaths ?? 3;\n    }\n    get allocations() {\n      return this.args.allocations ?? [];\n    }\n    get primaryAllocation() {\n      return this.allocations[0] ?? [];\n    }\n    get isMultiple() {\n      return this.allocations.length > 1;\n    }\n    get isEmpty() {\n      return this.allocations.length === 0;\n    }\n    get needsTitle() {\n      return this.isMultiple || this.primaryAllocation.length > this.maxPaths;\n    }\n    get firstPart() {\n      if (this.isEmpty) return undefined;\n      if (this.isMultiple) return `${this.allocations.length} projects`;\n      return this.primaryAllocation[0];\n    }\n    get middleParts() {\n      if (this.isMultiple || this.primaryAllocation.length <= 2) {\n        return undefined;\n      }\n      const paths = this.primaryAllocation.slice(1, -1);\n      if (paths.length > this.maxPaths - 2) {\n        return ['...'];\n      }\n      return paths;\n    }\n    get lastPart() {\n      if (this.isMultiple || this.primaryAllocation.length < 2) {\n        return undefined;\n      }\n      return this.primaryAllocation.at(-1);\n    }\n    get formattedPath() {\n      if (!this.firstPart) return undefined;\n      const parts = [this.firstPart];\n      if (this.middleParts) {\n        parts.push(...this.middleParts);\n      }\n      if (this.lastPart) {\n        parts.push(this.lastPart);\n      }\n      return parts.join(this.separator);\n    }\n    get popupText() {\n      if (this.isEmpty || !this.needsTitle) return undefined;\n      return this.allocations.map(path => path.join(this.separator)).join('\\n');\n    }\n  }\n  _exports.default = AllocationHierarchyComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AllocationHierarchyComponent);\n});","define(\"portal/components/allocation-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"portal/utils/tree-item\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _treeItem, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/utils/tree-item\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @onClose={{@onCancel}}\n    @containerClass='bg-white border rounded'\n  >\n    <div class='d-flex bg-light border-bottom'>\n      <h2 class='h2 m-3'>\n        {{#if (gt this.numberOfInvoices 1)}}\n          {{t\n            'components.allocation-selector.allocatingItemsInXBills'\n            number=this.numberOfInvoices\n            item=(pluralize @items.length 'Item')\n          }}\n        {{else}}\n          {{t\n            'components.allocation-selector.allocatingItems'\n            item=(pluralize @items.length 'Item')\n          }}\n        {{/if}}\n      </h2>\n    </div>\n  \n    <div class='allocation-selector__list border-bottom'>\n      <ItemSelector\n        @items={{this.items}}\n        @selectedItem={{this.selectedItem}}\n        @onChange={{fn (mut this.selectedItem)}}\n        @nameKey='name'\n        @homeText={{t 'common.Projects'}}\n        @noItemsMessage={{t 'common.No tasks or projects'}}\n        @searchPlaceholder={{t 'common.Search for a task or project'}}\n        @noSearchItemsMessage={{t 'common.No tasks or projects found'}}\n      />\n    </div>\n  \n    {{#if @xeroIntegration.ready}}\n      <div\n        class='d-flex p-3 border-bottom'\n        data-test-overriding-account-content-div\n      >\n        <label class='p-2'>\n          <InfoPopup\n            @text={{if\n              this.isOverridingXeroAccount\n              (t\n                'components.allocation-selector.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault'\n              )\n              (t\n                'components.allocation-selector.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount'\n              )\n            }}\n          />\n          &nbsp;&nbsp;{{t 'common.Xero account'}}:\n        </label>\n        {{#unless this.isOverridingXeroAccount}}\n          <div class='p-2'>\n            {{#if this.selectedItem.item.effectivePurchasesGlAccount}}\n              {{this.selectedItem.item.effectivePurchasesGlAccount.code}}\n              -\n              {{this.selectedItem.item.effectivePurchasesGlAccount.name}}\n            {{else}}\n              {{t 'components.allocation-selector.No default account'}}\n            {{/if}}\n          </div>\n        {{else}}\n          <PowerSelect\n            style='width: 300px;'\n            @options={{@xeroAccounts}}\n            @selected={{this.xeroAccountOverride}}\n            @onChange={{fn (mut this.xeroAccountOverride)}}\n            @disabled={{@isXeroFetching}}\n            @searchEnabled={{true}}\n            @searchField='searchField'\n            @placeholder={{t 'shared.bill.000 - Account'}}\n            @allowClear={{true}}\n            @afterOptionsComponent={{component\n              'power-select-after-options-button'\n              onClick=@onUpdateXeroAccounts\n              icon='sync'\n              text=(t 'shared.bill.Click to update Xero accounts')\n              isLoading=@isXeroFetching\n              loadingText=(t 'shared.bill.Loading Xero accounts')\n            }}\n            as |option|\n          >\n            {{option.code}}\n            -\n            {{option.name}}\n          </PowerSelect>\n        {{/unless}}\n  \n        <button\n          class='btn btn-link'\n          type='button'\n          data-test-overriding-account-button\n          {{on 'click' this.toggleIsOverridingXeroAccount}}\n        >\n          {{#if this.isOverridingXeroAccount}}\n            {{t 'components.allocation-selector.Overriding account'}}\n            <FaIcon @icon='times' />\n          {{else}}\n            {{t 'components.allocation-selector.Override account'}}\n          {{/if}}\n        </button>\n      </div>\n    {{/if}}\n  \n    {{#if @quickbooksIntegration.ready}}\n      <div\n        class='d-flex p-3 border-bottom'\n        data-test-overriding-account-content-div\n      >\n        <label class='p-2'>\n          <InfoPopup\n            @text={{if\n              this.isOverridingQuickbooksAccount\n              (t\n                'components.allocation-selector.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault'\n              )\n              (t\n                'components.allocation-selector.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount'\n              )\n            }}\n          />\n          &nbsp;&nbsp;{{'QuickBooks Account'}}:\n        </label>\n        {{#unless this.isOverridingQuickbooksAccount}}\n          <div class='p-2'>\n            {{#if this.selectedItem.item.effectivePurchasesGlAccount}}\n              {{this.selectedItem.item.effectivePurchasesGlAccount.name}}\n            {{else}}\n              {{t 'components.allocation-selector.No default account'}}\n            {{/if}}\n          </div>\n        {{else}}\n          <PowerSelect\n            style='width: 300px;'\n            @options={{@quickbooksAccounts}}\n            @selected={{this.quickbooksAccountOverride}}\n            @onChange={{fn (mut this.quickbooksAccountOverride)}}\n            @disabled={{@isQuickbooksFetching}}\n            @keys='name'\n            @searchEnabled={{true}}\n            @placeholder={{t 'shared.bill.000 - Account'}}\n            @allowClear={{true}}\n            @afterOptionsComponent={{component\n              'power-select-after-options-button'\n              onClick=@onUpdateQuickbooksAccounts\n              icon='sync'\n              text='Click to update QuickBooks accounts'\n              isLoading=@isQuickbooksFetching\n              loadingText='Loading QuickBooks accounts'\n            }}\n            as |option|\n          >\n            {{option.name}}\n          </PowerSelect>\n        {{/unless}}\n  \n        <button\n          class='btn btn-link'\n          type='button'\n          data-test-overriding-account-button\n          {{on 'click' this.toggleIsOverridingQuickbooksAccount}}\n        >\n          {{#if this.isOverridingQuickbooksAccount}}\n            {{t 'components.allocation-selector.Overriding account'}}\n            <FaIcon @icon='times' />\n          {{else}}\n            {{t 'components.allocation-selector.Override account'}}\n          {{/if}}\n        </button>\n      </div>\n    {{/if}}\n  \n    <div class='d-flex p-3 bg-light'>\n      <div class='flex-grow-1'>\n        <button\n          class='btn btn-secondary text-white'\n          type='button'\n          disabled={{@isAllocating}}\n          {{on 'click' (fn (mut this.selectedItem) null)}}\n        >{{t 'components.allocation-selector.Clear allocation'}}</button>\n      </div>\n  \n      <button\n        class='btn btn-secondary text-white me-2'\n        type='button'\n        {{on 'click' @onCancel}}\n      >{{t 'common.Cancel'}}</button>\n  \n      <DropdownButton\n        @buttonText={{t\n          'components.allocation-selector.allocatingItems'\n          item=(pluralize @items.length 'item')\n        }}\n        @onPrimaryClick={{(fn\n          @onAllocateSelected\n          this.selectedItem.item\n          (or this.xeroAccountOverride this.quickbooksAccountOverride)\n        )}}\n        @disabled={{@isAllocating}}\n      >\n        {{#unless @isAllocating}}\n          <div\n            role='button'\n            class='dropdown-item'\n            {{on\n              'click'\n              (fn\n                @onAllocateAndAcceptSelected\n                this.selectedItem.item\n                this.xeroAccountOverride\n              )\n            }}\n            data-test-accept-allocation-and-accept-button\n          >{{t 'common.Allocate'}}\n            &amp;\n            {{t 'components.allocation-selector.accept'}}</div>\n          {{#if @xeroIntegration.ready}}\n            <div\n              role='button'\n              class='dropdown-item'\n              {{on\n                'click'\n                (fn\n                  @onAllocateAcceptAndSendToXeroSelected\n                  this.selectedItem.item\n                  this.xeroAccountOverride\n                )\n              }}\n              data-test-accept-allocation-send-xero-button\n            >{{t 'common.Allocate'}},\n              {{t 'components.allocation-selector.accept'}}\n              &amp;\n              {{t 'components.allocation-selector.send to Xero'}}</div>\n          {{/if}}\n        {{else}}\n          <div\n            class='dropdown-item text-center'\n            data-test-accept-allocation-loading-button\n          >\n            <LoadingIcon @type='spinner' />\n          </div>\n        {{/unless}}\n      </DropdownButton>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"0aUvzoKO\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[true,[30,1],\\\"bg-white border rounded\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex bg-light border-bottom\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 m-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,0,[\\\"numberOfInvoices\\\"]],1],null],[[[1,\\\"        \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.allocatingItemsInXBills\\\"],[[\\\"number\\\",\\\"item\\\"],[[30,0,[\\\"numberOfInvoices\\\"]],[28,[37,6],[[30,2,[\\\"length\\\"]],\\\"Item\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.allocatingItems\\\"],[[\\\"item\\\"],[[28,[37,6],[[30,2,[\\\"length\\\"]],\\\"Item\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"allocation-selector__list border-bottom\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@items\\\",\\\"@selectedItem\\\",\\\"@onChange\\\",\\\"@nameKey\\\",\\\"@homeText\\\",\\\"@noItemsMessage\\\",\\\"@searchPlaceholder\\\",\\\"@noSearchItemsMessage\\\"],[[30,0,[\\\"items\\\"]],[30,0,[\\\"selectedItem\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"selectedItem\\\"]]],null]],null],\\\"name\\\",[28,[37,5],[\\\"common.Projects\\\"],null],[28,[37,5],[\\\"common.No tasks or projects\\\"],null],[28,[37,5],[\\\"common.Search for a task or project\\\"],null],[28,[37,5],[\\\"common.No tasks or projects found\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,3,[\\\"ready\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex p-3 border-bottom\\\"],[14,\\\"data-test-overriding-account-content-div\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"p-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@text\\\"],[[52,[30,0,[\\\"isOverridingXeroAccount\\\"]],[28,[37,5],[\\\"components.allocation-selector.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault\\\"],null],[28,[37,5],[\\\"components.allocation-selector.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.Xero account\\\"],null]],[1,\\\":\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isOverridingXeroAccount\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"p-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\"]],[[[1,\\\"            \\\"],[1,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"code\\\"]]],[1,\\\"\\\\n            -\\\\n            \\\"],[1,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.No default account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,13],[[24,5,\\\"width: 300px;\\\"]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@disabled\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\",\\\"@afterOptionsComponent\\\"],[[30,4],[30,0,[\\\"xeroAccountOverride\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"xeroAccountOverride\\\"]]],null]],null],[30,5],true,\\\"searchField\\\",[28,[37,5],[\\\"shared.bill.000 - Account\\\"],null],true,[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[30,6],\\\"sync\\\",[28,[37,5],[\\\"shared.bill.Click to update Xero accounts\\\"],null],[30,5],[28,[37,5],[\\\"shared.bill.Loading Xero accounts\\\"],null]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,7,[\\\"code\\\"]]],[1,\\\"\\\\n          -\\\\n          \\\"],[1,[30,7,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[7]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[24,\\\"data-test-overriding-account-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"toggleIsOverridingXeroAccount\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isOverridingXeroAccount\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.Overriding account\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.Override account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,8,[\\\"ready\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex p-3 border-bottom\\\"],[14,\\\"data-test-overriding-account-content-div\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"p-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@text\\\"],[[52,[30,0,[\\\"isOverridingQuickbooksAccount\\\"]],[28,[37,5],[\\\"components.allocation-selector.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault\\\"],null],[28,[37,5],[\\\"components.allocation-selector.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[1,\\\"QuickBooks Account\\\"],[1,\\\":\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isOverridingQuickbooksAccount\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"p-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\"]],[[[1,\\\"            \\\"],[1,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.No default account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,13],[[24,5,\\\"width: 300px;\\\"]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@disabled\\\",\\\"@keys\\\",\\\"@searchEnabled\\\",\\\"@placeholder\\\",\\\"@allowClear\\\",\\\"@afterOptionsComponent\\\"],[[30,9],[30,0,[\\\"quickbooksAccountOverride\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"quickbooksAccountOverride\\\"]]],null]],null],[30,10],\\\"name\\\",true,[28,[37,5],[\\\"shared.bill.000 - Account\\\"],null],true,[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[30,11],\\\"sync\\\",\\\"Click to update QuickBooks accounts\\\",[30,10],\\\"Loading QuickBooks accounts\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,12,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[12]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[24,\\\"data-test-overriding-account-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"toggleIsOverridingQuickbooksAccount\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isOverridingQuickbooksAccount\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.Overriding account\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.Override account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex p-3 bg-light\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,13]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"selectedItem\\\"]]],null],null],null]],null],[12],[1,[28,[35,5],[\\\"components.allocation-selector.Clear allocation\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white me-2\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,18],null,[[\\\"@buttonText\\\",\\\"@onPrimaryClick\\\",\\\"@disabled\\\"],[[28,[37,5],[\\\"components.allocation-selector.allocatingItems\\\"],[[\\\"item\\\"],[[28,[37,6],[[30,2,[\\\"length\\\"]],\\\"item\\\"],null]]]],[28,[37,8],[[30,14],[30,0,[\\\"selectedItem\\\",\\\"item\\\"]],[28,[37,19],[[30,0,[\\\"xeroAccountOverride\\\"]],[30,0,[\\\"quickbooksAccountOverride\\\"]]],null]],null],[30,13]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,13]],[[[1,\\\"        \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"dropdown-item\\\"],[24,\\\"data-test-accept-allocation-and-accept-button\\\",\\\"\\\"],[4,[38,16],[\\\"click\\\",[28,[37,8],[[30,15],[30,0,[\\\"selectedItem\\\",\\\"item\\\"]],[30,0,[\\\"xeroAccountOverride\\\"]]],null]],null],[12],[1,[28,[35,5],[\\\"common.Allocate\\\"],null]],[1,\\\"\\\\n          &\\\\n          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.accept\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"ready\\\"]],[[[1,\\\"          \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"dropdown-item\\\"],[24,\\\"data-test-accept-allocation-send-xero-button\\\",\\\"\\\"],[4,[38,16],[\\\"click\\\",[28,[37,8],[[30,16],[30,0,[\\\"selectedItem\\\",\\\"item\\\"]],[30,0,[\\\"xeroAccountOverride\\\"]]],null]],null],[12],[1,[28,[35,5],[\\\"common.Allocate\\\"],null]],[1,\\\",\\\\n            \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.accept\\\"],null]],[1,\\\"\\\\n            &\\\\n            \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.send to Xero\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"dropdown-item text-center\\\"],[14,\\\"data-test-accept-allocation-loading-button\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,20],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onCancel\\\",\\\"@items\\\",\\\"@xeroIntegration\\\",\\\"@xeroAccounts\\\",\\\"@isXeroFetching\\\",\\\"@onUpdateXeroAccounts\\\",\\\"option\\\",\\\"@quickbooksIntegration\\\",\\\"@quickbooksAccounts\\\",\\\"@isQuickbooksFetching\\\",\\\"@onUpdateQuickbooksAccounts\\\",\\\"option\\\",\\\"@isAllocating\\\",\\\"@onAllocateSelected\\\",\\\"@onAllocateAndAcceptSelected\\\",\\\"@onAllocateAcceptAndSendToXeroSelected\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h2\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"pluralize\\\",\\\"item-selector\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"info-popup\\\",\\\"unless\\\",\\\"power-select\\\",\\\"component\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"dropdown-button\\\",\\\"or\\\",\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/components/allocation-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"isOverridingXeroAccount\", _descriptor, this);\n      _initializerDefineProperty(this, \"isOverridingQuickbooksAccount\", _descriptor2, this);\n      _initializerDefineProperty(this, \"xeroAccountOverride\", _descriptor3, this);\n      _initializerDefineProperty(this, \"quickbooksAccountOverride\", _descriptor4, this);\n      _initializerDefineProperty(this, \"items\", _descriptor5, this);\n      _initializerDefineProperty(this, \"selectedItem\", _descriptor6, this);\n      this.items = _treeItem.default.constructItemTreeFromProjectAndTasks(this.args.tasks, this.args.projects);\n\n      // if all the items have exactly the same map automatically set the selected item\n      const tasks = new Set(this.args.items.map(item => item.belongsTo('task').value()).filter(t => t));\n      const projects = new Set(this.args.items.map(item => item.belongsTo('project').value()).filter(t => t));\n      // if we have more than one unique map we can't do anything\n      if (projects.size + tasks.size > 1) return;\n      if (projects.size === 1) {\n        // projects are always top level\n        this.selectedItem = this.items.find(i => i.item === projects.values().next().value);\n      }\n      if (tasks.size === 1) {\n        this.selectedItem = _treeItem.default.findItemInTree(this.items, tasks.values().next().value);\n      }\n    }\n    get numberOfInvoices() {\n      return this.args.items.mapBy('bill').uniqBy('id').length;\n    }\n    toggleIsOverridingXeroAccount() {\n      this.isOverridingXeroAccount = !this.isOverridingXeroAccount;\n      // we set this to null so our callbacks can be called with the override\n      this.xeroAccountOverride = null;\n    }\n    toggleIsOverridingQuickbooksAccount() {\n      this.isOverridingQuickbooksAccount = !this.isOverridingQuickbooksAccount;\n      // we set this to null so our callbacks can be called with the override\n      this.quickbooksAccountOverride = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isOverridingXeroAccount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isOverridingQuickbooksAccount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"xeroAccountOverride\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"quickbooksAccountOverride\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"items\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"selectedItem\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleIsOverridingXeroAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsOverridingXeroAccount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleIsOverridingQuickbooksAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsOverridingQuickbooksAccount\"), _class.prototype), _class));\n});","define(\"portal/components/allocation-selector/bread-crumb\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @isSelected}}\n    <span class='text-primary fw-bolder' data-test-allocation-selector-path>\n      {{yield}}\n    </span>\n  {{else}}\n    <span\n      role='button'\n      class='text-primary text-decoration-underline'\n      {{on 'click' @onClick}}\n      data-test-allocation-selector-path\n    >\n      {{yield}}\n    </span>\n    <FaIcon @icon={{or @icon 'chevron-right'}} class='mx-2' />\n  {{/if}}\n  */\n  {\n    \"id\": \"wT0nWY5w\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[10,1],[14,0,\\\"text-primary fw-bolder\\\"],[14,\\\"data-test-allocation-selector-path\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[18,4,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-primary text-decoration-underline\\\"],[24,\\\"data-test-allocation-selector-path\\\",\\\"\\\"],[4,[38,3],[\\\"click\\\",[30,2]],null],[12],[1,\\\"\\\\n    \\\"],[18,4,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[[28,[37,5],[[30,3],\\\"chevron-right\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@isSelected\\\",\\\"@onClick\\\",\\\"@icon\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"span\\\",\\\"yield\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"or\\\"]]\",\n    \"moduleName\": \"portal/components/allocation-selector/bread-crumb.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/attachment-dropdown-list\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PopOver @direction='bottom-left' as |po|>\n    <button\n      type='button'\n      class={{or @buttonClass 'btn btn-secondary text-white'}}\n    >\n      {{this.buttonText}}\n      &nbsp;&nbsp;<FaIcon @icon='paperclip' />\n    </button>\n    <po.Content>\n      {{#each @attachments as |attachment|}}\n        <div class='d-flex me-1'>\n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-6 m-1'\n            {{on 'click' (fn @onDownloadAttachment attachment)}}\n          >\n            <div class='d-flex align-items-center'>\n              <FileTypeIcon @mime={{attachment.fileType}} />\n              <span class='ms-2'>\n                {{ellipsis-characters attachment.filename 30}}\n              </span>\n            </div>\n          </button>\n          <button\n            type='button'\n            class='text-button'\n            {{on 'click' (fn @onDeleteAttachment attachment)}}\n          >\n            <FaIcon @icon='times' class='me-2' />\n          </button>\n        </div>\n      {{else}}\n        <div class='text-nowrap fs-6 text-center m-1'>\n          {{t 'shared.bill.No attachments'}}\n        </div>\n      {{/each}}\n  \n      {{#if @isDragAndDropVisible}}\n        <div class='d-flex justify-content-center'>\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            style='min-width: 180px;'\n            {{on 'click' (fn (mut this.isAttachmentModalVisible) true)}}\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t\n              'components.attachment-dropdown-list.Add attachments'\n            }}\n          </button>\n        </div>\n      {{/if}}\n    </po.Content>\n  </PopOver>\n  \n  <AttachmentUploadModal\n    @visible={{this.isAttachmentModalVisible}}\n    @parent={{@parent}}\n    @onUploadComplete={{this.onAttachmentsUploadComplete}}\n    @isDragAndDropVisible={{@isDragAndDropVisible}}\n  />\n  */\n  {\n    \"id\": \"dNIHDMkz\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@direction\\\"],[\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,\\\"button\\\"],[15,0,[28,[37,2],[[30,2],\\\"btn btn-secondary text-white\\\"],null]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"buttonText\\\"]]],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@icon\\\"],[\\\"paperclip\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,3]],null]],null],null,[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex me-1\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-6 m-1\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[30,5],[30,4]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@mime\\\"],[[30,4,[\\\"fileType\\\"]]]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"ms-2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,11],[[30,4,[\\\"filename\\\"]],30],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[30,6],[30,4]],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,3],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"text-nowrap fs-6 text-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,12],[\\\"shared.bill.No attachments\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,5,\\\"min-width: 180px;\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[28,[37,14],[[30,0,[\\\"isAttachmentModalVisible\\\"]]],null],true],null]],null],[12],[8,[39,3],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,12],[\\\"components.attachment-dropdown-list.Add attachments\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,15],null,[[\\\"@visible\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"isAttachmentModalVisible\\\"]],[30,8],[30,0,[\\\"onAttachmentsUploadComplete\\\"]],[30,7]]],null]],[\\\"po\\\",\\\"@buttonClass\\\",\\\"@attachments\\\",\\\"attachment\\\",\\\"@onDownloadAttachment\\\",\\\"@onDeleteAttachment\\\",\\\"@isDragAndDropVisible\\\",\\\"@parent\\\"],false,[\\\"pop-over\\\",\\\"button\\\",\\\"or\\\",\\\"fa-icon\\\",\\\"each\\\",\\\"-track-array\\\",\\\"div\\\",\\\"on\\\",\\\"fn\\\",\\\"file-type-icon\\\",\\\"span\\\",\\\"ellipsis-characters\\\",\\\"t\\\",\\\"if\\\",\\\"mut\\\",\\\"attachment-upload-modal\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-dropdown-list.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"isAttachmentModalVisible\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get buttonText() {\n      const attachment = this.args.attachments.length === 1 ? this.intl.t('shared.bill.attachment') : this.intl.t('shared.bill.attachments');\n      return this.args.attachments.length ? `${this.args.attachments.length} ${attachment}` : this.intl.t('shared.bill.No attachments');\n    }\n    onAttachmentsUploadComplete({\n      error,\n      validationErrors,\n      attachments\n    }) {\n      this.args.onUploadComplete({\n        error,\n        validationErrors,\n        attachments\n      });\n      this.isAttachmentModalVisible = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isAttachmentModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onAttachmentsUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAttachmentsUploadComplete\"), _class.prototype), _class));\n});","define(\"portal/components/attachment-dropdown\", [\"exports\", \"@ember/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <OverlaidDropdown\n    @buttonText={{this.buttonText}}\n    @buttonIcon={{or this.buttonIcon 'paperclip'}}\n    @align={{or this.align 'right'}}\n    @buttonClasses={{or this.buttonClasses 'button'}}\n  ><div\n      class='attachment-dropdown__item-container'\n    >{{yield}}</div></OverlaidDropdown>\n  */\n  {\n    \"id\": \"2tSjms9o\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@buttonText\\\",\\\"@buttonIcon\\\",\\\"@align\\\",\\\"@buttonClasses\\\"],[[30,0,[\\\"buttonText\\\"]],[28,[37,1],[[30,0,[\\\"buttonIcon\\\"]],\\\"paperclip\\\"],null],[28,[37,1],[[30,0,[\\\"align\\\"]],\\\"right\\\"],null],[28,[37,1],[[30,0,[\\\"buttonClasses\\\"]],\\\"button\\\"],null]]],[[\\\"default\\\"],[[[[10,0],[14,0,\\\"attachment-dropdown__item-container\\\"],[12],[18,1,null],[13]],[]]]]]],[\\\"&default\\\"],false,[\\\"overlaid-dropdown\\\",\\\"or\\\",\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-dropdown.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"numberOfAttachments\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get buttonText() {\n      const attachment = this.numberOfAttachments === 1 ? this.intl.t('shared.bill.attachment') : this.intl.t('shared.bill.attachments');\n      return this.numberOfAttachments ? `${this.numberOfAttachments} ${attachment}` : this.intl.t('shared.bill.No attachments');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"numberOfAttachments\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/attachment-dropdown/item\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _object, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='attachment-dropdown__item'\n    {{on 'mouseleave' (fn (mut this.deleteConfirm) false)}}\n  >\n    {{#if this.onDownload}}\n      <div\n        class='attachment-dropdown__item-download-container'\n        title={{this.filename}}\n        {{on 'click' this.onDownload}}\n      >\n        <div class='attachment-dropdown__item-file-icon'>\n          <FileTypeIcon @mime={{this.mime}} />\n        </div>\n        <div class='attachment-dropdown__item-file-name'>\n          {{this.filename}}\n        </div>\n      </div>\n    {{/if}}\n    {{#if this.onDelete}}\n      <div class='attachment-dropdown__item-file-delete-button'>\n        {{#if this.isDeleting}}\n          <LoadingIcon @type='spinner' />\n        {{else}}\n          {{#if this.deleteConfirm}}\n            <button\n              type='button'\n              class='text-button text-button--delete'\n              {{on 'click' this._onDelete}}\n            >{{t 'common.Confirm'}} <FaIcon @icon='trash' /></button>\n          {{else}}\n            <button\n              type='button'\n              class='text-button'\n              {{on 'click' (fn (mut this.deleteConfirm) true)}}\n            >{{t 'common.Delete'}} <FaIcon @icon='trash' /></button>\n          {{/if}}\n        {{/if}}\n      </div>\n    {{/if}}\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"/+fbXtaJ\",\n    \"block\": \"[[[11,0],[24,0,\\\"attachment-dropdown__item\\\"],[4,[38,1],[\\\"mouseleave\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"deleteConfirm\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDownload\\\"]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"attachment-dropdown__item-download-container\\\"],[16,\\\"title\\\",[30,0,[\\\"filename\\\"]]],[4,[38,1],[\\\"click\\\",[30,0,[\\\"onDownload\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"attachment-dropdown__item-file-icon\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@mime\\\"],[[30,0,[\\\"mime\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"attachment-dropdown__item-file-name\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"filename\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"onDelete\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"attachment-dropdown__item-file-delete-button\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeleting\\\"]],[[[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"deleteConfirm\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"_onDelete\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Confirm\\\"],null]],[1,\\\" \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"deleteConfirm\\\"]]],null],true],null]],null],[12],[1,[28,[35,8],[\\\"common.Delete\\\"],null]],[1,\\\" \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[18,1,null],[1,\\\"\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"div\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"if\\\",\\\"file-type-icon\\\",\\\"loading-icon\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-dropdown/item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tagName\", '');\n      _initializerDefineProperty(this, \"isDeleting\", _descriptor, this);\n      _initializerDefineProperty(this, \"deleteConfirm\", _descriptor2, this);\n    }\n    async _onDelete() {\n      try {\n        this.isDeleting = true;\n        await this.onDelete();\n      } finally {\n        this.isDeleting = false;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isDeleting\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"deleteConfirm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"_onDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onDelete\"), _class.prototype), _class));\n});","define(\"portal/components/attachment-manager\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/array\", \"@ember/object\", \"@ember/debug\", \"@glimmer/tracking\", \"portal/models/attachment\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _service, _array, _object, _debug, _tracking, _attachment, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _class2, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/array\",0,\"@ember/object\",0,\"@ember/object\",0,\"@ember/debug\",0,\"@glimmer/tracking\",0,\"portal/models/attachment\",0,\"portal/config/environment\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.visible}}\n    <ModalDialog\n      @onClose={{fn (mut this.visible) false}}\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @containerClass='block-module'\n    >\n      <div\n        id='attachment-manager__drop-zone'\n        {{on 'drop' this.onDropZoneDrop}}\n        {{on 'dragover' this.onDropZoneDragOver}}\n      >\n        {{#if this.fileContainers.length}}\n          <div class='attachment-manager__file-table-container'>\n            <table class='attachment-manager__file-table'>\n              <tbody>\n                {{#each this.fileContainers as |fc|}}\n                  <tr data-test-attachment-manager-attachment-row={{fc.hash}}>\n                    <td\n                      class='attachment-manager__file-table-file-name-cell'\n                    ><FileTypeIcon\n                        @mime={{fc.file.type}}\n                      />&nbsp;&nbsp;{{fc.file.name}}</td>\n                    <td class='attachment-manager__file-table-icon-cell'>\n                      {{#if fc.saved}}\n                        <span\n                          class='attachment-manager__file-table-icon-cell--success'\n                          data-test-attachment-manager-saved-message={{fc.hash}}\n                        >\n                          <InfoPopup\n                            @text={{t\n                              'components.attachment-manager.Attachment has been saved'\n                            }}\n                            @iconName='check'\n                            @align='right'\n                          />\n                        </span>\n                      {{/if}}\n                      {{#if fc.isInvalid}}\n                        <span\n                          class='attachment-manager__file-table-icon-cell--info'\n                          data-test-attachment-manager-invalid-message={{fc.hash}}\n                        >\n                          <InfoPopup\n                            @text={{fc.invalidMessage}}\n                            @iconName='exclamation-circle'\n                            @align='right'\n                          />\n                        </span>\n                      {{/if}}\n                      {{#if fc.hasErrored}}\n                        <span\n                          class='attachment-manager__file-table-icon-cell--error'\n                          data-test-attachment-manager-error-message={{fc.hash}}\n                        >\n                          <InfoPopup\n                            @text={{fc.errorMessage}}\n                            @iconName='exclamation-triangle'\n                            @align='right'\n                          />\n                        </span>\n                      {{/if}}\n                    </td>\n                    <td class='attachment-manager__file-table-icon-cell'>\n                      {{#if fc.isSaving}}\n                        <LoadingIcon @type='spinner' />\n                      {{else}}\n                        <button\n                          class='text-button'\n                          type='button'\n                          {{on 'click' (fn this.unstageFile fc)}}\n                          disabled={{this.isSaving}}\n                          data-test-attachment-manager-delete-container={{fc.hash}}\n                        ><FaIcon @icon='times' /></button>\n                      {{/if}}\n                    </td>\n                  </tr>\n                {{/each}}\n              </tbody>\n            </table>\n          </div>\n        {{/if}}\n  \n        <div class='attachment-manager__drop-zone-button'>\n          {{t 'shared.bill.Drag files here or'}}&nbsp;\n          <button\n            class='button button--add'\n            data-test-attachment-manager-browse-button=''\n            type='button'\n            {{on 'click' this.onManualUploadClick}}\n          >{{t 'shared.bill.Browse files'}}</button>\n        </div>\n      </div>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @class='float-end button'\n          @isLoading={{this.isSaving}}\n          @action={{this.completeUpload}}\n          @buttonText={{t 'common.Upload files'}}\n          data-test-attachment-manager-upload-files\n        />\n        <button\n          class='button button--plain'\n          disabled={{this.isSaving}}\n          type='button'\n          {{on 'click' this.close}}\n        >{{t 'common.Close'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"kkRFVoiu\",\n    \"block\": \"[[[41,[30,0,[\\\"visible\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,2],[[28,[37,3],[[30,0,[\\\"visible\\\"]]],null],false],null],true,\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,1,\\\"attachment-manager__drop-zone\\\"],[4,[38,5],[\\\"drop\\\",[30,0,[\\\"onDropZoneDrop\\\"]]],null],[4,[38,5],[\\\"dragover\\\",[30,0,[\\\"onDropZoneDragOver\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"fileContainers\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"attachment-manager__file-table-container\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"attachment-manager__file-table\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"fileContainers\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[15,\\\"data-test-attachment-manager-attachment-row\\\",[30,1,[\\\"hash\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"attachment-manager__file-table-file-name-cell\\\"],[12],[8,[39,12],null,[[\\\"@mime\\\"],[[30,1,[\\\"file\\\",\\\"type\\\"]]]],null],[1,\\\"  \\\"],[1,[30,1,[\\\"file\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"attachment-manager__file-table-icon-cell\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"saved\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"attachment-manager__file-table-icon-cell--success\\\"],[15,\\\"data-test-attachment-manager-saved-message\\\",[30,1,[\\\"hash\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[8,[39,14],null,[[\\\"@text\\\",\\\"@iconName\\\",\\\"@align\\\"],[[28,[37,15],[\\\"components.attachment-manager.Attachment has been saved\\\"],null],\\\"check\\\",\\\"right\\\"]],null],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"isInvalid\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"attachment-manager__file-table-icon-cell--info\\\"],[15,\\\"data-test-attachment-manager-invalid-message\\\",[30,1,[\\\"hash\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[8,[39,14],null,[[\\\"@text\\\",\\\"@iconName\\\",\\\"@align\\\"],[[30,1,[\\\"invalidMessage\\\"]],\\\"exclamation-circle\\\",\\\"right\\\"]],null],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"hasErrored\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"attachment-manager__file-table-icon-cell--error\\\"],[15,\\\"data-test-attachment-manager-error-message\\\",[30,1,[\\\"hash\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[8,[39,14],null,[[\\\"@text\\\",\\\"@iconName\\\",\\\"@align\\\"],[[30,1,[\\\"errorMessage\\\"]],\\\"exclamation-triangle\\\",\\\"right\\\"]],null],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"attachment-manager__file-table-icon-cell\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isSaving\\\"]],[[[1,\\\"                      \\\"],[8,[39,16],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[16,\\\"data-test-attachment-manager-delete-container\\\",[30,1,[\\\"hash\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"unstageFile\\\"]],[30,1]],null]],null],[12],[8,[39,18],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"attachment-manager__drop-zone-button\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,15],[\\\"shared.bill.Drag files here or\\\"],null]],[1,\\\" \\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[24,\\\"data-test-attachment-manager-browse-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"onManualUploadClick\\\"]]],null],[12],[1,[28,[35,15],[\\\"shared.bill.Browse files\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,20],[[24,\\\"data-test-attachment-manager-upload-files\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button\\\",[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"completeUpload\\\"]],[28,[37,15],[\\\"common.Upload files\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"close\\\"]]],null],[12],[1,[28,[35,15],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"fc\\\"],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"on\\\",\\\"table\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"td\\\",\\\"file-type-icon\\\",\\\"span\\\",\\\"info-popup\\\",\\\"t\\\",\\\"loading-icon\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"footer\\\",\\\"loading-button\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-manager.hbs\",\n    \"isStrictMode\": false\n  });\n  let FileContainer = (_class = class FileContainer extends _object.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"file\", _descriptor, this);\n      _initializerDefineProperty(this, \"hash\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isSaving\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isInvalid\", _descriptor4, this);\n      _initializerDefineProperty(this, \"hasErrored\", _descriptor5, this);\n      _initializerDefineProperty(this, \"saved\", _descriptor6, this);\n      _initializerDefineProperty(this, \"invalidMessage\", _descriptor7, this);\n      _initializerDefineProperty(this, \"errorMessage\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"file\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hash\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isSaving\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isInvalid\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"hasErrored\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"saved\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"invalidMessage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"errorMessage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor9, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor0, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor1, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor10, this);\n      _initializerDefineProperty(this, \"acceptedMimeTypes\", _descriptor11, this);\n      _initializerDefineProperty(this, \"visible\", _descriptor12, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor13, this);\n      _initializerDefineProperty(this, \"fileContainers\", _descriptor14, this);\n    }\n    init() {\n      super.init(...arguments);\n      (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 \"ACCEPTED\") \"bg-info\"}}\n            {{if (eq @bill.status \"HELD\") \"bg-warning text-dark\"}}\n            {{if (eq @bill.status \"PAID\") \"bg-success\"}}\n            {{if (eq @bill.status \"ARCHIVED\") \"bg-secondary\"}}\n            '\n        >\n          {{@bill.statusLabel}}\n        </span>\n        {{#if @bill.hasDuplicate}}\n          <button\n            type='button'\n            class='btn btn-link p-0 ms-1 text-decoration-none'\n            title={{t 'components.bill-editor.View duplicate bills'}}\n            {{on 'click' this.viewDuplicateBills}}\n          >\n            <span class='badge fs-7 bg-danger'>\n              {{t 'common.Duplicate'}}\n              <FaIcon @icon='external-link-alt' />\n            </span>\n          </button>\n        {{/if}}\n      </h2>\n  \n      <div class='d-flex align-items-center gap-2 ms-auto'>\n        {{#if @bill.accountingPackageUrl}}\n          <a\n            href={{@bill.accountingPackageUrl}}\n            target='_blank'\n            rel='noopener noreferrer'\n            class='btn btn-link text-primary text-decoration-underline m-1'\n          >\n            {{t\n              'components.bill-editor.viewInLabel'\n              label=this.accountingPlatform.label\n            }}\n            <FaIcon class='ms-1' @icon='external-link-alt' />\n          </a>\n        {{/if}}\n  \n        <AttachmentsPopover\n          @attachments={{this.allAttachments}}\n          @disabled={{not this.canManageBills}}\n          @onViewAttachment={{this.viewAttachment}}\n          @onUploadComplete={{this.attachmentsUploadComplete}}\n          @onDeleteAttachment={{this.deleteAttachment}}\n        />\n  \n        <div class='d-flex'>\n          {{#if\n            (and\n              this.billActions.primaryAction\n              (not this.billActions.secondaryActions.length)\n            )\n          }}\n            <button\n              type='button'\n              class='btn btn-primary text-white m-1'\n              disabled={{or this.isLoading this.isActionsRunning}}\n              {{on\n                'click'\n                (perform\n                  this.billActions.primaryAction.action\n                  this.billActions.primaryAction.targetStatus\n                )\n              }}\n            >\n              {{#if this.isActionsRunning}}\n                {{t 'common.Syncing'}}&hellip;\n              {{else}}\n                {{this.billActions.primaryAction.name}}\n              {{/if}}\n            </button>\n          {{else if\n            (and\n              this.billActions.primaryAction\n              this.billActions.secondaryActions.length\n            )\n          }}\n            <div class='m-1'>\n              <DropdownButton\n                @onPrimaryClick={{perform\n                  this.billActions.primaryAction.action\n                  this.billActions.primaryAction.targetStatus\n                  this.billActions.primaryAction.syncToAccountingPackage\n                }}\n                @buttonText={{if\n                  this.isActionsRunning\n                  (t 'common.Saving')\n                  this.billActions.primaryAction.name\n                }}\n                @disabled={{or this.isLoading this.isActionsRunning}}\n              >\n                {{#each this.billActions.secondaryActions as |action|}}\n                  <button\n                    type='button'\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (perform\n                        action.action\n                        action.targetStatus\n                        action.syncToAccountingPackage\n                      )\n                    }}\n                    disabled={{action.action.isRunning}}\n                  >\n                    {{#if action.action.isRunning}}\n                      {{t 'common.Updating'}}&hellip;\n                    {{else}}\n                      {{action.name}}\n                    {{/if}}\n                  </button>\n                {{/each}}\n              </DropdownButton>\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='d-flex align-items-center gap-1'>\n          {{#unless @bill.isNew}}\n            <IconButton\n              @size='md'\n              @icon='arrow-up'\n              {{on 'click' this.previousBill}}\n              {{on-key 'ArrowUp' this.triggerPreviousBill}}\n              title={{format-shortcut\n                'ArrowUp'\n                (t 'components.bill-editor.Previous bill')\n              }}\n            />\n            <IconButton\n              @size='md'\n              @icon='arrow-down'\n              {{on 'click' this.nextBill}}\n              {{on-key 'ArrowDown' this.triggerNextBill}}\n              title={{format-shortcut\n                'ArrowDown'\n                (t 'components.bill-editor.Next bill')\n              }}\n            />\n          {{/unless}}\n  \n          <LinkTo\n            @route='entity.builda-price.operations.incoming.bills'\n            class='d-flex'\n          >\n            <IconButton\n              @size='md'\n              @icon='times'\n              {{on-key 'Escape' this.triggerClose}}\n              title={{format-shortcut\n                'Esc'\n                (t 'components.bill-editor.Back to list')\n              }}\n            />\n          </LinkTo>\n        </div>\n      </div>\n    </div>\n  \n    <form class='p-3'>\n      <div class='d-flex'>\n        <div class='col mb-3'>\n          <label class='mb-1'>\n            {{t 'common.Issuer'}}\n            <sup class='text-danger'>*</sup>\n          </label>\n          <SearchSelector\n            @onSelect={{this.setIssuerContact}}\n            @onLoad={{this.loadContacts}}\n            @noDataMessage={{t 'common.Create a contact'}}\n            @noDataAction={{this.createIssuerContact}}\n            @showNoDataActionWithResults={{true}}\n            @initialSearchTerm={{@bill.issuer}}\n            @placeholder={{@bill.issuer}}\n            @key='issuerContact'\n            @optionKeys={{array 'name'}}\n            @model={{this.billForm}}\n            @disabled={{or (not this.canManageBills) this.save.isRunning}}\n            @forceValidationVisible={{true}}\n          />\n          {{#if this.billForm.issuerContact}}\n            <LinkTo\n              @route='entity.settings.contacts.contact'\n              @model={{this.billForm.issuerContact.id}}\n              class='link ps-1'\n              target='_blank'\n            >\n              View contact\n              <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='sm' />\n            </LinkTo>\n          {{/if}}\n        </div>\n  \n        <div class='col mx-3 mb-3'>\n          <PtlInput\n            @containerClass='mb-0'\n            @type='select'\n            @label={{t 'common.Allocation type'}}\n            @key='allocationType'\n            @required={{true}}\n            @model={{this.billForm}}\n            @options={{array\n              (hash value='MATERIALS' label=(t 'common.Materials'))\n              (hash value='SUBCONTRACTORS' label=(t 'common.Subcontractors'))\n              (hash value='LABOUR' label=(t 'common.Labour'))\n            }}\n            @selectNoBlankOption={{true}}\n            disabled={{or (not this.canManageBills) this.save.isRunning}}\n            @forceValidationVisible={{true}}\n          />\n          {{#if this.hasDifferentAllocationType}}\n            <button\n              type='button'\n              class='btn btn-link p-0 text-primary'\n              disabled={{or (not this.canManageBills) this.save.isRunning}}\n              {{on 'click' this.setDefaultAllocationType}}\n            >\n              {{t 'components.bill-editor.Set as default allocation type'}}\n            </button>\n          {{/if}}\n        </div>\n  \n        <PtlInput\n          @containerClass='col mb-3'\n          @type='text'\n          @label={{t 'common.Number'}}\n          @key='billNumber'\n          @model={{this.billForm}}\n          @required={{true}}\n          disabled={{or (not this.canManageBills) this.save.isRunning}}\n          @forceValidationVisible={{true}}\n        />\n      </div>\n  \n      <div class='d-flex'>\n        <PtlInput\n          @containerClass='col mb-1'\n          @type='date'\n          @label={{t 'common.Issue date'}}\n          @key='issueDate'\n          @model={{this.billForm}}\n          disabled={{or (not this.canManageBills) this.save.isRunning}}\n          @required={{true}}\n          @forceValidationVisible={{true}}\n        />\n  \n        <PtlInput\n          @containerClass='col mb-1 mx-3'\n          @type='date'\n          @label={{t 'common.Due date'}}\n          @key='dueDate'\n          @model={{this.billForm}}\n          @required={{not (eq this.billForm.billType 'CREDIT_NOTE')}}\n          disabled={{or (not this.canManageBills) this.save.isRunning}}\n          @forceValidationVisible={{true}}\n        />\n  \n        <div class='col position-relative'>\n          <NewComboBox\n            class='col mb-0'\n            @isLoading={{or\n              this.onSearchPurchaseOrders.isRunning\n              this.loadMorePurchaseOrders.isRunning\n            }}\n            @list={{this.purchaseOrders}}\n            @noDataMessage={{t 'shared.purchase-order.No purchase orders'}}\n            @onSelect={{this.setPurchaseOrder}}\n            @onSearch={{this.onSearchPurchaseOrders}}\n            @debounce={{this.debounceTime}}\n            @label={{t 'common.Purchase order'}}\n            @key='reference'\n            @optionKeys={{array 'purchaseOrderNumber'}}\n            @model={{this.billForm}}\n            @inputContainerClass='mb-1'\n            @hasNextPage={{this.hasNextPurchaseOrderPage}}\n            @onLoadMore={{this.loadMorePurchaseOrders}}\n            @disabled={{or (not this.canManageBills) this.save.isRunning}}\n            @forceValidationVisible={{true}}\n          />\n          {{#if this.billForm.purchaseOrder.id}}\n            <LinkTo\n              @route='entity.builda-price.operations.outgoing.purchase-orders.purchase-order'\n              @model={{this.billForm.purchaseOrder.id}}\n              class='link ps-1 position-absolute mt-1'\n              style='bottom: -3px;'\n              target='_blank'\n            >\n              View purchase order\n              <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='sm' />\n            </LinkTo>\n          {{/if}}\n        </div>\n      </div>\n  \n      <div class='d-flex'>\n        <PtlInput\n          @containerClass='col-8 mb-3'\n          @type='textarea'\n          @label={{t 'common.Notes'}}\n          @key='notes'\n          @model={{this.billForm}}\n          disabled={{or (not this.canManageBills) this.save.isRunning}}\n          @forceValidationVisible={{true}}\n          style='max-height:60px;'\n        />\n      </div>\n  \n      {{#if this.canManageBills}}\n        <div class='pb-2 d-flex'>\n          {{#if (or this.allBillItemsSelected this.someBillItemsSelected)}}\n            <button\n              class='btn btn-link text-danger text-decoration-underline'\n              type='button'\n              {{on 'click' this.deleteSelectedBillItemForms}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n          {{/if}}\n  \n          <button\n            class='ms-auto btn btn-success text-white'\n            type='button'\n            {{on 'click' this.addNewBillItem}}\n            {{on-key 'cmd+i' this.addNewBillItem}}\n            title={{format-shortcut 'cmd+i' (t 'common.Add new item')}}\n          >\n            {{t 'common.Add new item'}}\n          </button>\n        </div>\n      {{/if}}\n      <table\n        class='table table-sm align-middle w-100'\n        id='bill-items-table'\n        style='table-layout: fixed;'\n      >\n        <thead>\n          <tr>\n            {{#if this.columnSpans.select}}\n              <th\n                colspan={{this.columnSpans.select}}\n                role='button'\n                class='text-center px-1'\n                style='width: 32px;'\n                {{on 'click' this.toggleSelectAll}}\n              >\n                {{! template-lint-disable no-nested-interactive }}\n                <input\n                  class='pe-none'\n                  type='checkbox'\n                  checked={{this.allBillItemsSelected}}\n                  disabled={{this.save.isRunning}}\n                  indeterminate={{this.someBillItemsSelected}}\n                />\n              </th>\n            {{/if}}\n            <th colspan={{this.columnSpans.code}} class='text-nowrap'>\n              {{t 'common.Code'}}</th>\n            <th colspan={{this.columnSpans.description}} class='text-nowrap'>\n              {{t 'common.Description'}}\n            </th>\n  \n            {{#if this.columnSpans.allocation}}\n              <th colspan={{this.columnSpans.allocation}} class='text-nowrap'>\n                {{t 'common.Allocation'}}\n              </th>\n            {{/if}}\n            {{#if this.columnSpans.purchaseOrderItem}}\n              <th\n                colspan={{this.columnSpans.purchaseOrderItem}}\n                class='text-nowrap'\n              >\n                {{t 'components.bill-editor.PO item'}}\n              </th>\n            {{/if}}\n            {{#if this.columnSpans.glAccount}}\n              <th colspan={{this.columnSpans.glAccount}} class='text-nowrap'>\n                {{t 'common.GL account'}}\n              </th>\n            {{/if}}\n  \n            <th\n              colspan={{this.columnSpans.quantity}}\n              class='text-end text-nowrap'\n            >\n              {{t 'common.Qty'}}</th>\n            <th colspan={{this.columnSpans.unitPrice}} class='text-nowrap'>\n              {{t 'common.Unit price'}}</th>\n            <th colspan={{this.columnSpans.total}} class='text-end text-nowrap'>\n              {{t 'common.Total'}}\n            </th>\n            {{#if this.columnSpans.icon}}\n              <th colspan={{this.columnSpans.icon}}>\n              </th>\n            {{/if}}\n          </tr>\n        </thead>\n        <tbody>\n          {{#if this.filteredBillItemForms.length}}\n            {{#each this.filteredBillItemForms as |item|}}\n              <tr>\n                {{#if this.columnSpans.select}}\n                  <td\n                    colspan={{this.columnSpans.select}}\n                    role='button'\n                    class='text-center px-1'\n                    style='width: 32px;'\n                    {{on 'click' (fn this.toggleSelected item)}}\n                  >\n                    {{! template-lint-disable no-nested-interactive }}\n                    <input\n                      class='pe-none'\n                      type='checkbox'\n                      disabled={{this.save.isRunning}}\n                      checked={{includes this.selectedBillItemForms item}}\n                    />\n                  </td>\n                {{/if}}\n                <td colspan={{this.columnSpans.code}}>\n                  <PtlInput\n                    @containerClass='m-0'\n                    @type='text'\n                    @key='productCode'\n                    @model={{item}}\n                    style='width: 65px'\n                    disabled={{or (not this.canManageBills) this.save.isRunning}}\n                    @forceValidationVisible={{true}}\n                    @onChange={{this.validateBothDescriptionAndProductCode item}}\n                  />\n                </td>\n                <td colspan={{this.columnSpans.description}}>\n                  <PtlInput\n                    @containerClass='m-0'\n                    @type='text'\n                    @key='description'\n                    @model={{item}}\n                    disabled={{or (not this.canManageBills) this.save.isRunning}}\n                    @forceValidationVisible={{true}}\n                    @onChange={{this.validateBothDescriptionAndProductCode item}}\n                  />\n                </td>\n  \n                {{#if this.columnSpans.allocation}}\n                  <td colspan={{this.columnSpans.allocation}}>\n                    <AllocationHierarchy @allocations={{item.allocations}} />\n                  </td>\n                {{/if}}\n                {{#if this.columnSpans.purchaseOrderItem}}\n                  <td colspan={{this.columnSpans.purchaseOrderItem}}>\n                    <div class='d-flex align-items-center w-100'>\n                      <div class='flex-grow-1 me-1' style='min-width: 0;'>\n                        <SearchSelector\n                          @onSelect={{fn this.setBillItemPurchaseOrderItem item}}\n                          @onLoad={{this.loadPurchaseOrderItems}}\n                          @noDataMessage={{t\n                            'components.bill-editor.No purchase order items'\n                          }}\n                          @key='purchaseOrderItem'\n                          @optionKeys={{array 'sku' 'description'}}\n                          @model={{item}}\n                          @disabled={{or\n                            (not this.canManageBills)\n                            this.save.isRunning\n                          }}\n                          @forceValidationVisible={{true}}\n                          class='w-100'\n                        />\n                      </div>\n                      {{#if item.purchaseOrderMatchingStatus}}\n                        <InfoPopup\n                          @text={{item.purchaseOrderMatchingStatus.title}}\n                          @iconName='exclamation-circle'\n                          class='{{item.purchaseOrderMatchingStatus.class}} ms-1'\n                        />\n                      {{/if}}\n                    </div>\n                  </td>\n                {{/if}}\n                {{#if this.columnSpans.glAccount}}\n                  <td colspan={{this.columnSpans.glAccount}}>\n                    <span class='fs-6'>\n                      {{item.glAccountLabel}}\n                    </span>\n                  </td>\n                {{/if}}\n  \n                <td colspan={{this.columnSpans.quantity}} class='text-end'>\n                  <PtlInput\n                    @containerClass='m-0'\n                    @type='number'\n                    @key='quantity'\n                    @model={{item}}\n                    disabled={{or (not this.canManageBills) this.save.isRunning}}\n                    style='width: 50px'\n                    @forceValidationVisible={{true}}\n                  />\n                </td>\n                <td colspan={{this.columnSpans.unitPrice}} class='text-end'>\n                  <PtlInput\n                    @containerClass='m-0'\n                    @type='currency'\n                    @key='unitPrice'\n                    style='width: 60px'\n                    @model={{item}}\n                    disabled={{or (not this.canManageBills) this.save.isRunning}}\n                    @forceValidationVisible={{true}}\n                  />\n                </td>\n                <td\n                  colspan={{this.columnSpans.total}}\n                  class='text-end text-nowrap'\n                >\n                  {{number-format\n                    (math (or item.quantity 0) '*' (or item.unitPrice 0))\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                {{#if this.columnSpans.icon}}\n                  <td colspan={{this.columnSpans.icon}} class='text-center px-1'>\n                    <BillItemSummary @item={{item}} />\n                  </td>\n                {{/if}}\n              </tr>\n            {{/each}}\n          {{else}}\n            <tr>\n              <td class='text-center' colspan={{this.columnSpans.totalSpan}}>\n                {{t 'components.bill-editor.No bill items'}}\n              </td>\n            </tr>\n          {{/if}}\n        </tbody>\n      </table>\n    </form>\n  \n    {{! z-index is 5 because the inputs get 5 when focused}}\n    <div\n      class='d-flex flex-column border-top p-3 position-sticky bg-white'\n      style='bottom: 0; z-index: 5;'\n    >\n      <h2 class='m-0 ms-auto mb-3'>\n        {{t 'common.Total'}}\n        {{number-format this.totalPrice style='currency' dashZero=true}}\n      </h2>\n  \n      <div class='d-flex align-items-center justify-content-between'>\n        {{#unless @bill.isNew}}\n          <button\n            type='button'\n            class='btn btn-link text-danger text-decoration-underline ps-0'\n            disabled={{or (not this.canManageBills) this.save.isRunning}}\n            {{on 'click' (fn (mut this.showBillDeleteConfirmModal) true)}}\n          >\n            {{#if this.save.isRunning}}\n              {{t 'common.Deleting'}}\n              &hellip;\n            {{else}}\n              {{t 'common.Delete'}}\n            {{/if}}\n          </button>\n  \n        {{/unless}}\n        <button\n          type='button'\n          class='btn btn-primary ms-auto'\n          disabled={{or\n            (not this.canManageBills)\n            this.save.isRunning\n            (not this.hasUnsavedChanges)\n          }}\n          {{on-key 'cmd+s' this.triggerSave}}\n          title={{format-shortcut 'cmd+s' 'Save'}}\n          {{on 'click' this.triggerSave}}\n        >\n          {{#if this.save.isRunning}}\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;{{t\n              'common.Saving'\n            }}…\n          {{else}}\n            {{t 'common.Save'}}\n          {{/if}}\n        </button>\n      </div>\n    </div>\n  \n    {{#unless @bill.isNew}}\n      <div\n        class='d-flex align-items-center p-3 border mx-3 mt-3'\n        role='button'\n        {{on 'click' (fn (mut this.showBillHistory) (not this.showBillHistory))}}\n      >\n        <h4 class='m-0'>\n          {{t 'components.bill-editor.Bill history'}}\n        </h4>\n        <h4 class='m-0 ms-auto'>\n          <FaIcon\n            @icon={{if this.showBillHistory 'chevron-down' 'chevron-right'}}\n          />\n        </h4>\n      </div>\n      {{#if this.showBillHistory}}\n        <div class='px-3'>\n          <ResourceHistory @resourceId={{@bill.id}} />\n        </div>\n      {{/if}}\n    {{/unless}}\n  \n  {{/if}}\n  <ConfirmDelete\n    @visible={{this.showBillDeleteConfirmModal}}\n    @title={{(t 'common.Delete bill')}}\n    @messages={{(t 'components.bill-editor.Do you want to delete this bill')}}\n    @deleteButtonText={{(t 'common.Delete bill')}}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{(perform this.deleteBill)}}\n    @onCancel={{fn (mut this.showBillDeleteConfirmModal) false}}\n  >\n    <p>{{t 'shared.estimate.This action cannot be undone'}}</p>\n  </ConfirmDelete>\n  \n  {{#if this.billTypeChangeConfirmation}}\n    <ModalDialog\n      @onClose={{fn this.handleBillTypeChange false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t 'components.bill-editor.Change bill type'}}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p>\n          {{t\n            'components.bill-editor.yourUpdatedSubtotalIsSignExistingBillTypePluralShouldBeExistingSignDoYouWantToChangeThisDocumentToABillType'\n            sign=this.billTypeChangeConfirmation.sign\n            existingBillTypePlural=this.billTypeChangeConfirmation.existingBillTypePural\n            existingSign=this.billTypeChangeConfirmation.existingSign\n            billType=this.billTypeChangeConfirmation.billType\n          }}\n        </p>\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <button\n          class='btn btn-secondary text-white ms-2'\n          type='button'\n          {{on 'click' (fn this.handleBillTypeChange false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='btn btn-primary ms-2'\n          type='button'\n          {{on 'click' (fn this.handleBillTypeChange true)}}\n        >\n          {{t 'common.Confirm'}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.billTypeResponseHandlerVisible}}\n    <BillTypeResponseHandler\n      @responses={{this.billResponses}}\n      @onCancel={{this.onBillTypeResponseHandlerCancel}}\n    />\n  {{/if}}\n  \n  {{#if this.allocating}}\n    <BillItemAllocator\n      @bills={{array @bill}}\n      @onClose={{this.onBillItemAllocatorClose}}\n      @billStatus={{@billStatus}}\n    />\n  {{/if}}\n  \n  {{#if this.attachmentsVisible}}\n    <div class='bill-attachment-overlay-pane p-3 d-flex flex-column'>\n      <div class='d-flex align-items-center mb-2'>\n        <IconButton\n          @icon='times'\n          {{on 'click' (fn (mut this.attachmentsVisible) false)}}\n        />\n  \n        <p class='m-0 fw-bold fs-6 ms-3'>\n          {{ellipsis-characters this.activeAttachment.filename 30}}\n        </p>\n  \n        {{#if this.activeAttachment}}\n          <a\n            rel='noopener noreferrer'\n            href={{this.activeAttachment.href}}\n            target='_blank'\n            class='ms-auto'\n          >\n            <FaIcon @icon='download' />\n            {{t 'common.Download'}}\n          </a>\n        {{/if}}\n      </div>\n  \n      {{#if this.activeAttachment}}\n        <AttachmentPreview @attachment={{this.activeAttachment}} />\n      {{/if}}\n  \n      {{#if (gt this.allAttachments.length 1)}}\n        <div class='d-flex pt-2 align-items-center justify-content-end'>\n          <IconButton\n            @size='sm'\n            @icon='arrow-left'\n            {{on 'click' this.previousAttachment}}\n          />\n  \n          <span class='m-1'>\n            {{math this.attachmentIndex '+' 1}}\n            /\n            {{this.allAttachments.length}}\n          </span>\n  \n          <IconButton\n            @size='sm'\n            @icon='arrow-right'\n            {{on 'click' this.nextAttachment}}\n          />\n        </div>\n      {{/if}}\n    </div>\n  {{/if}}\n  \n  {{#if this.setContactAliasModalVisible}}\n    <ModalDialog\n      @onClose={{fn (mut this.setContactAliasModalVisible) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n    >\n      <div class='modal-body'>\n        <p class='m-0'>\n          {{t\n            'components.bill-editor.doYouAlsoWantToAddAliasAsAnAliasOfYourContact'\n            alias=@bill.issuer\n            contact=this.billForm.issuerContact.name\n          }}\n        </p>\n      </div>\n      <footer class='modal-footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.saveContactAlias.isRunning}}\n            {{on 'click' (fn (mut this.setContactAliasModalVisible) false)}}\n          >{{t 'common.No'}}</button>\n          <button\n            class='btn btn-primary text-white ms-2'\n            type='button'\n            disabled={{this.saveContactAlias.isRunning}}\n            {{on 'click' (perform this.saveContactAlias)}}\n          >\n            {{#if this.saveContactAlias.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Saving'}}\n            {{else}}\n              {{t 'components.bill-editor.Add alias'}}\n            {{/if}}\n          </button>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"3bK63QNx\",\n    \"block\": \"[[[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,1],[[28,[37,2],[[30,0,[\\\"resetChangeset\\\"]],[30,1]],null]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"resetChangeset\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,4],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex flex-wrap p-2 border-bottom position-sticky bg-white z-1\\\"],[14,5,\\\"top: 0;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,1,[\\\"typeLabel\\\"]]],[1,\\\"\\\\n      \\\"],[1,[30,1,[\\\"billNumber\\\"]]],[1,\\\"\\\\n      \\\"],[10,1],[15,0,[29,[\\\"badge ms-1 fs-7\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"ACCEPTED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"HELD\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"PAID\\\"],null],\\\"bg-success\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"ARCHIVED\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n          \\\"]]],[12],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"statusLabel\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"hasDuplicate\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0 ms-1 text-decoration-none\\\"],[16,\\\"title\\\",[28,[37,9],[\\\"components.bill-editor.View duplicate bills\\\"],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"viewDuplicateBills\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"badge fs-7 bg-danger\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Duplicate\\\"],null]],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-2 ms-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"accountingPackageUrl\\\"]],[[[1,\\\"        \\\"],[10,3],[15,6,[30,1,[\\\"accountingPackageUrl\\\"]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,0,\\\"btn btn-link text-primary text-decoration-underline m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"components.bill-editor.viewInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n          \\\"],[8,[39,11],[[24,0,\\\"ms-1\\\"]],[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@attachments\\\",\\\"@disabled\\\",\\\"@onViewAttachment\\\",\\\"@onUploadComplete\\\",\\\"@onDeleteAttachment\\\"],[[30,0,[\\\"allAttachments\\\"]],[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"viewAttachment\\\"]],[30,0,[\\\"attachmentsUploadComplete\\\"]],[30,0,[\\\"deleteAttachment\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\"]],[28,[37,14],[[30,0,[\\\"billActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[28,[37,16],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isActionsRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,9],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,15],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\"]],[30,0,[\\\"billActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,17],null,[[\\\"@onPrimaryClick\\\",\\\"@buttonText\\\",\\\"@disabled\\\"],[[28,[37,2],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"syncToAccountingPackage\\\"]]],null],[52,[30,0,[\\\"isActionsRunning\\\"]],[28,[37,9],[\\\"common.Saving\\\"],null],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[28,[37,16],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"billActions\\\",\\\"secondaryActions\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,2,[\\\"action\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,2],[[30,2,[\\\"action\\\"]],[30,2,[\\\"targetStatus\\\"]],[30,2,[\\\"syncToAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"action\\\",\\\"isRunning\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,9],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]],null]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"isNew\\\"]]],[[[1,\\\"          \\\"],[8,[39,21],[[16,\\\"title\\\",[28,[37,22],[\\\"ArrowUp\\\",[28,[37,9],[\\\"components.bill-editor.Previous bill\\\"],null]],null]],[4,[38,10],[\\\"click\\\",[30,0,[\\\"previousBill\\\"]]],null],[4,[38,23],[\\\"ArrowUp\\\",[30,0,[\\\"triggerPreviousBill\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"md\\\",\\\"arrow-up\\\"]],null],[1,\\\"\\\\n          \\\"],[8,[39,21],[[16,\\\"title\\\",[28,[37,22],[\\\"ArrowDown\\\",[28,[37,9],[\\\"components.bill-editor.Next bill\\\"],null]],null]],[4,[38,10],[\\\"click\\\",[30,0,[\\\"nextBill\\\"]]],null],[4,[38,23],[\\\"ArrowDown\\\",[30,0,[\\\"triggerNextBill\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"md\\\",\\\"arrow-down\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,24],[[24,0,\\\"d-flex\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.operations.incoming.bills\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,21],[[16,\\\"title\\\",[28,[37,22],[\\\"Esc\\\",[28,[37,9],[\\\"components.bill-editor.Back to list\\\"],null]],null]],[4,[38,23],[\\\"Escape\\\",[30,0,[\\\"triggerClose\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"md\\\",\\\"times\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"form\\\"],[14,0,\\\"p-3\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Issuer\\\"],null]],[1,\\\"\\\\n          \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,28],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataAction\\\",\\\"@showNoDataActionWithResults\\\",\\\"@initialSearchTerm\\\",\\\"@placeholder\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setIssuerContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,9],[\\\"common.Create a contact\\\"],null],[30,0,[\\\"createIssuerContact\\\"]],true,[30,1,[\\\"issuer\\\"]],[30,1,[\\\"issuer\\\"]],\\\"issuerContact\\\",[28,[37,29],[\\\"name\\\"],null],[30,0,[\\\"billForm\\\"]],[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billForm\\\",\\\"issuerContact\\\"]],[[[1,\\\"          \\\"],[8,[39,24],[[24,0,\\\"link ps-1\\\"],[24,\\\"target\\\",\\\"_blank\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.contacts.contact\\\",[30,0,[\\\"billForm\\\",\\\"issuerContact\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            View contact\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col mx-3 mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@model\\\",\\\"@options\\\",\\\"@selectNoBlankOption\\\",\\\"@forceValidationVisible\\\"],[\\\"mb-0\\\",\\\"select\\\",[28,[37,9],[\\\"common.Allocation type\\\"],null],\\\"allocationType\\\",true,[30,0,[\\\"billForm\\\"]],[28,[37,29],[[28,[37,31],null,[[\\\"value\\\",\\\"label\\\"],[\\\"MATERIALS\\\",[28,[37,9],[\\\"common.Materials\\\"],null]]]],[28,[37,31],null,[[\\\"value\\\",\\\"label\\\"],[\\\"SUBCONTRACTORS\\\",[28,[37,9],[\\\"common.Subcontractors\\\"],null]]]],[28,[37,31],null,[[\\\"value\\\",\\\"label\\\"],[\\\"LABOUR\\\",[28,[37,9],[\\\"common.Labour\\\"],null]]]]],null],true,true]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasDifferentAllocationType\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0 text-primary\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"setDefaultAllocationType\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"components.bill-editor.Set as default allocation type\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"col mb-3\\\",\\\"text\\\",[28,[37,9],[\\\"common.Number\\\"],null],\\\"billNumber\\\",[30,0,[\\\"billForm\\\"]],true,true]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"col mb-1\\\",\\\"date\\\",[28,[37,9],[\\\"common.Issue date\\\"],null],\\\"issueDate\\\",[30,0,[\\\"billForm\\\"]],true,true]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"col mb-1 mx-3\\\",\\\"date\\\",[28,[37,9],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,0,[\\\"billForm\\\"]],[28,[37,14],[[28,[37,7],[[30,0,[\\\"billForm\\\",\\\"billType\\\"]],\\\"CREDIT_NOTE\\\"],null]],null],true]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col position-relative\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,32],[[24,0,\\\"col mb-0\\\"]],[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@inputContainerClass\\\",\\\"@hasNextPage\\\",\\\"@onLoadMore\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[28,[37,16],[[30,0,[\\\"onSearchPurchaseOrders\\\",\\\"isRunning\\\"]],[30,0,[\\\"loadMorePurchaseOrders\\\",\\\"isRunning\\\"]]],null],[30,0,[\\\"purchaseOrders\\\"]],[28,[37,9],[\\\"shared.purchase-order.No purchase orders\\\"],null],[30,0,[\\\"setPurchaseOrder\\\"]],[30,0,[\\\"onSearchPurchaseOrders\\\"]],[30,0,[\\\"debounceTime\\\"]],[28,[37,9],[\\\"common.Purchase order\\\"],null],\\\"reference\\\",[28,[37,29],[\\\"purchaseOrderNumber\\\"],null],[30,0,[\\\"billForm\\\"]],\\\"mb-1\\\",[30,0,[\\\"hasNextPurchaseOrderPage\\\"]],[30,0,[\\\"loadMorePurchaseOrders\\\"]],[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billForm\\\",\\\"purchaseOrder\\\",\\\"id\\\"]],[[[1,\\\"          \\\"],[8,[39,24],[[24,0,\\\"link ps-1 position-absolute mt-1\\\"],[24,5,\\\"bottom: -3px;\\\"],[24,\\\"target\\\",\\\"_blank\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order\\\",[30,0,[\\\"billForm\\\",\\\"purchaseOrder\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            View purchase order\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,5,\\\"max-height:60px;\\\"]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"col-8 mb-3\\\",\\\"textarea\\\",[28,[37,9],[\\\"common.Notes\\\"],null],\\\"notes\\\",[30,0,[\\\"billForm\\\"]],true]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageBills\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"pb-2 d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,0,[\\\"allBillItemsSelected\\\"]],[30,0,[\\\"someBillItemsSelected\\\"]]],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"deleteSelectedBillItemForms\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"ms-auto btn btn-success text-white\\\"],[16,\\\"title\\\",[28,[37,22],[\\\"cmd+i\\\",[28,[37,9],[\\\"common.Add new item\\\"],null]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"addNewBillItem\\\"]]],null],[4,[38,23],[\\\"cmd+i\\\",[30,0,[\\\"addNewBillItem\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Add new item\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm align-middle w-100\\\"],[14,1,\\\"bill-items-table\\\"],[14,5,\\\"table-layout: fixed;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"select\\\"]],[[[1,\\\"            \\\"],[11,\\\"th\\\"],[16,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"select\\\"]]],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-center px-1\\\"],[24,5,\\\"width: 32px;\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"toggleSelectAll\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[1,\\\"              \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"checked\\\",[30,0,[\\\"allBillItemsSelected\\\"]]],[15,\\\"disabled\\\",[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],[15,\\\"indeterminate\\\",[30,0,[\\\"someBillItemsSelected\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"code\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Code\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"description\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Description\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"allocation\\\"]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"allocation\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,9],[\\\"common.Allocation\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"columnSpans\\\",\\\"purchaseOrderItem\\\"]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"purchaseOrderItem\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,9],[\\\"components.bill-editor.PO item\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"columnSpans\\\",\\\"glAccount\\\"]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"glAccount\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,9],[\\\"common.GL account\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"quantity\\\"]]],[14,0,\\\"text-end text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Qty\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"unitPrice\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Unit price\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"total\\\"]]],[14,0,\\\"text-end text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"icon\\\"]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"icon\\\"]]],[12],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"filteredBillItemForms\\\",\\\"length\\\"]],[[[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"filteredBillItemForms\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"select\\\"]],[[[1,\\\"                \\\"],[11,\\\"td\\\"],[16,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"select\\\"]]],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-center px-1\\\"],[24,5,\\\"width: 32px;\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[30,0,[\\\"toggleSelected\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"disabled\\\",[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],[15,\\\"checked\\\",[28,[37,41],[[30,0,[\\\"selectedBillItemForms\\\"]],[30,3]],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"code\\\"]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,30],[[24,5,\\\"width: 65px\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\"],[\\\"m-0\\\",\\\"text\\\",\\\"productCode\\\",[30,3],true,[28,[30,0,[\\\"validateBothDescriptionAndProductCode\\\"]],[[30,3]],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"description\\\"]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\"],[\\\"m-0\\\",\\\"text\\\",\\\"description\\\",[30,3],true,[28,[30,0,[\\\"validateBothDescriptionAndProductCode\\\"]],[[30,3]],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"allocation\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"allocation\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[8,[39,42],null,[[\\\"@allocations\\\"],[[30,3,[\\\"allocations\\\"]]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"columnSpans\\\",\\\"purchaseOrderItem\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"purchaseOrderItem\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"d-flex align-items-center w-100\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"flex-grow-1 me-1\\\"],[14,5,\\\"min-width: 0;\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,28],[[24,0,\\\"w-100\\\"]],[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[28,[37,40],[[30,0,[\\\"setBillItemPurchaseOrderItem\\\"]],[30,3]],null],[30,0,[\\\"loadPurchaseOrderItems\\\"]],[28,[37,9],[\\\"components.bill-editor.No purchase order items\\\"],null],\\\"purchaseOrderItem\\\",[28,[37,29],[\\\"sku\\\",\\\"description\\\"],null],[30,3],[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null],true]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"purchaseOrderMatchingStatus\\\"]],[[[1,\\\"                      \\\"],[8,[39,43],[[16,0,[29,[[30,3,[\\\"purchaseOrderMatchingStatus\\\",\\\"class\\\"]],\\\" ms-1\\\"]]]],[[\\\"@text\\\",\\\"@iconName\\\"],[[30,3,[\\\"purchaseOrderMatchingStatus\\\",\\\"title\\\"]],\\\"exclamation-circle\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"columnSpans\\\",\\\"glAccount\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"glAccount\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"fs-6\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,3,[\\\"glAccountLabel\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"quantity\\\"]]],[14,0,\\\"text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,5,\\\"width: 50px\\\"]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"number\\\",\\\"quantity\\\",[30,3],true]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"unitPrice\\\"]]],[14,0,\\\"text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,30],[[24,5,\\\"width: 60px\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"currency\\\",\\\"unitPrice\\\",[30,3],true]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"total\\\"]]],[14,0,\\\"text-end text-nowrap\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,44],[[28,[37,45],[[28,[37,16],[[30,3,[\\\"quantity\\\"]],0],null],\\\"*\\\",[28,[37,16],[[30,3,[\\\"unitPrice\\\"]],0],null]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"icon\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"icon\\\"]]],[14,0,\\\"text-center px-1\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,46],null,[[\\\"@item\\\"],[[30,3]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null]],[]],[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"totalSpan\\\"]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,9],[\\\"components.bill-editor.No bill items\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex flex-column border-top p-3 position-sticky bg-white\\\"],[14,5,\\\"bottom: 0; z-index: 5;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"m-0 ms-auto mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,9],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n      \\\"],[1,[28,[35,44],[[30,0,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-between\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"isNew\\\"]]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline ps-0\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[28,[37,47],[[30,0,[\\\"showBillDeleteConfirmModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"common.Deleting\\\"],null]],[1,\\\"\\\\n            …\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[28,[37,14],[[30,0,[\\\"hasUnsavedChanges\\\"]]],null]],null]],[16,\\\"title\\\",[28,[37,22],[\\\"cmd+s\\\",\\\"Save\\\"],null]],[24,4,\\\"button\\\"],[4,[38,23],[\\\"cmd+s\\\",[30,0,[\\\"triggerSave\\\"]]],null],[4,[38,10],[\\\"click\\\",[30,0,[\\\"triggerSave\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\" \\\"],[1,[28,[35,9],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,9],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,1,[\\\"isNew\\\"]]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"d-flex align-items-center p-3 border mx-3 mt-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[28,[37,47],[[30,0,[\\\"showBillHistory\\\"]]],null],[28,[37,14],[[30,0,[\\\"showBillHistory\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"components.bill-editor.Bill history\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showBillHistory\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBillHistory\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,49],null,[[\\\"@resourceId\\\"],[[30,1,[\\\"id\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"]],[]]],[8,[39,50],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"showBillDeleteConfirmModal\\\"]],[28,[37,9],[\\\"common.Delete bill\\\"],null],[28,[37,9],[\\\"components.bill-editor.Do you want to delete this bill\\\"],null],[28,[37,9],[\\\"common.Delete bill\\\"],null],[28,[37,9],[\\\"common.Deleting\\\"],null],[28,[37,2],[[30,0,[\\\"deleteBill\\\"]]],null],[28,[37,40],[[28,[37,47],[[30,0,[\\\"showBillDeleteConfirmModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,2],[12],[1,[28,[35,9],[\\\"shared.estimate.This action cannot be undone\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"billTypeChangeConfirmation\\\"]],[[[1,\\\"  \\\"],[8,[39,52],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,40],[[30,0,[\\\"handleBillTypeChange\\\"]],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"components.bill-editor.Change bill type\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"components.bill-editor.yourUpdatedSubtotalIsSignExistingBillTypePluralShouldBeExistingSignDoYouWantToChangeThisDocumentToABillType\\\"],[[\\\"sign\\\",\\\"existingBillTypePlural\\\",\\\"existingSign\\\",\\\"billType\\\"],[[30,0,[\\\"billTypeChangeConfirmation\\\",\\\"sign\\\"]],[30,0,[\\\"billTypeChangeConfirmation\\\",\\\"existingBillTypePural\\\"]],[30,0,[\\\"billTypeChangeConfirmation\\\",\\\"existingSign\\\"]],[30,0,[\\\"billTypeChangeConfirmation\\\",\\\"billType\\\"]]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[30,0,[\\\"handleBillTypeChange\\\"]],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[30,0,[\\\"handleBillTypeChange\\\"]],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"common.Confirm\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billTypeResponseHandlerVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,54],null,[[\\\"@responses\\\",\\\"@onCancel\\\"],[[30,0,[\\\"billResponses\\\"]],[30,0,[\\\"onBillTypeResponseHandlerCancel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocating\\\"]],[[[1,\\\"  \\\"],[8,[39,55],null,[[\\\"@bills\\\",\\\"@onClose\\\",\\\"@billStatus\\\"],[[28,[37,29],[[30,1]],null],[30,0,[\\\"onBillItemAllocatorClose\\\"]],[30,4]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"attachmentsVisible\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"bill-attachment-overlay-pane p-3 d-flex flex-column\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],[[4,[38,10],[\\\"click\\\",[28,[37,40],[[28,[37,47],[[30,0,[\\\"attachmentsVisible\\\"]]],null],false],null]],null]],[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[14,0,\\\"m-0 fw-bold fs-6 ms-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,56],[[30,0,[\\\"activeAttachment\\\",\\\"filename\\\"]],30],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"activeAttachment\\\"]],[[[1,\\\"        \\\"],[10,3],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[15,6,[30,0,[\\\"activeAttachment\\\",\\\"href\\\"]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"activeAttachment\\\"]],[[[1,\\\"      \\\"],[8,[39,57],null,[[\\\"@attachment\\\"],[[30,0,[\\\"activeAttachment\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,58],[[30,0,[\\\"allAttachments\\\",\\\"length\\\"]],1],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex pt-2 align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,21],[[4,[38,10],[\\\"click\\\",[30,0,[\\\"previousAttachment\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"sm\\\",\\\"arrow-left\\\"]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,45],[[30,0,[\\\"attachmentIndex\\\"]],\\\"+\\\",1],null]],[1,\\\"\\\\n          /\\\\n          \\\"],[1,[30,0,[\\\"allAttachments\\\",\\\"length\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],[[4,[38,10],[\\\"click\\\",[30,0,[\\\"nextAttachment\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"sm\\\",\\\"arrow-right\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"setContactAliasModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,52],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\"],[[28,[37,40],[[28,[37,47],[[30,0,[\\\"setContactAliasModalVisible\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true,\\\"modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"components.bill-editor.doYouAlsoWantToAddAliasAsAnAliasOfYourContact\\\"],[[\\\"alias\\\",\\\"contact\\\"],[[30,1,[\\\"issuer\\\"]],[30,0,[\\\"billForm\\\",\\\"issuerContact\\\",\\\"name\\\"]]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveContactAlias\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[28,[37,47],[[30,0,[\\\"setContactAliasModalVisible\\\"]]],null],false],null]],null],[12],[1,[28,[35,9],[\\\"common.No\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveContactAlias\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"saveContactAlias\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveContactAlias\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,9],[\\\"common.Saving\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"components.bill-editor.Add alias\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@bill\\\",\\\"action\\\",\\\"item\\\",\\\"@billStatus\\\"],false,[\\\"div\\\",\\\"did-update\\\",\\\"perform\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"h2\\\",\\\"span\\\",\\\"eq\\\",\\\"button\\\",\\\"t\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"a\\\",\\\"attachments-popover\\\",\\\"not\\\",\\\"and\\\",\\\"or\\\",\\\"dropdown-button\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\",\\\"icon-button\\\",\\\"format-shortcut\\\",\\\"on-key\\\",\\\"link-to\\\",\\\"form\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"ptl-input\\\",\\\"hash\\\",\\\"new-combo-box\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"input\\\",\\\"tbody\\\",\\\"td\\\",\\\"fn\\\",\\\"includes\\\",\\\"allocation-hierarchy\\\",\\\"info-popup\\\",\\\"number-format\\\",\\\"math\\\",\\\"bill-item-summary\\\",\\\"mut\\\",\\\"h4\\\",\\\"resource-history\\\",\\\"confirm-delete\\\",\\\"p\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"bill-type-response-handler\\\",\\\"bill-item-allocator\\\",\\\"ellipsis-characters\\\",\\\"attachment-preview\\\",\\\"gt\\\",\\\"footer\\\"]]\",\n    \"moduleName\": \"portal/components/bill-editor.hbs\",\n    \"isStrictMode\": false\n  });\n  const deleteKey = '_deleteMe';\n  let BillEditorComponent = _exports.default = (_class = class BillEditorComponent extends _component2.default {\n    get condensedMode() {\n      return !this.media.isDesktop;\n    }\n    get columnSpans() {\n      const hasPurchaseOrder = Boolean(this.billForm?.get('purchaseOrder'));\n      const spans = {\n        select: this.canManageBills ? 1 : 0,\n        code: 4,\n        description: hasPurchaseOrder ? 6 : 10,\n        allocation: this.condensedMode ? 0 : hasPurchaseOrder ? 6 : 4,\n        purchaseOrderItem: hasPurchaseOrder ? 6 : 0,\n        glAccount: this.condensedMode ? 0 : 4,\n        quantity: 4,\n        unitPrice: 4,\n        total: 2,\n        icon: this.condensedMode ? 1 : 0\n      };\n      return {\n        ...spans,\n        totalSpan: Object.values(spans).reduce((sum, span) => sum + span, 0)\n      };\n    }\n    get canManageBills() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageBills');\n    }\n    get loadedBillItems() {\n      return this.args.bill.safeHasManyToValue('items')?.toArray() || [];\n    }\n    get hasNextPurchaseOrderPage() {\n      const current = this.purchaseOrdersPage?.currentPage ?? 1;\n      const total = this.purchaseOrdersPage?.totalPages ?? 1;\n      return current < total;\n    }\n    get isActionsRunning() {\n      return this.billActions.secondaryActions.some(action => action.action.isRunning) || this.billActions.primaryAction?.action.isRunning;\n    }\n    get activeAttachment() {\n      return this.allAttachments[this.attachmentIndex];\n    }\n    get allAttachments() {\n      return this.args.bill.myAttachments || [];\n    }\n    sortBillItems(billItems) {\n      return billItems.sort((a, b) => {\n        const sortIndexDiff = (a.get('sortIndex') || 0) - (b.get('sortIndex') || 0);\n        if (sortIndexDiff !== 0) return sortIndexDiff;\n        return new Date(a.get('dateCreated')).getTime() - new Date(b.get('dateCreated')).getTime();\n      });\n    }\n    get filteredBillItemForms() {\n      return this.billItemForms.filter(form => !form.get(deleteKey));\n    }\n    get allBillItemsSelected() {\n      if (this.billItemForms.length === 0) return false;\n      return this.billItemForms.length === this.selectedBillItemForms.length;\n    }\n    get someBillItemsSelected() {\n      if (this.allBillItemsSelected) return false;\n      return this.selectedBillItemForms.length > 0;\n    }\n    get totalPrice() {\n      return this.filteredBillItemForms.reduce((total, bif) => total += (bif.get('quantity') || 0) * (bif.get('unitPrice') || 0), 0);\n    }\n    get hasUnsavedChanges() {\n      return this.billForm.isDirty || this.billItemForms.some(form => form.isDirty || form.get(deleteKey) || form.get('data.isNew'));\n    }\n    get isBillFormValid() {\n      return this.billForm?.isValid && this.isTotalPriceValid && this.billItemForms.every(form => {\n        if (form.get(deleteKey)) return true;\n        return form.isValid;\n      });\n    }\n    get isBillFormPristine() {\n      return this.billForm?.isPristine && this.billItemForms.every(form => {\n        if (form.get(deleteKey)) return true;\n        return form.isPristine;\n      });\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"session\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _initializerDefineProperty(this, \"billsData\", _descriptor8, this);\n      _initializerDefineProperty(this, \"invoicedCosts\", _descriptor9, this);\n      _initializerDefineProperty(this, \"media\", _descriptor0, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor1, this);\n      _initializerDefineProperty(this, \"billForm\", _descriptor10, this);\n      _initializerDefineProperty(this, \"billItemForms\", _descriptor11, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor12, this);\n      _initializerDefineProperty(this, \"attachmentIndex\", _descriptor13, this);\n      _initializerDefineProperty(this, \"attachmentsVisible\", _descriptor14, this);\n      _initializerDefineProperty(this, \"allocating\", _descriptor15, this);\n      _defineProperty(this, \"contacts\", []);\n      _defineProperty(this, \"contactsPage\", undefined);\n      _defineProperty(this, \"contactsSearchTerm\", undefined);\n      _initializerDefineProperty(this, \"purchaseOrders\", _descriptor16, this);\n      _initializerDefineProperty(this, \"purchaseOrdersPage\", _descriptor17, this);\n      _defineProperty(this, \"purchaseOrderSearchTerm\", undefined);\n      _initializerDefineProperty(this, \"purchaseOrderItems\", _descriptor18, this);\n      _initializerDefineProperty(this, \"purchaseOrderItemsPage\", _descriptor19, this);\n      _defineProperty(this, \"purchaseOrderItemSearchTerm\", undefined);\n      _initializerDefineProperty(this, \"showBillDeleteConfirmModal\", _descriptor20, this);\n      _initializerDefineProperty(this, \"billTypeChangeConfirmation\", _descriptor21, this);\n      _initializerDefineProperty(this, \"billResponses\", _descriptor22, this);\n      _initializerDefineProperty(this, \"billTypeResponseHandlerVisible\", _descriptor23, this);\n      _initializerDefineProperty(this, \"setContactAliasModalVisible\", _descriptor24, this);\n      _initializerDefineProperty(this, \"selectedBillItemForms\", _descriptor25, this);\n      _defineProperty(this, \"isHandlingTransition\", false);\n      _defineProperty(this, \"resetChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.isHandlingTransition) return;\n          this.selectedBillItemForms = [];\n          const billValidations = (0, _bill.default)(this.intl);\n          this.billForm = new _emberChangeset.Changeset(this.args.bill, (0, _emberChangesetValidations.default)(billValidations), billValidations);\n          const sortedItems = this.sortBillItems(this.loadedBillItems);\n          const billItemValidations = (0, _billItem.default)(this.intl);\n          this.billItemForms = sortedItems.map(item => new _emberChangeset.Changeset(item, (0, _emberChangesetValidations.default)(billItemValidations), billItemValidations));\n\n          // pending (unsaved) attachments belong to the previous bill - drop them\n          this.attachments = [];\n          const hasAttachments = this.allAttachments.length > 0;\n          this.attachmentsVisible = hasAttachments && !this.condensedMode;\n          this.attachmentIndex = 0;\n          if (!this.args.bill.isNew) {\n            (0, _runloop.next)(this, async () => {\n              await this.validateBillForm();\n            });\n          }\n\n          // hold the loading state so swapping to the next bill is noticeable\n          yield (0, _emberConcurrency.timeout)(300);\n        }\n      }), {\n        restartable: true\n      }, \"resetChangeset\", null));\n      _defineProperty(this, \"loadContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            let effectiveSearchTerm;\n            if (searchTerm === undefined) {\n              if (this.billForm.get('issuerContact')) {\n                effectiveSearchTerm = '';\n              } else {\n                effectiveSearchTerm = this.billForm.get('issuer');\n              }\n            } else {\n              effectiveSearchTerm = searchTerm.trim();\n            }\n            if (effectiveSearchTerm !== this.contactsSearchTerm) {\n              this.contactsPage = undefined;\n              this.contacts = [];\n              this.contactsSearchTerm = effectiveSearchTerm;\n            }\n            const contactFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (effectiveSearchTerm?.length) {\n              contactFilter.and.push((0, _searchFilter.default)(['name'], effectiveSearchTerm));\n            }\n            const nextPageNumber = (this.contactsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('contact', {\n              filter: contactFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.contactsPage = nextPage.meta;\n            this.contacts = [...this.contacts, ...nextPage.toArray()];\n            return this.contacts;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.somethingWentWrongLoadingMoreContacts'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadContacts\", null));\n      _defineProperty(this, \"onSearchPurchaseOrders\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          this.clearPurchaseOrderIfReferenceChanged(searchTerm);\n          this.billForm.set('reference', searchTerm);\n          yield this.loadPurchaseOrders(searchTerm);\n        }\n      }), {\n        restartable: true\n      }, \"onSearchPurchaseOrders\", null));\n      _defineProperty(this, \"loadMorePurchaseOrders\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.loadPurchaseOrders(this.purchaseOrderSearchTerm);\n        }\n      }), null, \"loadMorePurchaseOrders\", null));\n      _defineProperty(this, \"loadPurchaseOrderItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            const purchaseOrder = this.billForm.get('purchaseOrder');\n            if (!purchaseOrder) {\n              this.resetPurchaseOrderItems();\n              return [];\n            }\n            const effectiveSearchTerm = searchTerm?.trim?.();\n            if (effectiveSearchTerm !== this.purchaseOrderItemSearchTerm) {\n              this.resetPurchaseOrderItems();\n            }\n            if (this.purchaseOrderItemsPage?.currentPage >= this.purchaseOrderItemsPage?.totalPages) {\n              return this.purchaseOrderItems;\n            }\n            const purchaseOrderItemFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'purchaseOrder',\n                op: 'EQ',\n                value: purchaseOrder.id\n              }]\n            };\n            if (effectiveSearchTerm?.length) {\n              purchaseOrderItemFilter.and.push((0, _searchFilter.default)(['sku', 'description'], effectiveSearchTerm));\n            }\n            const nextPageNumber = (this.purchaseOrderItemsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('purchase-order-item', {\n              filter: purchaseOrderItemFilter,\n              sort: 'sortIndex',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.purchaseOrderItemsPage = nextPage.meta;\n            this.purchaseOrderItems = [...this.purchaseOrderItems, ...nextPage.toArray()];\n            return this.purchaseOrderItems;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.somethingWentWrongLoadingPurchaseOrderItems'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadPurchaseOrderItems\", null));\n      _defineProperty(this, \"saveContactAlias\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const contact = this.billForm.get('issuerContact');\n            if (!contact || !this.args.bill.issuer) return;\n            contact.aliases.push(this.args.bill.issuer);\n            // save the contact to persist the alias\n            yield contact.save();\n            this.setContactAliasModalVisible = false;\n            this.notifications.success({\n              message: this.intl.t('components.bill-editor.Contact alias saved successfully')\n            });\n            yield this.billsData.reloadBills.perform();\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('components.bill-editor.somethingWentWrongWhileSavingTheContactAlias')\n            });\n          }\n        }\n      }), null, \"saveContactAlias\", null));\n      _defineProperty(this, \"save\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (syncToAccountingPackage = false) {\n          try {\n            const wasNew = this.args.bill.isNew;\n            const originalIssuerContactId = this.args.bill.belongsTo('issuerContact').id() || null;\n            if (!wasNew) {\n              yield this.confirmBillTypeMatchesTotal();\n            }\n            if (!(yield this.validateBillForm({\n              showWarning: true\n            }))) return false;\n            const selectedIssuerContactId = this.billForm.get('issuerContact')?.id || null;\n            const issuerContactAdded = !wasNew && !originalIssuerContactId && selectedIssuerContactId;\n            const issuerContact = this.billForm.get('issuerContact');\n            const purchaseOrder = this.billForm.get('purchaseOrder');\n            this.billForm.rollbackProperty('issuerContact');\n            this.billForm.rollbackProperty('purchaseOrder');\n            this.args.bill.issuerContact = issuerContact?.content || issuerContact || null;\n            this.args.bill.purchaseOrder = purchaseOrder?.content || purchaseOrder || null;\n            yield this.billForm.save();\n            if (wasNew) {\n              yield Promise.all(this.attachments.filter(attachment => attachment.isNew).map(attachment => attachment.save()));\n            }\n            let sortIndex = 0;\n            const itemPromises = this.billItemForms.map(form => {\n              if (form.get(deleteKey)) {\n                return form.get('data').destroyRecord();\n              } else {\n                const billItem = form.get('data');\n                const purchaseOrderItem = form.get('purchaseOrderItem');\n                form.rollbackProperty('purchaseOrderItem');\n                billItem.purchaseOrderItem = purchaseOrderItem?.content || purchaseOrderItem || null;\n                form.set('sortIndex', sortIndex++);\n                return form.save();\n              }\n            });\n            yield Promise.all(itemPromises);\n            const formsToDelete = this.billItemForms.filter(f => f.get(deleteKey));\n            this.billItemForms.removeObjects(formsToDelete);\n            this.notifications.success(this.intl.t('components.bill-editor.Bill successfully saved'));\n            if (wasNew) {\n              this.billsData.addBill(this.args.bill);\n              this.router.transitionTo('entity.builda-price.operations.incoming.bills.bill', this.args.bill.id);\n            } else if (issuerContactAdded) {\n              yield this.billsData.reloadBills.perform();\n            }\n            if (syncToAccountingPackage) {\n              const response = yield this.accountingPlatform.sendBill.perform(this.args.bill);\n              this.handleAccountingPackageResponse(response);\n            }\n            return true;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.There was an error while saving the bill'),\n              error\n            });\n            return false;\n          }\n        }\n      }), null, \"save\", \"drop\"));\n      _defineProperty(this, \"syncToAccountingPackage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!(yield this.validateBillForm())) return;\n          const response = yield this.accountingPlatform.sendBill.perform(this.args.bill);\n          this.handleAccountingPackageResponse(response);\n        }\n      }), null, \"syncToAccountingPackage\", null));\n      _defineProperty(this, \"allocate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!(yield this.validateBillForm())) return;\n          this.allocating = true;\n        }\n      }), null, \"allocate\", null));\n      _defineProperty(this, \"changeStatusWithoutValidations\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (targetStatus) {\n          try {\n            this.args.bill.set('status', targetStatus);\n            yield this.args.bill.save();\n            this.notifications.success(this.intl.t('components.bill-editor.Bill successfully saved'));\n            this.removeBillAndNavigateToNext(this.args.bill);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.Something went wrong changing status'),\n              error\n            });\n          }\n        }\n      }), null, \"changeStatusWithoutValidations\", null));\n      _defineProperty(this, \"changeStatus\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (targetStatus, syncToAccountingPackage = false) {\n          try {\n            if (!(yield this.validateBillForm())) return;\n            this.billForm.set('status', targetStatus);\n            const saved = yield this.save.perform(syncToAccountingPackage);\n            if (!saved) return;\n            this.removeBillAndNavigateToNext(this.args.bill);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.Something went wrong changing status'),\n              error\n            });\n          }\n        }\n      }), null, \"changeStatus\", null));\n      _defineProperty(this, \"deleteBill\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const bill = this.args.bill;\n            yield this.invoicedCosts.requestDelete.perform({\n              isInvoiced: bill.isInvoiced,\n              title: this.intl.t('services.invoiced-costs.Delete linked bill'),\n              message: this.intl.t('services.invoiced-costs.billMessage'),\n              deleteCb: async () => {\n                const nextBill = document.querySelector('[active-bill=\"\"]')?.nextElementSibling;\n                try {\n                  // Instead of directly deleting just mark it as delete, remove from service data and then delete bill\n                  await bill.deleteRecord();\n                  await this.billsData.removeBill(bill);\n                  await bill.save();\n                  if (nextBill) {\n                    nextBill.click();\n                  } else {\n                    this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n                  }\n                  this.notifications.success(this.intl.t('components.bill-editor.Successfully deleted bill'));\n                } finally {\n                  this.showBillDeleteConfirmModal = false;\n                }\n              }\n            });\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.Something went wrong deleting bill'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteBill\", null));\n      this.router.on('routeWillChange', this.preventInternalNavigation);\n      window.addEventListener('beforeunload', this.preventBrowserClose);\n      this.resetChangeset.perform();\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.router.off('routeWillChange', this.preventInternalNavigation);\n      window.removeEventListener('beforeunload', this.preventBrowserClose);\n    }\n    viewDuplicateBills() {\n      const billNumber = this.args.bill.billNumber?.trim();\n      if (!billNumber) return;\n      const url = this.router.urlFor('entity.builda-price.operations.incoming.bills');\n      const query = new URLSearchParams({\n        search: billNumber,\n        status: ''\n      });\n      window.open(`${url}?${query}`, '_blank');\n    }\n    triggerClose() {\n      this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n    }\n    triggerSave(event) {\n      event.preventDefault();\n      this.save.perform();\n    }\n    triggerNextBill(event) {\n      event.preventDefault();\n      this.nextBill();\n    }\n    nextBill() {\n      // TODO this is gross but easier than using props\n      const current = document.querySelector('[active-bill=\"\"]');\n      if (current?.nextElementSibling) {\n        current.nextElementSibling.click();\n        return true;\n      }\n      return false;\n    }\n    triggerPreviousBill(event) {\n      event.preventDefault();\n      this.previousBill();\n    }\n    previousBill() {\n      // TODO this is gross but easier than using props\n      const current = document.querySelector('[active-bill=\"\"]');\n      if (current?.previousElementSibling) {\n        current.previousElementSibling.click();\n        return true;\n      }\n      return false;\n    }\n    removeBillAndNavigateToNext(bill) {\n      // anytime this is true you need to remove it from the list anyway\n      // no billStatus = ALL\n      const billOutsideFilter = this.args.billStatus && this.args.billStatus !== bill.status;\n\n      // only advance if the bill no longer exists in the list or the bill has moved to accepted\n      const shouldAutoAdvance = billOutsideFilter || bill.status === 'ACCEPTED';\n      if (shouldAutoAdvance) {\n        const hasNextBill = this.nextBill();\n        if (!hasNextBill) {\n          this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n        }\n      }\n      if (billOutsideFilter) {\n        this.billsData.removeBill(bill);\n      }\n    }\n    validateBothDescriptionAndProductCode(changeset) {\n      if (changeset.get('productCode') || changeset.get('description')) {\n        changeset.validate('productCode');\n        changeset.validate('description');\n      }\n    }\n    preventInternalNavigation(transition) {\n      if (this.isHandlingTransition) return;\n      if (this.hasUnsavedChanges) {\n        this.isHandlingTransition = true;\n        const confirmLeave = window.confirm(this.intl.t('components.bill-editor.youHaveUnsavedChangesToThisBillAreYouSureYouWantToLeave'));\n        if (!confirmLeave) {\n          transition.abort();\n        } else {\n          // unload safely all new records\n          this.billItemForms.forEach(form => {\n            const record = form.get('data');\n            if (record.isNew) {\n              record.unloadRecord();\n            } else {\n              record.rollbackAttributes();\n            }\n          });\n        }\n        (0, _runloop.next)(() => {\n          this.isHandlingTransition = false;\n        });\n      }\n    }\n    preventBrowserClose(event) {\n      if (this.hasUnsavedChanges) {\n        event.preventDefault();\n        event.returnValue = '';\n      }\n    }\n    nextAttachment() {\n      const attachmentCount = this.allAttachments.length;\n      if (!attachmentCount) return;\n      this.attachmentIndex = (this.attachmentIndex + 1) % attachmentCount;\n    }\n    previousAttachment() {\n      const attachmentCount = this.allAttachments.length;\n      if (!attachmentCount) return;\n      this.attachmentIndex = (this.attachmentIndex - 1 + attachmentCount) % attachmentCount;\n    }\n    viewAttachment(attachment) {\n      const attachmentIndex = this.allAttachments.findIndex(item => attachment.id && item.id === attachment.id || item.href === attachment.href);\n      if (attachmentIndex >= 0) {\n        this.attachmentIndex = attachmentIndex;\n      }\n      this.attachmentsVisible = true;\n    }\n    async attachmentsUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const newAttachments = attachments.map(attachment => {\n          return this.store.createRecord('bill-attachment', {\n            bill: this.args.bill,\n            entity: this.sessionData.entity,\n            data: attachment.data,\n            filename: attachment.filename,\n            fileType: attachment.fileType,\n            extension: attachment.extension,\n            size: attachment.fileSize\n          });\n        });\n        if (!this.args.bill.isNew) {\n          await Promise.all(newAttachments.map(attachment => attachment.save()));\n        }\n        this.attachments = [...this.attachments, ...newAttachments];\n        if (newAttachments.length) {\n          this.attachmentIndex = this.allAttachments.length - 1;\n        }\n        this.attachmentsVisible = this.allAttachments.length > 0;\n        validationErrors.forEach(error => this.notifications.error(error));\n      } catch (uploadError) {\n        this.notifications.error({\n          message: this.intl.t('components.bill-editor.somethingWentWrongWhileSavingAttachments'),\n          error: uploadError\n        });\n      }\n    }\n    async deleteAttachment(attachment) {\n      try {\n        const linkAttachmentsToBill = this.args.bill.hasMany('attachments').value();\n        const linkRecord = linkAttachmentsToBill?.find(item => attachment.id && item.id === attachment.id || item.attachmentInfo.href === attachment.href);\n        if (linkRecord?.isNew) {\n          linkRecord.unloadRecord();\n        } else {\n          await linkRecord?.destroyRecord();\n        }\n        this.attachments = this.attachments.filter(item => item.attachmentInfo.href !== attachment.href);\n        const attachmentsCount = this.allAttachments.length;\n        if (attachmentsCount === 0) {\n          this.attachmentsVisible = false;\n          this.attachmentIndex = 0;\n        } else if (this.attachmentIndex >= attachmentsCount) {\n          this.attachmentIndex = attachmentsCount - 1;\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('components.bill-editor.somethingWentWrongWhileDeletingTheAttachment'),\n          error: error\n        });\n      }\n    }\n    addNewBillItem() {\n      const billItemValidations = (0, _billItem.default)(this.intl);\n      this.billItemForms = [...this.billItemForms, new _emberChangeset.Changeset(this.store.createRecord('bill-item', {\n        bill: this.args.bill,\n        entity: this.sessionData.entity,\n        sortIndex: this.billItemForms.length\n      }), (0, _emberChangesetValidations.default)(billItemValidations), billItemValidations)];\n\n      // added settimeout to make sure last row is rendered and then focus into created row\n      setTimeout(() => {\n        const row = document.querySelector('#bill-items-table tbody tr:last-child');\n        const input = row?.querySelector('input[name=\"productCode\"]');\n        row?.scrollIntoView({\n          behavior: 'smooth',\n          block: 'center'\n        });\n        input?.focus({\n          preventScroll: true\n        });\n      }, 10);\n    }\n    toggleSelectAll() {\n      if (this.allBillItemsSelected) {\n        this.selectedBillItemForms = [];\n      } else {\n        this.selectedBillItemForms = this.billItemForms;\n      }\n    }\n    toggleSelected(item, e) {\n      e.stopPropagation();\n      e.preventDefault();\n      const i = this.selectedBillItemForms.indexOf(item);\n      if (i < 0) {\n        this.selectedBillItemForms = [...this.selectedBillItemForms, item];\n      } else {\n        this.selectedBillItemForms = this.selectedBillItemForms.toSpliced(i, 1);\n      }\n    }\n    deleteSelectedBillItemForms() {\n      for (const form of this.selectedBillItemForms) {\n        form.set(deleteKey, true);\n      }\n      this.billItemForms = [...this.billItemForms];\n      this.selectedBillItemForms = [];\n    }\n    async loadPurchaseOrders(searchTerm) {\n      try {\n        const effectiveSearchTerm = searchTerm?.trim?.();\n        if (effectiveSearchTerm !== this.purchaseOrderSearchTerm) {\n          this.purchaseOrdersPage = undefined;\n          this.purchaseOrders = [];\n          this.purchaseOrderSearchTerm = effectiveSearchTerm;\n        }\n        const purchaseOrderFilter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: this.sessionData.entity.id\n          }]\n        };\n        if (effectiveSearchTerm?.length) {\n          purchaseOrderFilter.and.push((0, _searchFilter.default)(['purchaseOrderNumber'], effectiveSearchTerm));\n        }\n        const nextPageNumber = (this.purchaseOrdersPage?.currentPage || 0) + 1;\n        const nextPage = await this.store.query('purchase-order', {\n          filter: purchaseOrderFilter,\n          sort: 'purchaseOrderNumber',\n          page: {\n            size: 10,\n            number: nextPageNumber\n          }\n        });\n        this.purchaseOrdersPage = nextPage.meta;\n        this.purchaseOrders = [...this.purchaseOrders, ...nextPage.toArray()];\n        return this.purchaseOrders;\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('components.bill-editor.somethingWentWrongLoadingMorePurchaseOrders'),\n          error\n        });\n      }\n    }\n    async setIssuerContact(contact) {\n      const hadContact = !!this.billForm.get('issuerContact');\n      const savedBillHasIssuerString = !!this.args.bill.issuer;\n      const contactNameMatches = contact && savedBillHasIssuerString && this.billForm.get('issuerContact.name') === this.args.bill.issuer;\n      if (savedBillHasIssuerString && !hadContact && !contactNameMatches) {\n        const results = await this.store.query('contact', {\n          filter: {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              or: [{\n                field: 'aliases',\n                op: 'CONTAINS_ILIKE',\n                value: `${(0, _searchTermEscape.searchTermEscape)(this.args.bill.issuer)}`\n              }, {\n                field: 'name',\n                op: 'EQ',\n                value: this.args.bill.issuer\n              }]\n            }]\n          },\n          pageSize: 1\n        });\n        if (!results?.toArray()?.length) {\n          this.setContactAliasModalVisible = true;\n        }\n      }\n      this.billForm.set('issuerContact', contact || null);\n      this.billForm.set('issuer', contact?.name || null);\n      if (contact?.defaultBillAllocationType && this.args.bill.isNew) {\n        this.billForm.set('allocationType', contact.defaultBillAllocationType);\n      }\n    }\n    async setDefaultAllocationType() {\n      const currentAllocationType = this.billForm.get('allocationType');\n      const contact = this.store.peekRecord('contact', this.billForm.get('issuerContact').id);\n      contact.set('defaultBillAllocationType', currentAllocationType);\n      await contact.save();\n    }\n    get hasDifferentAllocationType() {\n      if (!this.billForm.get('issuerContact')) return false;\n      const currentAllocationType = this.billForm.get('allocationType');\n      const originalAllocationType = this.billForm.get('issuerContact').defaultBillAllocationType;\n      return currentAllocationType !== originalAllocationType;\n    }\n    setPurchaseOrder(purchaseOrder) {\n      const existingPurchaseOrder = this.billForm.get('purchaseOrder');\n      this.billForm.set('purchaseOrder', purchaseOrder || null);\n      this.billForm.set('reference', purchaseOrder?.purchaseOrderNumber);\n      this.resetPurchaseOrderItems();\n      if (existingPurchaseOrder?.id !== purchaseOrder?.id) {\n        this.clearBillItemPurchaseOrderItems();\n      }\n    }\n    clearPurchaseOrderIfReferenceChanged(reference) {\n      const purchaseOrder = this.billForm.get('purchaseOrder');\n      if (purchaseOrder?.purchaseOrderNumber && purchaseOrder.purchaseOrderNumber !== reference?.trim?.()) {\n        this.billForm.set('purchaseOrder', null);\n        this.resetPurchaseOrderItems();\n        this.clearBillItemPurchaseOrderItems();\n      }\n    }\n    resetPurchaseOrderItems() {\n      this.purchaseOrderItemsPage = undefined;\n      this.purchaseOrderItems = [];\n      this.purchaseOrderItemSearchTerm = undefined;\n    }\n    clearBillItemPurchaseOrderItems() {\n      this.billItemForms.forEach(item => {\n        item.set('purchaseOrderItem', null);\n      });\n    }\n    setBillItemPurchaseOrderItem(item, purchaseOrderItem) {\n      item.set('purchaseOrderItem', purchaseOrderItem || null);\n    }\n    async createIssuerContact(name) {\n      const contactName = name?.trim?.();\n      if (!contactName) return;\n      try {\n        const contact = await this.store.createRecord('contact', {\n          entity: this.sessionData.entity,\n          name: contactName\n        }).save();\n        this.setIssuerContact(contact);\n        this.contacts = [contact, ...this.contacts];\n        this.notifications.success(this.intl.t('components.bill-editor.Contact created'));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('components.bill-editor.somethingWentWrongCreatingTheContact'),\n          error\n        });\n      }\n    }\n    async validateBillForm({\n      showWarning = false\n    } = {}) {\n      await this.billForm.validate();\n      let itemsInvalid = false;\n      for (const form of this.billItemForms) {\n        if (form.get(deleteKey)) {\n          continue;\n        }\n        await form.validate();\n        if (form.isInvalid) {\n          itemsInvalid = true;\n        }\n      }\n      if (!this.isTotalPriceValid) {\n        if (showWarning) {\n          this.notifications.warning(this.intl.t(this.billForm.get('billType') === 'CREDIT_NOTE' ? 'components.bill-editor.Total price must be less than zero' : 'components.bill-editor.Total price must be greater than zero'));\n        }\n        return false;\n      }\n      if (this.billForm.isInvalid || itemsInvalid || !this.billForm.get('issuerContact')) {\n        if (showWarning) {\n          this.notifications.warning(this.intl.t('components.bill-editor.You must complete the form'));\n        }\n        return false;\n      }\n      return true;\n    }\n    confirmBillTypeMatchesTotal() {\n      const suggestedBillType = this.suggestedBillType;\n      if (!suggestedBillType) return true;\n      return new Promise(resolve => {\n        const currentBillType = this.billForm?.get('billType');\n        this.billTypeChangeConfirmation = {\n          suggestedBillType,\n          billType: suggestedBillType === 'CREDIT_NOTE' ? this.intl.t('shared.bill.Credit note') : this.intl.t('common.Bill'),\n          sign: suggestedBillType === 'CREDIT_NOTE' ? this.intl.t('common.negative') : this.intl.t('common.positive'),\n          existingBillTypePural: currentBillType === 'CREDIT_NOTE' ? this.intl.t('common.Credit notes') : this.intl.t('common.Bills'),\n          existingSign: currentBillType === 'CREDIT_NOTE' ? this.intl.t('common.negative') : this.intl.t('common.positive'),\n          resolve\n        };\n      });\n    }\n    get suggestedBillType() {\n      if (this.args.bill.xeroLinked) return null;\n      const currentBillType = this.billForm?.get('billType');\n      if (currentBillType === 'BILL' && this.totalPrice < 0) {\n        return 'CREDIT_NOTE';\n      }\n      if (currentBillType === 'CREDIT_NOTE' && this.totalPrice > 0) {\n        return 'BILL';\n      }\n      return null;\n    }\n    handleBillTypeChange(confirmed) {\n      const confirmation = this.billTypeChangeConfirmation;\n      if (!confirmation) return;\n      if (confirmed) {\n        this.billForm.set('billType', confirmation.suggestedBillType);\n      }\n      confirmation.resolve(confirmed);\n      this.billTypeChangeConfirmation = null;\n    }\n    get isTotalPriceValid() {\n      return this.billForm?.get('billType') === 'CREDIT_NOTE' ? this.totalPrice < 0 : this.totalPrice > 0;\n    }\n    get billActions() {\n      const actions = {\n        primaryAction: undefined,\n        secondaryActions: []\n      };\n\n      // Only allow \"Mark as Held\" when the bill form is invalid and the bill is not already held.\n      if (!this.isBillFormValid && this.args.bill.status !== 'HELD' && !this.args.bill.isNew) {\n        actions.primaryAction = {\n          name: this.intl.t('components.bill-editor.Mark as held'),\n          action: this.changeStatusWithoutValidations,\n          targetStatus: 'HELD'\n        };\n        return actions;\n      }\n      if (!this.isBillFormPristine) return actions;\n      const items = this.loadedBillItems;\n      const status = this.args.bill.status;\n      if (!items.length || this.args.bill.isNew) return actions;\n      if (status === 'DRAFT') {\n        if (this.args.bill.fullyMapped) {\n          // fully allocated -> accept it; syncing is only offered once accepted\n          actions.primaryAction = {\n            name: this.intl.t('components.bill-editor.Mark as accepted'),\n            action: this.changeStatus,\n            targetStatus: 'ACCEPTED'\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('common.Allocate'),\n            action: this.allocate\n          });\n        } else {\n          actions.primaryAction = {\n            name: this.intl.t('common.Allocate'),\n            action: this.allocate\n          };\n        }\n        actions.secondaryActions.push({\n          name: this.intl.t('components.bill-editor.Mark as paid'),\n          action: this.changeStatus,\n          targetStatus: 'PAID'\n        });\n        actions.secondaryActions.push({\n          name: this.intl.t('components.bill-editor.Mark as held'),\n          action: this.changeStatus,\n          targetStatus: 'HELD'\n        });\n        if (this.accountingPlatform.activePlatform) actions.secondaryActions.push({\n          name: `${this.intl.t('components.bill-editor.Sync to')} ${this.accountingPlatform.label}`,\n          action: this.syncToAccountingPackage\n        });\n      } else if (status === 'ACCEPTED') {\n        if (!this.args.bill.xeroLinked && !this.args.bill.quickbooksLinked && this.accountingPlatform.activePlatform) {\n          actions.primaryAction = {\n            name: `${this.intl.t('components.bill-editor.Sync to')} ${this.accountingPlatform.label}`,\n            action: this.syncToAccountingPackage\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('components.bill-editor.Mark as paid'),\n            action: this.changeStatus,\n            targetStatus: 'PAID'\n          });\n        } else {\n          actions.primaryAction = {\n            name: this.intl.t('components.bill-editor.Mark as paid'),\n            action: this.changeStatus,\n            targetStatus: 'PAID'\n          };\n          if (this.accountingPlatform.activePlatform) actions.secondaryActions.push({\n            name: `${this.intl.t('components.bill-editor.Sync to')} ${this.accountingPlatform.label}`,\n            action: this.syncToAccountingPackage\n          });\n        }\n        actions.secondaryActions.push({\n          name: this.intl.t('common.Allocate'),\n          action: this.allocate\n        });\n        actions.secondaryActions.push({\n          name: this.intl.t('components.bill-editor.Revert to Draft'),\n          action: this.changeStatus,\n          targetStatus: 'DRAFT'\n        });\n      } else if (status === 'PAID') {\n        if (this.accountingPlatform.activePlatform) {\n          actions.primaryAction = {\n            name: `${this.intl.t('components.bill-editor.Sync to')} ${this.accountingPlatform.label}`,\n            action: this.syncToAccountingPackage\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('components.bill-editor.Revert to Draft'),\n            action: this.changeStatus,\n            targetStatus: 'DRAFT'\n          });\n        } else {\n          actions.primaryAction = {\n            name: this.intl.t('components.bill-editor.Revert to Draft'),\n            action: this.changeStatusWithoutValidations,\n            targetStatus: 'DRAFT'\n          };\n        }\n      } else if (status === 'HELD') {\n        actions.primaryAction = {\n          name: this.intl.t('components.bill-editor.Revert to Draft'),\n          action: this.changeStatusWithoutValidations,\n          targetStatus: 'DRAFT'\n        };\n      }\n      return actions;\n    }\n    handleAccountingPackageResponse(response) {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        const hasRejection = response?.attachments?.some(resp => resp.rejected);\n        if (hasRejection) {\n          this.billResponses = [response];\n          this.billTypeResponseHandlerVisible = true;\n        } else if (response) {\n          this.notifications.success(this.intl.t('components.bill-editor.Sent bill to Xero'));\n        }\n        return;\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        const filterResponses = (response || []).filter(item => Boolean(item));\n        if (filterResponses?.length) {\n          this.billResponses = [filterResponses];\n          this.billTypeResponseHandlerVisible = true;\n        } else {\n          this.notifications.success(this.intl.t('components.bill-editor.Sent bill to QuickBooks'));\n        }\n      }\n    }\n    onBillTypeResponseHandlerCancel() {\n      this.billResponses = [];\n      this.billTypeResponseHandlerVisible = false;\n    }\n    onBillItemAllocatorClose({\n      wasCancelled = false\n    } = {}) {\n      if (!wasCancelled && this.args.bill.status === 'ACCEPTED' && this.args.billStatus !== 'ACCEPTED') {\n        const hasNextBill = this.nextBill();\n        // if we didn't just navigate to a bill then close the bill (there is no more bills)\n        if (!hasNextBill) this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n      }\n      this.allocating = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"billsData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"invoicedCosts\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"billForm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"billItemForms\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"attachments\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"attachmentIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"attachmentsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"allocating\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"purchaseOrders\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"purchaseOrdersPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return undefined;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"purchaseOrderItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"purchaseOrderItemsPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return undefined;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"showBillDeleteConfirmModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"billTypeChangeConfirmation\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"billResponses\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"billTypeResponseHandlerVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"setContactAliasModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"selectedBillItemForms\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"viewDuplicateBills\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"viewDuplicateBills\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"triggerClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"triggerClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"triggerSave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"triggerSave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"triggerNextBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"triggerNextBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nextBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"nextBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"triggerPreviousBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"triggerPreviousBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"previousBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"previousBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateBothDescriptionAndProductCode\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"validateBothDescriptionAndProductCode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"preventInternalNavigation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"preventInternalNavigation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"preventBrowserClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"preventBrowserClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nextAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"nextAttachment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"previousAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"previousAttachment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"viewAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"viewAttachment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"attachmentsUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"attachmentsUploadComplete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteAttachment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addNewBillItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addNewBillItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelectAll\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelectAll\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelected\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteSelectedBillItemForms\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteSelectedBillItemForms\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setIssuerContact\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setIssuerContact\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setDefaultAllocationType\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaultAllocationType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setPurchaseOrder\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setPurchaseOrder\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setBillItemPurchaseOrderItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setBillItemPurchaseOrderItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createIssuerContact\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createIssuerContact\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleBillTypeChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleBillTypeChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onBillTypeResponseHandlerCancel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onBillTypeResponseHandlerCancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onBillItemAllocatorClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onBillItemAllocatorClose\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillEditorComponent);\n});","define(\"portal/components/bill-item-allocator\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"portal/utils/tree-item\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _treeItem, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/utils/tree-item\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @overlayClass='modal'\n    @containerClass='modal-content bill-item-allocator__modal-container modal-dialog-scrollable'\n    @onClose={{@onClose}}\n    @translucentOverlay={{true}}\n    {{did-insert (perform this.updateItems @bills)}}\n    {{did-update (perform this.updateItems @bills)}}\n  >\n    <div class='modal-header'>\n      <h5 class='modal-title'>\n        {{t 'common.Allocating'}}\n      </h5>\n    </div>\n  \n    <div class='modal-body p-0'>\n      <div class='d-flex h-100'>\n        {{#if this.isLoading}}\n          <div\n            class='h-100 w-100 d-flex align-items-center justify-content-center'\n          >\n            <LoadingIcon @type='ripple' />\n          </div>\n        {{else}}\n          <div class='overflow-auto border-right' style='flex: 2; min-width: 0;'>\n            <table class='table align-middle'>\n              <thead>\n                <tr>\n                  <th\n                    class='text-center ps-2'\n                    role='button'\n                    data-test-allocator-select-all\n                    {{on 'click' this.toggleSelectAll}}\n                  >\n                    {{! template-lint-disable no-nested-interactive }}\n                    <input\n                      class='pe-none'\n                      type='checkbox'\n                      checked={{this.allItemsSelected}}\n                      indeterminate={{this.someItemsSelected}}\n                    />\n                  </th>\n                  <th>{{t 'common.Bill'}}</th>\n                  <th>{{t 'common.Description'}}</th>\n                  <th>{{t 'common.Allocation'}}</th>\n                  <th>{{t 'common.GL account'}}</th>\n                  <th class='text-right pe-2'>{{t 'common.Total'}}</th>\n                </tr>\n              </thead>\n              <tbody>\n                {{#each this.items as |item|}}\n                  {{#let (map-get this.stagedChanges item) as |allocation|}}\n                    {{#let\n                      (bool\n                        (or\n                          allocation.project\n                          allocation.task\n                          item.project.id\n                          item.task.id\n                        )\n                      )\n                      as |hasAllocation|\n                    }}\n                      <tr\n                        class={{if hasAllocation 'table-light'}}\n                        role='button'\n                        data-test-allocator-row={{item.id}}\n                        {{! template-lint-disable no-nested-interactive }}\n                        {{on 'click' (fn this.toggleSelected item)}}\n                      >\n                        <td class='text-center ps-2'>\n                          <input\n                            class='pe-none'\n                            type='checkbox'\n                            checked={{includes this.selectedItems item}}\n                          />\n                        </td>\n                        <td>\n                          {{item.bill.billNumber}}\n                        </td>\n                        <td>\n                          {{item.description}}\n                        </td>\n                        <td>\n                          <AllocationHierarchy\n                            @allocations={{or\n                              allocation.allocations\n                              item.allocations\n                            }}\n                          />\n                        </td>\n                        <td>\n                          {{#if allocation.glAccount}}\n                            {{allocation.glAccount.code}}\n                            -\n                            {{allocation.glAccount.name}}\n                          {{else if item.glAccount}}\n                            {{item.glAccount.label}}\n                          {{else}}\n                            –\n                          {{/if}}\n                        </td>\n                        <td class='no-wrap text-right pe-2'>\n                          {{number-format\n                            (math (or item.quantity 0) '*' (or item.unitPrice 0))\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                    {{/let}}\n                  {{/let}}\n                {{/each}}\n              </tbody>\n            </table>\n          </div>\n  \n          <div class='d-flex flex-column mb-2' style='flex: 1; min-width: 0;'>\n            {{#if (gt this.selectedItems.length 0)}}\n              <div class='overflow-auto flex-grow-1' style='min-height: 0;'>\n                <ItemSelector\n                  @items={{this.projectTree}}\n                  @selectedItem={{this.selectedMap}}\n                  @onChange={{this.onMapChange}}\n                  @nameKey='name'\n                  @homeText={{t 'common.Projects'}}\n                  @noItemsMessage={{t 'common.No tasks or projects'}}\n                  @searchPlaceholder={{t 'common.Search for a task or project'}}\n                  @noSearchItemsMessage={{t 'common.No tasks or projects found'}}\n                />\n              </div>\n  \n            {{else}}\n              <div\n                class='h-100 w-100 d-flex align-items-center justify-content-center'\n              >\n                {{t\n                  'components.bill-item-allocator.Select items to make an allocation'\n                }}\n              </div>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n    </div>\n  \n    {{#if this.selectedMap}}\n      <div class='d-flex'>\n        <div style='flex: 2' />\n        <div\n          style='flex: 1;'\n          class='border-start border-top bg-white position-relative z-1'\n        >\n          <div class='p-3'>\n            <button\n              type='button'\n              class='btn btn-link d-block p-0 mb-2'\n              data-test-allocator-clear\n              disabled={{or this.isLoading this.isSaving}}\n              {{on 'click' this.clearSelectedAllocations}}\n            >\n              {{t 'components.bill-item-allocator.Clear allocation'}}\n            </button>\n  \n            <label class='d-block'>GL Account</label>\n            <SearchSelector\n              @onSelect={{this.onOverrideGlAccount}}\n              @model={{changeset (hash value=this.overriddenGlAccount)}}\n              @key='value'\n              @onLoad={{this.loadGlAccounts}}\n              @placeholder={{if\n                this.selectedMap.item.effectivePurchasesGlAccount\n                (concat\n                  this.selectedMap.item.effectivePurchasesGlAccount.name\n                  ' - '\n                  this.selectedMap.item.effectivePurchasesGlAccount.code\n                )\n                '–'\n              }}\n              @optionKeys={{array 'code' 'name'}}\n              @disabled={{or this.isLoading this.isSaving}}\n            />\n          </div>\n        </div>\n      </div>\n    {{/if}}\n  \n    <div class='modal-footer'>\n      <button\n        class='btn btn-secondary'\n        type='button'\n        data-test-allocator-close\n        {{on 'click' this.close}}\n      >\n        {{t 'common.Cancel'}}\n      </button>\n  \n      <div class='ms-auto d-flex'>\n        {{#if\n          (and (not this.primaryActionDisabled) this.secondaryActions.length)\n        }}\n          <DropdownButton\n            @onPrimaryClick={{perform this.primaryAction.task}}\n            @disabled={{this.primaryActionDisabled}}\n            @buttonText={{if\n              this.isSaving\n              (t 'common.Saving')\n              this.primaryAction.label\n            }}\n            @popOverFixed={{true}}\n          >\n            {{#each this.secondaryActions as |action|}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                data-test-allocator-secondary-action\n                {{on 'click' (perform action.task)}}\n              >\n                {{action.label}}\n              </button>\n            {{/each}}\n          </DropdownButton>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            data-test-allocator-primary-action\n            {{on 'click' (perform this.primaryAction.task)}}\n            disabled={{this.primaryActionDisabled}}\n          >\n            {{#if this.isSaving}}\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{this.primaryAction.label}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"juDA5t6r\",\n    \"block\": \"[[[8,[39,0],[[4,[38,1],[[28,[37,2],[[30,0,[\\\"updateItems\\\"]],[30,2]],null]],null],[4,[38,3],[[28,[37,2],[[30,0,[\\\"updateItems\\\"]],[30,2]],null]],null]],[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content bill-item-allocator__modal-container modal-dialog-scrollable\\\",[30,1],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[\\\"common.Allocating\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-body p-0\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex h-100\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"h-100 w-100 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"overflow-auto border-right\\\"],[14,5,\\\"flex: 2; min-width: 0;\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"table align-middle\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"th\\\"],[24,0,\\\"text-center ps-2\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"data-test-allocator-select-all\\\",\\\"\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"toggleSelectAll\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"checked\\\",[30,0,[\\\"allItemsSelected\\\"]]],[15,\\\"indeterminate\\\",[30,0,[\\\"someItemsSelected\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Bill\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Description\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Allocation\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.GL account\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right pe-2\\\"],[12],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"items\\\"]]],null]],null],null,[[[44,[[28,[37,19],[[30,0,[\\\"stagedChanges\\\"]],[30,3]],null]],[[[44,[[28,[37,20],[[28,[37,21],[[30,4,[\\\"project\\\"]],[30,4,[\\\"task\\\"]],[30,3,[\\\"project\\\",\\\"id\\\"]],[30,3,[\\\"task\\\",\\\"id\\\"]]],null]],null]],[[[1,\\\"                    \\\"],[11,\\\"tr\\\"],[16,0,[52,[30,5],\\\"table-light\\\"]],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-test-allocator-row\\\",[30,3,[\\\"id\\\"]]],[4,[38,13],[\\\"click\\\",[28,[37,22],[[30,0,[\\\"toggleSelected\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center ps-2\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"checked\\\",[28,[37,24],[[30,0,[\\\"selectedItems\\\"]],[30,3]],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[30,3,[\\\"bill\\\",\\\"billNumber\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[30,3,[\\\"description\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                        \\\"],[8,[39,25],null,[[\\\"@allocations\\\"],[[28,[37,21],[[30,4,[\\\"allocations\\\"]],[30,3,[\\\"allocations\\\"]]],null]]],null],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"glAccount\\\"]],[[[1,\\\"                          \\\"],[1,[30,4,[\\\"glAccount\\\",\\\"code\\\"]]],[1,\\\"\\\\n                          -\\\\n                          \\\"],[1,[30,4,[\\\"glAccount\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,3,[\\\"glAccount\\\"]],[[[1,\\\"                          \\\"],[1,[30,3,[\\\"glAccount\\\",\\\"label\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          –\\\\n                        \\\"]],[]]]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"no-wrap text-right pe-2\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,26],[[28,[37,27],[[28,[37,21],[[30,3,[\\\"quantity\\\"]],0],null],\\\"*\\\",[28,[37,21],[[30,3,[\\\"unitPrice\\\"]],0],null]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[5]]]],[4]]]],[3]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-column mb-2\\\"],[14,5,\\\"flex: 1; min-width: 0;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,28],[[30,0,[\\\"selectedItems\\\",\\\"length\\\"]],0],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"overflow-auto flex-grow-1\\\"],[14,5,\\\"min-height: 0;\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,29],null,[[\\\"@items\\\",\\\"@selectedItem\\\",\\\"@onChange\\\",\\\"@nameKey\\\",\\\"@homeText\\\",\\\"@noItemsMessage\\\",\\\"@searchPlaceholder\\\",\\\"@noSearchItemsMessage\\\"],[[30,0,[\\\"projectTree\\\"]],[30,0,[\\\"selectedMap\\\"]],[30,0,[\\\"onMapChange\\\"]],\\\"name\\\",[28,[37,6],[\\\"common.Projects\\\"],null],[28,[37,6],[\\\"common.No tasks or projects\\\"],null],[28,[37,6],[\\\"common.Search for a task or project\\\"],null],[28,[37,6],[\\\"common.No tasks or projects found\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"h-100 w-100 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"components.bill-item-allocator.Select items to make an allocation\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedMap\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,5,\\\"flex: 2\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,5,\\\"flex: 1;\\\"],[14,0,\\\"border-start border-top bg-white position-relative z-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link d-block p-0 mb-2\\\"],[24,\\\"data-test-allocator-clear\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,21],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"clearSelectedAllocations\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"components.bill-item-allocator.Clear allocation\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"d-block\\\"],[12],[1,\\\"GL Account\\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,32],null,[[\\\"@onSelect\\\",\\\"@model\\\",\\\"@key\\\",\\\"@onLoad\\\",\\\"@placeholder\\\",\\\"@optionKeys\\\",\\\"@disabled\\\"],[[30,0,[\\\"onOverrideGlAccount\\\"]],[28,[37,33],[[28,[37,34],null,[[\\\"value\\\"],[[30,0,[\\\"overriddenGlAccount\\\"]]]]]],null],\\\"value\\\",[30,0,[\\\"loadGlAccounts\\\"]],[52,[30,0,[\\\"selectedMap\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\"]],[28,[37,35],[[30,0,[\\\"selectedMap\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"name\\\"]],\\\" - \\\",[30,0,[\\\"selectedMap\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"code\\\"]]],null],\\\"–\\\"],[28,[37,36],[\\\"code\\\",\\\"name\\\"],null],[28,[37,21],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,\\\"data-test-allocator-close\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"close\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"ms-auto d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,37],[[28,[37,38],[[30,0,[\\\"primaryActionDisabled\\\"]]],null],[30,0,[\\\"secondaryActions\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,39],null,[[\\\"@onPrimaryClick\\\",\\\"@disabled\\\",\\\"@buttonText\\\",\\\"@popOverFixed\\\"],[[28,[37,2],[[30,0,[\\\"primaryAction\\\",\\\"task\\\"]]],null],[30,0,[\\\"primaryActionDisabled\\\"]],[52,[30,0,[\\\"isSaving\\\"]],[28,[37,6],[\\\"common.Saving\\\"],null],[30,0,[\\\"primaryAction\\\",\\\"label\\\"]]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"secondaryActions\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-allocator-secondary-action\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,2],[[30,6,[\\\"task\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[30,6,[\\\"label\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,\\\"data-test-allocator-primary-action\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"primaryActionDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"primaryAction\\\",\\\"task\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSaving\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[30,0,[\\\"primaryAction\\\",\\\"label\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onClose\\\",\\\"@bills\\\",\\\"item\\\",\\\"allocation\\\",\\\"hasAllocation\\\",\\\"action\\\"],false,[\\\"modal-dialog\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"did-update\\\",\\\"div\\\",\\\"h5\\\",\\\"t\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"on\\\",\\\"input\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"let\\\",\\\"map-get\\\",\\\"bool\\\",\\\"or\\\",\\\"fn\\\",\\\"td\\\",\\\"includes\\\",\\\"allocation-hierarchy\\\",\\\"number-format\\\",\\\"math\\\",\\\"gt\\\",\\\"item-selector\\\",\\\"button\\\",\\\"label\\\",\\\"search-selector\\\",\\\"changeset\\\",\\\"hash\\\",\\\"concat\\\",\\\"array\\\",\\\"and\\\",\\\"not\\\",\\\"dropdown-button\\\"]]\",\n    \"moduleName\": \"portal/components/bill-item-allocator.hbs\",\n    \"isStrictMode\": false\n  });\n  let BillItemAllocatorComponent = _exports.default = (_class = class BillItemAllocatorComponent extends _component2.default {\n    onOverrideGlAccount(glAccount) {\n      this.overriddenGlAccount = glAccount;\n      for (const item of this.selectedItems) {\n        const map = this.stagedChanges.get(item);\n        this.stagedChanges.set(item, {\n          ...map,\n          glAccount\n        });\n      }\n      this.stagedChanges = this.stagedChanges; // eslint-disable-line no-self-assign\n    }\n    // TODO search-selector containment block end\n\n    get allItemsSelected() {\n      if (!this.items || this.items.length === 0) return false;\n      return this.items.length === this.selectedItems.length;\n    }\n    get someItemsSelected() {\n      if (this.allItemsSelected) return false;\n      return this.selectedItems.length > 0;\n    }\n    get fullyAllocatedBills() {\n      return this.args.bills.filter(bill => {\n        const billItems = this.items.filter(item => item.belongsTo('bill').id() === bill.id);\n        return billItems.length > 0 && billItems.every(item => {\n          const stagedState = this.stagedChanges.get(item);\n          if (stagedState) {\n            return Boolean(stagedState.project || stagedState.task);\n          }\n          return Boolean(item.belongsTo('project').id() || item.belongsTo('task').id());\n        });\n      });\n    }\n    get allocationActions() {\n      const actions = [];\n      const billCount = this.fullyAllocatedBills.length;\n      const billCountLabel = billCount > 0 && this.args.bills.length > 1 ? ` ${billCount} ${this.intl.t('common.bills')}` : '';\n\n      // accepting is only on offer once there's a bill with every item allocated\n      if (billCount > 0) {\n        if (this.accountingPlatform.isActive) {\n          actions.push({\n            label: `${this.intl.t('components.bill-item-allocator.allocateAcceptSend')}${billCountLabel}`,\n            task: this.acceptAllocateSend\n          });\n        }\n        actions.push({\n          label: `${this.intl.t('components.bill-item-allocator.allocateAccept')}${billCountLabel}`,\n          task: this.acceptAllocate\n        });\n      }\n      actions.push({\n        label: this.intl.t('common.Allocate'),\n        task: this.allocate\n      });\n      return actions;\n    }\n    get primaryAction() {\n      return this.allocationActions[0];\n    }\n    get secondaryActions() {\n      return this.allocationActions.slice(1);\n    }\n    get isLoading() {\n      return this.load.isRunning;\n    }\n    get isSaving() {\n      return this.acceptAllocateSend.isRunning || this.acceptAllocate.isRunning || this.allocate.isRunning;\n    }\n    get actionsDisabled() {\n      return this.isLoading || this.isSaving || this.selectedItems.length === 0 && this.stagedChanges.size === 0;\n    }\n    get primaryActionDisabled() {\n      if (this.isLoading || this.isSaving) return true;\n\n      // an already fully allocated bill can be accepted without staging anything\n      if (this.fullyAllocatedBills.length > 0) return false;\n      return this.actionsDisabled;\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor3, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor4, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor5, this);\n      _initializerDefineProperty(this, \"billsData\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"mapSetFromComputeMap\", _descriptor8, this);\n      _initializerDefineProperty(this, \"items\", _descriptor9, this);\n      _initializerDefineProperty(this, \"selectedItems\", _descriptor0, this);\n      _initializerDefineProperty(this, \"projectTree\", _descriptor1, this);\n      _initializerDefineProperty(this, \"selectedMap\", _descriptor10, this);\n      _initializerDefineProperty(this, \"stagedChanges\", _descriptor11, this);\n      // TODO search-selector containment block start\n      _initializerDefineProperty(this, \"overriddenGlAccount\", _descriptor12, this);\n      _initializerDefineProperty(this, \"glAccounts\", _descriptor13, this);\n      _initializerDefineProperty(this, \"glAccountsPage\", _descriptor14, this);\n      _defineProperty(this, \"loadGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchString) {\n          if (searchString !== this.glAccountsPage.searchString) {\n            this.glAccounts = [];\n            this.glAccountsPage = {\n              ...this.glAccountsPage,\n              number: 0,\n              hasNextPage: undefined,\n              searchString\n            };\n          }\n          if (this.glAccountsPage.hasNextPage === false) return this.glAccounts;\n          this.glAccountsPage = {\n            ...this.glAccountsPage,\n            number: this.glAccountsPage.number + 1\n          };\n          const page = yield this.accountingPlatform.loadActivePlatformGlAccounts.perform(searchString, this.glAccountsPage);\n          this.glAccountsPage = {\n            ...this.glAccountsPage,\n            hasNextPage: page.meta.totalPages >= this.glAccountsPage.number\n          };\n          this.glAccounts = [...this.glAccounts, ...page.toArray()];\n          return this.glAccounts;\n        }\n      }), null, \"loadGlAccounts\", null));\n      _defineProperty(this, \"load\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.query('project', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'status',\n                op: 'EQ',\n                value: 'OPEN'\n              }]\n            },\n            include: 'purchasesGlAccount',\n            sort: 'sortIndex'\n          });\n          const projectIds = projects.map(p => p.id);\n          const tasks = yield this.store.query('task', {\n            filter: {\n              and: [{\n                field: 'project',\n                op: 'IN',\n                value: projectIds\n              }, {\n                field: 'status',\n                op: 'IN',\n                value: ['ACTIVE', 'DRAFT_CREATED']\n              }, {\n                field: 'project.status',\n                op: 'EQ',\n                value: 'OPEN'\n              }]\n            },\n            include: 'purchasesGlAccount,children',\n            sort: 'path'\n          });\n          this.projectTree = _treeItem.default.constructItemTreeFromProjectAndTasks(tasks, projects);\n        }\n      }), {\n        restartable: true\n      }, \"load\", null));\n      _defineProperty(this, \"updateItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const billIds = this.args.bills.map(b => b.id);\n\n          // TODO could paginate this\n          const items = yield this.store.query('bill-item', {\n            filter: {\n              and: [{\n                field: 'bill',\n                op: 'IN',\n                value: billIds\n              }]\n            },\n            fields: {\n              'bill-items': '_meta.allocationPath'\n            },\n            sort: 'billId,sortIndex,-dateCreated'\n          });\n          this.items = items.toArray();\n\n          // only select items that aren't allocated\n          const unallocatedItems = [];\n          for (const item of this.items) {\n            if (item.belongsTo('project').id() || item.belongsTo('task').id()) continue;\n            unallocatedItems.push(item);\n          }\n          this.selectedItems = unallocatedItems;\n          this.computeMap();\n        }\n      }), null, \"updateItems\", \"drop\"));\n      _defineProperty(this, \"_saveAllocations\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const itemsJson = [];\n          for (const [item, stagedState] of this.stagedChanges.entries()) {\n            item.project = stagedState.project;\n            item.task = stagedState.task;\n            item.glAccount = stagedState.glAccount;\n            itemsJson.push(item.toJSON({\n              includeId: true\n            }));\n          }\n          if (itemsJson.length === 0) return;\n          yield this.buildaPrice.updateInvoiceItems(itemsJson);\n\n          // we must reload the records for the server side isAllocated\n          // we could do this client side but this is easier\n          const itemIds = [];\n          const billIds = new Set();\n          for (const item of itemsJson) {\n            itemIds.push(item.id);\n            billIds.add(item.bill);\n          }\n          yield Promise.all([this.store.query('bill-item', {\n            filter: {\n              and: [{\n                field: '_id',\n                op: 'IN',\n                value: [...itemIds]\n              }]\n            },\n            fields: {\n              'bill-items': '_meta.allocationPath'\n            }\n          }), this.store.query('bill', {\n            filter: {\n              and: [{\n                field: '_id',\n                op: 'IN',\n                value: [...billIds]\n              }]\n            },\n            fields: {\n              bills: '_meta.allocationPath'\n            }\n          })]);\n          this.stagedChanges.clear();\n        }\n      }), null, \"_saveAllocations\", null));\n      _defineProperty(this, \"_acceptBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const bills = [...this.fullyAllocatedBills];\n          yield Promise.all(bills.map(async b => {\n            b.status = 'ACCEPTED';\n            await b.save();\n            if (this.args.billStatus && this.args.billStatus !== 'ACCEPTED') {\n              this.billsData.removeBill(b);\n            }\n          }));\n        }\n      }), null, \"_acceptBills\", null));\n      _defineProperty(this, \"allocate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this._saveAllocations.perform();\n          this.notifications.success(this.intl.t('components.bill-item-allocator.Saved successfully'));\n          this.args.onClose();\n        }\n      }), null, \"allocate\", null));\n      _defineProperty(this, \"acceptAllocate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this._saveAllocations.perform();\n          yield this._acceptBills.perform();\n          this.notifications.success(this.intl.t('components.bill-item-allocator.Saved successfully'));\n          this.args.onClose();\n        }\n      }), null, \"acceptAllocate\", null));\n      _defineProperty(this, \"acceptAllocateSend\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this._saveAllocations.perform();\n          const bills = [...this.fullyAllocatedBills];\n          if (!this.accountingPlatform.isActive) {\n            yield this._acceptBills.perform();\n          } else {\n            let errorCount = 0;\n            yield Promise.all(bills.map(async b => {\n              const oldStatus = b.status;\n              b.status = 'ACCEPTED';\n              await b.save();\n              try {\n                await this.accountingPlatform.sendBill.perform(b);\n                if (this.args.billStatus && this.args.billStatus !== 'ACCEPTED') {\n                  this.billsData.removeBill(b);\n                }\n              } catch (_) {\n                errorCount++;\n                b.status = oldStatus;\n                await b.save();\n              }\n            }));\n            if (errorCount) {\n              this.notifications.error({\n                message: this.intl.t('components.bill-item-allocator.thereAreErrorCountBillsFailedToSend', {\n                  errorCount\n                })\n              });\n              return; // halt early so we don't show success/close the modal\n            }\n          }\n          this.notifications.success(this.intl.t('components.bill-item-allocator.Saved successfully'));\n          this.args.onClose();\n        }\n      }), null, \"acceptAllocateSend\", null));\n      this.load.perform();\n    }\n    async computeMap() {\n      await this.load.last;\n      if (!this.selectedItems || this.selectedItems.length === 0) {\n        this.selectedMap = undefined;\n        return;\n      }\n      this.mapSetFromComputeMap = true;\n      let targetProject = null;\n      let targetTask = null;\n      for (const item of this.selectedItems) {\n        let project, task;\n        if (this.stagedChanges.has(item)) {\n          project = this.stagedChanges.get(item).project;\n          task = this.stagedChanges.get(item).task;\n        } else {\n          project = item.belongsTo('project').value();\n          task = item.belongsTo('task').value();\n        }\n        if (!project && !task) {\n          this.selectedMap = undefined;\n          return;\n        }\n        targetProject ??= project;\n        if (targetProject !== project) {\n          this.selectedMap = undefined;\n          return;\n        }\n        targetTask ??= task;\n        if (targetTask !== task) {\n          this.selectedMap = undefined;\n          return;\n        }\n      }\n      if (targetTask) {\n        this.selectedMap = _treeItem.default.findItemInTree(this.projectTree, targetTask);\n      } else if (targetProject) {\n        this.selectedMap = this.projectTree.find(i => i.item === targetProject);\n      } else {\n        this.selectedMap = undefined;\n      }\n    }\n    onMapChange(map) {\n      for (const item of this.selectedItems) {\n        if (map?.item.constructor.modelName === 'project') {\n          const allocations = [_treeItem.default.getPath(this.projectTree, map)];\n          this.stagedChanges.set(item, {\n            project: map.item,\n            task: undefined,\n            allocations,\n            glAccount: this.overriddenGlAccount || map.item.effectivePurchasesGlAccount\n          });\n        } else if (map?.item.constructor.modelName === 'task') {\n          const allocations = [_treeItem.default.getPath(this.projectTree, map)];\n          this.stagedChanges.set(item, {\n            project: undefined,\n            task: map.item,\n            allocations,\n            glAccount: this.overriddenGlAccount || map.item.effectivePurchasesGlAccount\n          });\n        } else if (!this.mapSetFromComputeMap) {\n          // only clear the allocation when the user makes a selection\n          this.stagedChanges.set(item, {\n            project: undefined,\n            task: undefined,\n            allocations: undefined,\n            glAccount: undefined\n          });\n        }\n      }\n      if (this.mapSetFromComputeMap) this.mapSetFromComputeMap = false;\n      this.stagedChanges = this.stagedChanges; // eslint-disable-line no-self-assign\n      this.selectedMap = map;\n    }\n    clearSelectedAllocations() {\n      for (const item of this.selectedItems) {\n        this.stagedChanges.set(item, {\n          project: undefined,\n          task: undefined,\n          allocations: undefined,\n          glAccount: undefined\n        });\n      }\n      this.stagedChanges = this.stagedChanges; // eslint-disable-line no-self-assign\n      this.selectedMap = undefined;\n    }\n    toggleSelectAll() {\n      if (this.allItemsSelected) {\n        this.selectedItems = [];\n      } else {\n        this.selectedItems = [...this.items];\n      }\n      this.computeMap();\n    }\n    toggleSelected(item, e) {\n      e.stopPropagation();\n      e.preventDefault();\n      const i = this.selectedItems.indexOf(item);\n      if (i < 0) {\n        this.selectedItems = [...this.selectedItems, item];\n      } else {\n        this.selectedItems = this.selectedItems.toSpliced(i, 1);\n      }\n      this.computeMap();\n    }\n    close() {\n      this.stagedChanges.clear();\n      this.selectedItems = [];\n      this.args.onClose({\n        wasCancelled: true\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"billsData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"mapSetFromComputeMap\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"items\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"selectedItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"projectTree\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"selectedMap\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"stagedChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Map();\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"overriddenGlAccount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"glAccounts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"glAccountsPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {\n        number: 0,\n        size: 10,\n        hasNextPage: undefined,\n        searchString: ''\n      };\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onOverrideGlAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onOverrideGlAccount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"computeMap\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"computeMap\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onMapChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onMapChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearSelectedAllocations\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clearSelectedAllocations\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelectAll\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelectAll\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelected\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillItemAllocatorComponent);\n});","define(\"portal/components/bill-item-summary\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! Aligned right because this sits in the last column of the table }}\n  <InfoPopup\n    @text={{this.summaryText}}\n    @iconName={{this.statusIcon}}\n    @align='right'\n    class={{this.statusClass}}\n    ...attributes\n  />\n  */\n  {\n    \"id\": \"iHYQpaI6\",\n    \"block\": \"[[[8,[39,0],[[16,0,[30,0,[\\\"statusClass\\\"]]],[17,1]],[[\\\"@text\\\",\\\"@iconName\\\",\\\"@align\\\"],[[30,0,[\\\"summaryText\\\"]],[30,0,[\\\"statusIcon\\\"]],\\\"right\\\"]],null]],[\\\"&attrs\\\"],false,[\\\"info-popup\\\"]]\",\n    \"moduleName\": \"portal/components/bill-item-summary.hbs\",\n    \"isStrictMode\": false\n  });\n  const PATH_SEPARATOR = ' › ';\n  const escapeHtml = value => String(value).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');\n  const toLineBreaks = value => escapeHtml(value).replaceAll('\\n', '<br>');\n  let BillItemSummaryComponent = _exports.default = (_class = class BillItemSummaryComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    // the underlying bill-item. everything shown here comes from server meta\n    // rather than the form, so it is read from the record\n    get record() {\n      return this.args.item?.get('data');\n    }\n    get allocationPaths() {\n      return (this.record?.allocations ?? []).filter(path => path?.length);\n    }\n\n    // mirrors the per item test used by bill.fullymapped\n    get isAllocated() {\n      const record = this.record;\n      return Boolean(record?.isMapped || record?.belongsTo('project').id() || record?.belongsTo('task').id() || this.allocationPaths.length);\n    }\n    get allocation() {\n      if (!this.allocationPaths.length) return null;\n      return this.allocationPaths.map(path => path.join(PATH_SEPARATOR)).join('\\n');\n    }\n    get glAccount() {\n      return this.record?.belongsTo('glAccount').value()?.label || null;\n    }\n\n    // only rows with something to show make it into the popup\n    get rows() {\n      return [{\n        label: this.intl.t('common.Allocation'),\n        value: this.allocation\n      }, {\n        label: this.intl.t('common.GL account'),\n        value: this.glAccount\n      }].filter(row => row.value);\n    }\n    get summaryText() {\n      return [`<strong>${escapeHtml(this.statusLabel)}</strong>`, ...this.rows.map(row => `${escapeHtml(row.label)}: ${toLineBreaks(row.value)}`)].join('<br>');\n    }\n    get statusLabel() {\n      return this.isAllocated ? this.intl.t('common.Allocated') : this.intl.t('common.Not allocated');\n    }\n    get statusIcon() {\n      return this.isAllocated ? 'check-circle' : 'exclamation-circle';\n    }\n    get statusClass() {\n      return this.isAllocated ? 'text-left text-success' : 'text-left text-danger';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillItemSummaryComponent);\n});","define(\"portal/components/bill-type-response-handler\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @onClose={{@onCancel}}\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @containerClass='block-module'\n  >\n    {{#if this.responseErrors.length}}\n      <p class='p'>{{t 'shared.bill.Some bills failed to send'}}</p>\n      <div class='bill-type-response-handler__table-container'>\n        <table class='bill-type-response-handler__table'>\n          <thead>\n            <tr>\n              <th>{{t 'shared.bill.Reason for failure'}}</th>\n            </tr>\n          </thead>\n          <tbody>\n            {{#each this.responseErrors as |error|}}\n              <tr data-test-bill-type-resource-handler-error>\n                <td>{{error}}</td>\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      </div>\n    {{/if}}\n  \n    {{#if this.attachmentErrors.length}}\n      <p class='p'>{{t 'shared.bill.Some attachments failed to send to Xero'}}</p>\n      <div class='bill-type-response-handler__table-container'>\n        <table class='bill-type-response-handler__table'>\n          <thead>\n            <tr>\n              <th>{{t 'shared.bill.Reason for failure'}}</th>\n            </tr>\n          </thead>\n          <tbody>\n            {{#each this.attachmentErrors as |error|}}\n              <tr data-test-bill-type-resource-handler-attachment-error>\n                <td>{{error.rejectedReason}}</td>\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      </div>\n    {{/if}}\n    <div class='block-module__footer'>\n      <button\n        class='button float-end'\n        data-test-bill-type-resource-handler-okay-button\n        type='button'\n        {{on 'click' @onCancel}}\n      >{{t 'common.Okay'}}</button>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"Ty6sLlrJ\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[30,1],true,\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"responseErrors\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Some bills failed to send\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"bill-type-response-handler__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"bill-type-response-handler__table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Reason for failure\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"responseErrors\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-bill-type-resource-handler-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,2]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"attachmentErrors\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Some attachments failed to send to Xero\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"bill-type-response-handler__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"bill-type-response-handler__table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Reason for failure\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"attachmentErrors\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-bill-type-resource-handler-attachment-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"rejectedReason\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,0],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end\\\"],[24,\\\"data-test-bill-type-resource-handler-okay-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,3],[\\\"common.Okay\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onCancel\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"modal-dialog\\\",\\\"if\\\",\\\"p\\\",\\\"t\\\",\\\"div\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/bill-type-response-handler.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get responseErrors() {\n      return (this.args.responses ?? []).flat().filter(response => typeof response === 'string');\n    }\n    get attachmentErrors() {\n      const responses = (this.args.responses ?? []).reduce((attachments, response) => [...attachments, ...(response.attachments || [])], []);\n      const errors = responses.filter(response => response.rejected);\n      return errors;\n    }\n  });\n});","define(\"portal/components/bills-table\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.allocating}}\n    <BillItemAllocator\n      @bills={{this.selectedBills}}\n      @onClose={{this.closeAllocator}}\n      @billStatus={{@billStatus}}\n    />\n  {{/if}}\n  \n  <div\n    class='overflow-auto h-100'\n    {{did-update this.resetSelectionOnFilterChange this.filterString}}\n  >\n    <div\n      {{! TODO sticky-top bs class is overwritten by our deprecated component}}\n      class='d-flex align-items-center position-sticky bg-white z-1 p-3'\n      style='top: 0; height: 43px;'\n    >\n      {{#if this.someBillsSelected}}\n        <DropdownButton\n          data-test-bills-bulk-actions\n          @direction='bottom-right'\n          @btnClass='btn btn-sm btn-primary '\n          @buttonText={{t 'common.Allocate'}}\n          @onPrimaryClick={{fn (mut this.allocating) (not this.allocating)}}\n          @disabled={{or this.isLoading this.isActionsRunning}}\n        >\n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-5'\n            {{on 'click' (perform this.setSelectedBillsToHoldStatus)}}\n          >\n            {{t 'components.bills-table.Mark as held'}}\n          </button>\n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-5'\n            {{on 'click' (fn (mut this.showBillsDeleteConfirmModal) true)}}\n          >\n            {{t 'common.Delete'}}\n          </button>\n        </DropdownButton>\n      {{/if}}\n    </div>\n  \n    <table class='table position-relative align-middle'>\n      <thead class='position-sticky' style='top: 43px;'>\n        <tr>\n          <th colspan='1' />\n          {{#if this.showStatusColumn}}\n            <BillsTable::Th\n              colspan='1'\n              @sort={{@sort}}\n              @onOrderBy={{@onOrderBy}}\n              @key='status'\n              class='text-nowrap'\n            >\n              {{t 'common.Status'}}\n            </BillsTable::Th>\n          {{/if}}\n          <BillsTable::Th\n            colspan={{this.fromColumnSpan}}\n            @sort={{@sort}}\n            @onOrderBy={{@onOrderBy}}\n            @key='issuer'\n            class='text-nowrap'\n          >\n            {{t 'common.From'}}\n          </BillsTable::Th>\n          <BillsTable::Th\n            colspan={{this.numberColumnSpan}}\n            @sort={{@sort}}\n            @onOrderBy={{@onOrderBy}}\n            @key='billNumber'\n            class='text-nowrap'\n          >\n            {{t 'common.Number'}}\n          </BillsTable::Th>\n          {{#unless @condensed}}\n            <BillsTable::Th\n              colspan='1'\n              @sort={{@sort}}\n              @onOrderBy={{@onOrderBy}}\n              @key='reference'\n              class='text-nowrap'\n            >\n              {{t 'common.Purchase order'}}\n            </BillsTable::Th>\n            <BillsTable::Th\n              colspan='1'\n              @sort={{@sort}}\n              @onOrderBy={{@onOrderBy}}\n              @key='issueDate'\n              class='text-nowrap'\n            >\n              {{t 'common.Issue date'}}\n            </BillsTable::Th>\n            <BillsTable::Th\n              colspan='1'\n              @sort={{@sort}}\n              @onOrderBy={{@onOrderBy}}\n              @key='dueDate'\n              class='text-nowrap'\n            >\n              {{t 'common.Due date'}}\n            </BillsTable::Th>\n          {{/unless}}\n          <th colspan={{this.allocationColumnSpan}} class='text-nowrap'>\n            {{t 'common.Allocation'}}\n          </th>\n          <BillsTable::Th\n            colspan='1'\n            @sort={{@sort}}\n            @onOrderBy={{@onOrderBy}}\n            class='text-nowrap'\n            @key='subtotal'\n          >\n            {{t 'common.Total'}}\n          </BillsTable::Th>\n        </tr>\n      </thead>\n      <InfinityScroll\n        @onLoadMore={{(fn (perform this.loadMoreBills))}}\n        as |didInsert|\n      >\n        <tbody {{did-insert didInsert}}>\n          {{#each this.billsData.bills as |bill|}}\n            {{#let\n              (is-active\n                'entity.builda-price.operations.incoming.bills.bill' bill.id\n              )\n              as |active|\n            }}\n              <tr\n                class={{if active 'table-primary'}}\n                {{on 'click' (fn this.navigateToBill bill.id)}}\n                {{did-insert this.scrollActiveBill active}}\n                {{did-update this.scrollActiveBill active}}\n                role='button'\n                active-bill={{active}}\n                data-test-bill-row={{bill.id}}\n              >\n                {{! template-lint-disable no-nested-interactive }}\n                {{#if (includes-feature-flags 'canManageBills')}}\n                  {{#if bill.newIsValid}}\n                    <td\n                      colspan='1'\n                      role='button'\n                      class='{{if\n                          this.showCondensedStatusStripe\n                          (map-get this.billStatusStripeClasses bill.status)\n                        }}\n                        '\n                      {{on 'click' (fn this.toggleSelected bill)}}\n                    >\n                      <input\n                        class='pe-none'\n                        type='checkbox'\n                        checked={{includes this.selectedBills bill}}\n                      />\n                    </td>\n                  {{else}}\n                    <td\n                      colspan='1'\n                      class='{{if\n                          this.showCondensedStatusStripe\n                          (map-get this.billStatusStripeClasses bill.status)\n                        }}\n                        '\n                    />\n                  {{/if}}\n                {{/if}}\n                {{#if this.showStatusColumn}}\n                  <td colspan='1'>\n                    <span\n                      class='badge m-1 fs-7\n                        {{map-get this.billStatusBackgroundClasses bill.status}}\n                        {{if (eq bill.status \"HELD\") \"text-dark\"}}\n                        {{if (eq bill.status \"PAID\") \"text-dark\"}}\n                        '\n                    >\n                      {{bill.statusLabel}}\n                    </span>\n                  </td>\n                {{/if}}\n                <td\n                  colspan={{this.fromColumnSpan}}\n                  data-test-bill-issuer\n                >{{bill.issuer}}</td>\n                <td colspan={{this.numberColumnSpan}} data-test-bill-number>\n                  {{#if bill.billNumber}}\n                    {{bill.billNumber}}\n                    {{#if (eq bill.billType 'CREDIT_NOTE')}}\n                      <span class='badge m-1 fs-7 bg-info'>\n                        {{bill.typeLabel}}\n                      </span>\n                    {{/if}}\n                    {{#if bill.hasDuplicate}}\n                      <span class='badge m-1 fs-7 bg-danger'>\n                        {{t 'common.Duplicate'}}\n                      </span>\n                    {{/if}}\n                    {{#if bill.isAcceptedButNotSyncedToAccountingPlatform}}\n                      <span class='badge m-1 fs-7 bg-danger'>\n                        {{t 'components.bills-table.Not synced to'}}\n                        {{this.accountingPlatform.label}}\n                      </span>\n                    {{/if}}\n                  {{else}}\n                    &mdash;\n                  {{/if}}\n                </td>\n                {{#unless @condensed}}\n                  <td colspan='1'>\n                    {{#if bill.reference}}\n                      {{bill.reference}}\n                      {{#if (this.getPurchaseOrderMatchingStatus bill)}}\n                        <span\n                          class='badge m-1 fs-7\n                            {{this.getPurchaseOrderMatchingStatus bill}}'\n                        >\n                          <FaIcon @icon='shopping-cart' @size='sm' />\n                          &nbsp;PO\n                        </span>\n                      {{/if}}\n                    {{else}}\n                      &mdash;\n                    {{/if}}\n                  </td>\n                  <td colspan='1' class='text-nowrap'>\n                    {{#if bill.issueDate}}\n                      {{moment-format bill.issueDate (t 'date.shortWithWeekday')}}\n                    {{else}}\n                      &mdash;\n                    {{/if}}\n                  </td>\n                  <td colspan='1' class='text-nowrap'>\n                    {{#if bill.dueDate}}\n                      {{moment-format bill.dueDate (t 'date.shortWithWeekday')}}\n                    {{else}}\n                      &mdash;\n                    {{/if}}\n                  </td>\n                {{/unless}}\n                <td colspan={{this.allocationColumnSpan}}>\n                  <AllocationHierarchy @allocations={{bill.allocations}} />\n                </td>\n                <td colspan='1' class='text-nowrap'>\n                  {{number-format bill.subtotal style='currency' dashZero=true}}\n                </td>\n              </tr>\n            {{/let}}\n          {{else}}\n            <tr data-test-bills-empty>\n              <td class='text-center' colspan='12'>\n                {{t 'common.No bills'}}\n              </td>\n            </tr>\n          {{/each}}\n        </tbody>\n      </InfinityScroll>\n    </table>\n  </div>\n  \n  <ConfirmDelete\n    @visible={{this.showBillsDeleteConfirmModal}}\n    @title={{if\n      this.deleteConfirmText\n      (t 'common.Delete bills')\n      (t 'common.Delete bill')\n    }}\n    @messages={{this.deleteMessages}}\n    @confirmText={{this.deleteConfirmText}}\n    @deleteButtonText={{if\n      this.deleteConfirmText\n      (t 'common.Delete bills')\n      (t 'common.Delete bill')\n    }}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{(perform this.deleteSelectedBills)}}\n    @onCancel={{fn (mut this.showBillsDeleteConfirmModal) false}}\n  >\n    <p>{{t 'shared.estimate.This action cannot be undone'}}</p>\n  </ConfirmDelete>\n  */\n  {\n    \"id\": \"8rBz0R/o\",\n    \"block\": \"[[[41,[30,0,[\\\"allocating\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@bills\\\",\\\"@onClose\\\",\\\"@billStatus\\\"],[[30,0,[\\\"selectedBills\\\"]],[30,0,[\\\"closeAllocator\\\"]],[30,1]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[11,0],[24,0,\\\"overflow-auto h-100\\\"],[4,[38,3],[[30,0,[\\\"resetSelectionOnFilterChange\\\"]],[30,0,[\\\"filterString\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex align-items-center position-sticky bg-white z-1 p-3\\\"],[14,5,\\\"top: 0; height: 43px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"someBillsSelected\\\"]],[[[1,\\\"      \\\"],[8,[39,4],[[24,\\\"data-test-bills-bulk-actions\\\",\\\"\\\"]],[[\\\"@direction\\\",\\\"@btnClass\\\",\\\"@buttonText\\\",\\\"@onPrimaryClick\\\",\\\"@disabled\\\"],[\\\"bottom-right\\\",\\\"btn btn-sm btn-primary \\\",[28,[37,5],[\\\"common.Allocate\\\"],null],[28,[37,6],[[28,[37,7],[[30,0,[\\\"allocating\\\"]]],null],[28,[37,8],[[30,0,[\\\"allocating\\\"]]],null]],null],[28,[37,9],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"setSelectedBillsToHoldStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"components.bills-table.Mark as held\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,6],[[28,[37,7],[[30,0,[\\\"showBillsDeleteConfirmModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"table\\\"],[14,0,\\\"table position-relative align-middle\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"thead\\\"],[14,0,\\\"position-sticky\\\"],[14,5,\\\"top: 43px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showStatusColumn\\\"]],[[[1,\\\"          \\\"],[8,[39,17],[[24,\\\"colspan\\\",\\\"1\\\"],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"status\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"common.Status\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,17],[[16,\\\"colspan\\\",[30,0,[\\\"fromColumnSpan\\\"]]],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"issuer\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.From\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[39,17],[[16,\\\"colspan\\\",[30,0,[\\\"numberColumnSpan\\\"]]],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"billNumber\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.Number\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[51,[30,4]],[[[1,\\\"          \\\"],[8,[39,17],[[24,\\\"colspan\\\",\\\"1\\\"],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"reference\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"common.Purchase order\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[39,17],[[24,\\\"colspan\\\",\\\"1\\\"],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"issueDate\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"common.Issue date\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[39,17],[[24,\\\"colspan\\\",\\\"1\\\"],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"dueDate\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"common.Due date\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"allocationColumnSpan\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.Allocation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,17],[[24,\\\"colspan\\\",\\\"1\\\"],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"subtotal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,19],null,[[\\\"@onLoadMore\\\"],[[28,[37,6],[[28,[37,12],[[30,0,[\\\"loadMoreBills\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[11,\\\"tbody\\\"],[4,[38,21],[[30,5]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"billsData\\\",\\\"bills\\\"]]],null]],null],null,[[[44,[[28,[37,25],[\\\"entity.builda-price.operations.incoming.bills.bill\\\",[30,6,[\\\"id\\\"]]],null]],[[[1,\\\"            \\\"],[11,\\\"tr\\\"],[16,0,[52,[30,7],\\\"table-primary\\\"]],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"active-bill\\\",[30,7]],[16,\\\"data-test-bill-row\\\",[30,6,[\\\"id\\\"]]],[4,[38,11],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"navigateToBill\\\"]],[30,6,[\\\"id\\\"]]],null]],null],[4,[38,21],[[30,0,[\\\"scrollActiveBill\\\"]],[30,7]],null],[4,[38,3],[[30,0,[\\\"scrollActiveBill\\\"]],[30,7]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,26],[\\\"canManageBills\\\"],null],[[[41,[30,6,[\\\"newIsValid\\\"]],[[[1,\\\"                  \\\"],[11,\\\"td\\\"],[24,\\\"colspan\\\",\\\"1\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[[52,[30,0,[\\\"showCondensedStatusStripe\\\"]],[28,[37,28],[[30,0,[\\\"billStatusStripeClasses\\\"]],[30,6,[\\\"status\\\"]]],null]],\\\"\\\\n                      \\\"]]],[4,[38,11],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"toggleSelected\\\"]],[30,6]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"checked\\\",[28,[37,30],[[30,0,[\\\"selectedBills\\\"]],[30,6]],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[15,0,[29,[[52,[30,0,[\\\"showCondensedStatusStripe\\\"]],[28,[37,28],[[30,0,[\\\"billStatusStripeClasses\\\"]],[30,6,[\\\"status\\\"]]],null]],\\\"\\\\n                      \\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[41,[30,0,[\\\"showStatusColumn\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,1],[15,0,[29,[\\\"badge m-1 fs-7\\\\n                      \\\",[28,[37,28],[[30,0,[\\\"billStatusBackgroundClasses\\\"]],[30,6,[\\\"status\\\"]]],null],\\\"\\\\n                      \\\",[52,[28,[37,32],[[30,6,[\\\"status\\\"]],\\\"HELD\\\"],null],\\\"text-dark\\\"],\\\"\\\\n                      \\\",[52,[28,[37,32],[[30,6,[\\\"status\\\"]],\\\"PAID\\\"],null],\\\"text-dark\\\"],\\\"\\\\n                      \\\"]]],[12],[1,\\\"\\\\n                    \\\"],[1,[30,6,[\\\"statusLabel\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"fromColumnSpan\\\"]]],[14,\\\"data-test-bill-issuer\\\",\\\"\\\"],[12],[1,[30,6,[\\\"issuer\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"numberColumnSpan\\\"]]],[14,\\\"data-test-bill-number\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"billNumber\\\"]],[[[1,\\\"                  \\\"],[1,[30,6,[\\\"billNumber\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[30,6,[\\\"billType\\\"]],\\\"CREDIT_NOTE\\\"],null],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"badge m-1 fs-7 bg-info\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,6,[\\\"typeLabel\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,6,[\\\"hasDuplicate\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"badge m-1 fs-7 bg-danger\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"common.Duplicate\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,6,[\\\"isAcceptedButNotSyncedToAccountingPlatform\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"badge m-1 fs-7 bg-danger\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"components.bills-table.Not synced to\\\"],null]],[1,\\\"\\\\n                      \\\"],[1,[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"                  —\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,4]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"reference\\\"]],[[[1,\\\"                    \\\"],[1,[30,6,[\\\"reference\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[30,0,[\\\"getPurchaseOrderMatchingStatus\\\"]],[[30,6]],null],[[[1,\\\"                      \\\"],[10,1],[15,0,[29,[\\\"badge m-1 fs-7\\\\n                          \\\",[28,[30,0,[\\\"getPurchaseOrderMatchingStatus\\\"]],[[30,6]],null]]]],[12],[1,\\\"\\\\n                        \\\"],[8,[39,33],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"shopping-cart\\\",\\\"sm\\\"]],null],[1,\\\"\\\\n                         PO\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"                    —\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"issueDate\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,34],[[30,6,[\\\"issueDate\\\"]],[28,[37,5],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    —\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"dueDate\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,34],[[30,6,[\\\"dueDate\\\"]],[28,[37,5],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    —\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"allocationColumnSpan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,35],null,[[\\\"@allocations\\\"],[[30,6,[\\\"allocations\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,36],[[30,6,[\\\"subtotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[7]]]],[6]],[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-bills-empty\\\",\\\"\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[14,\\\"colspan\\\",\\\"12\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,5],[\\\"common.No bills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[5]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[8,[39,37],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@confirmText\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"showBillsDeleteConfirmModal\\\"]],[52,[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,5],[\\\"common.Delete bills\\\"],null],[28,[37,5],[\\\"common.Delete bill\\\"],null]],[30,0,[\\\"deleteMessages\\\"]],[30,0,[\\\"deleteConfirmText\\\"]],[52,[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,5],[\\\"common.Delete bills\\\"],null],[28,[37,5],[\\\"common.Delete bill\\\"],null]],[28,[37,5],[\\\"common.Deleting\\\"],null],[28,[37,12],[[30,0,[\\\"deleteSelectedBills\\\"]]],null],[28,[37,6],[[28,[37,7],[[30,0,[\\\"showBillsDeleteConfirmModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,2],[12],[1,[28,[35,5],[\\\"shared.estimate.This action cannot be undone\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@billStatus\\\",\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@condensed\\\",\\\"didInsert\\\",\\\"bill\\\",\\\"active\\\"],false,[\\\"if\\\",\\\"bill-item-allocator\\\",\\\"div\\\",\\\"did-update\\\",\\\"dropdown-button\\\",\\\"t\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"or\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"bills-table/th\\\",\\\"unless\\\",\\\"infinity-scroll\\\",\\\"tbody\\\",\\\"did-insert\\\",\\\"each\\\",\\\"-track-array\\\",\\\"let\\\",\\\"is-active\\\",\\\"includes-feature-flags\\\",\\\"td\\\",\\\"map-get\\\",\\\"input\\\",\\\"includes\\\",\\\"span\\\",\\\"eq\\\",\\\"fa-icon\\\",\\\"moment-format\\\",\\\"allocation-hierarchy\\\",\\\"number-format\\\",\\\"confirm-delete\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/bills-table.hbs\",\n    \"isStrictMode\": false\n  });\n  let BillsTableComponent = _exports.default = (_class = class BillsTableComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"invoicedCosts\", _descriptor5, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor6, this);\n      _initializerDefineProperty(this, \"billsData\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor8, this);\n      _initializerDefineProperty(this, \"allocating\", _descriptor9, this);\n      _initializerDefineProperty(this, \"showBillsDeleteConfirmModal\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedBills\", _descriptor1, this);\n      _initializerDefineProperty(this, \"originalFilter\", _descriptor10, this);\n      _defineProperty(this, \"loadMoreBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.billsData.loadMoreBills.perform(this.args.filter, this.args.fields, this.args.sort, this.args.pageSize);\n        }\n      }), null, \"loadMoreBills\", \"drop\"));\n      _defineProperty(this, \"deleteSelectedBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const hasOneBill = this.selectedBills.length === 1;\n          const isInvoiced = this.selectedBills.some(bill => bill.isInvoiced);\n          yield this.invoicedCosts.requestDelete.perform({\n            isInvoiced,\n            title: this.intl.t(hasOneBill ? 'services.invoiced-costs.Delete linked bill' : 'services.invoiced-costs.Delete linked bills'),\n            message: this.intl.t(hasOneBill ? 'services.invoiced-costs.billMessage' : 'services.invoiced-costs.billsMessage'),\n            deleteCb: async () => {\n              const bills = [...this.selectedBills];\n              const billIds = bills.map(bill => bill.id);\n              if (!bills.length) {\n                return this.notifications.info(this.intl.t('components.bills-table.youHaveNotSelectedAnyBillsToDelete'));\n              }\n              try {\n                await Promise.all(bills.map(async bill => {\n                  const items = bill.hasMany('items').value();\n\n                  // Instead of directly deleting just mark it as delete, remove from service data and then delete bill\n                  await bill.deleteRecord();\n                  await this.billsData.removeBill(bill);\n                  await bill.save();\n                  if (items) items.forEach(item => item.unloadRecord());\n                }));\n                this.selectedBills = [];\n                if (billIds.includes(this.router.currentRoute?.params?.bill_id)) {\n                  this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n                }\n                this.notifications.success(this.intl.t('components.bills-table.Successfully deleted bills'));\n              } finally {\n                this.showBillsDeleteConfirmModal = false;\n              }\n            }\n          });\n        }\n      }), null, \"deleteSelectedBills\", \"drop\"));\n      _defineProperty(this, \"setSelectedBillsToHoldStatus\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.selectedBills.length) {\n            return this.notifications.info(this.intl.t('components.bills-table.You have not selected any bills'));\n          }\n          const targetStatus = 'HELD';\n          const bills = [...this.selectedBills];\n          const results = yield Promise.allSettled(bills.map(bill => {\n            bill.set('status', targetStatus);\n            return bill.save();\n          }));\n          const failedUpdates = results.filter(r => r.status === 'rejected');\n          if (failedUpdates.length) {\n            this.notifications.error(this.intl.t('components.bills-table.thereAreFailedTotalBillSFailedToUpdate', {\n              failed: failedUpdates.length,\n              total: this.selectedBills.length\n            }));\n          } else {\n            this.notifications.success(this.intl.t('components.bills-table.All bills updated successfully'));\n          }\n          if (this.hasStatusFilter) {\n            results.forEach((result, index) => {\n              if (result.status === 'fulfilled') {\n                this.billsData.removeBill(bills[index]);\n              }\n            });\n          }\n          this.selectedBills = this.selectedBills.filter(bill => this.billsData.bills.includes(bill));\n        }\n      }), null, \"setSelectedBillsToHoldStatus\", \"restartable\"));\n    }\n    get someBillsSelected() {\n      return this.selectedBills.length > 0;\n    }\n    get selectedBillItems() {\n      return this.selectedBills.map(bill => bill.hasMany('items').value()).flat();\n    }\n    get deleteConfirmText() {\n      if (this.selectedBills.length > 1) return this.intl.t('components.bills-table.deleteCountBills', {\n        count: this.selectedBills.length\n      });\n      return null;\n    }\n    scrollActiveBill(element, [active]) {\n      if (!active) return;\n      element.scrollIntoView({\n        block: 'nearest',\n        inline: 'nearest'\n      });\n    }\n    get deleteMessages() {\n      if (this.deleteConfirmText) return this.intl.t('components.bills-table.Do you want to delete these bills');\n      return this.intl.t('components.bill-editor.Do you want to delete this bill');\n    }\n    get showStatusColumn() {\n      return !this.args.condensed && !this.hasStatusFilter;\n    }\n    get hasStatusFilter() {\n      return this.args.filter?.and?.some(filter => filter.field === 'status');\n    }\n    get filterString() {\n      return JSON.stringify(this.args.filter);\n    }\n    get showCondensedStatusStripe() {\n      return this.args.condensed && !this.hasStatusFilter;\n    }\n    get fromColumnSpan() {\n      return this.args.condensed ? 4 : 1;\n    }\n    get numberColumnSpan() {\n      return this.args.condensed ? 2 : 1;\n    }\n    get allocationColumnSpan() {\n      if (this.args.condensed) return 4;\n      return this.showStatusColumn ? 4 : 5;\n    }\n    get billStatusBackgroundClasses() {\n      return new Map([['DRAFT', 'bg-secondary'], ['ACCEPTED', 'bg-info'], ['HELD', 'bg-warning'], ['PAID', 'bg-success'], ['ARCHIVED', 'bg-secondary']]);\n    }\n    resetSelectionOnFilterChange() {\n      const currentFilter = this.filterString;\n      if (this.originalFilter === null) {\n        this.originalFilter = currentFilter;\n        return;\n      }\n      if (this.originalFilter !== currentFilter) {\n        this.selectedBills = [];\n        this.originalFilter = currentFilter;\n      }\n      return;\n    }\n    get billStatusStripeClasses() {\n      return new Map([['DRAFT', 'status-stripe-secondary'], ['ACCEPTED', 'status-stripe-info'], ['HELD', 'status-stripe-warning'], ['PAID', 'status-stripe-success'], ['ARCHIVED', 'status-stripe-secondary']]);\n    }\n    navigateToBill(id) {\n      this.router.transitionTo('entity.builda-price.operations.incoming.bills.bill', id);\n    }\n    toggleSelected(bill, e) {\n      e.stopPropagation();\n      e.preventDefault();\n      const i = this.selectedBills.indexOf(bill);\n      if (i < 0) {\n        this.selectedBills = [...this.selectedBills, bill];\n      } else {\n        this.selectedBills = this.selectedBills.toSpliced(i, 1);\n      }\n    }\n    closeAllocator({\n      wasCancelled = false\n    } = {}) {\n      this.allocating = false;\n      if (!wasCancelled) {\n        this.selectedBills = [];\n      }\n    }\n    getPurchaseOrderMatchingStatus(bill) {\n      const purchaseOrderDetails = bill.purchaseOrderDetails;\n      if (!purchaseOrderDetails) return '';\n      const values = Object.values(purchaseOrderDetails);\n      if (values.includes(false) || values.includes('OVER')) {\n        return 'bg-danger';\n      }\n      if (values.includes('PARTIAL')) {\n        return 'bg-warning';\n      }\n      return 'bg-success';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"invoicedCosts\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"billsData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"allocating\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"showBillsDeleteConfirmModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"selectedBills\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"scrollActiveBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"scrollActiveBill\"), _class.prototype), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"originalFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"resetSelectionOnFilterChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"resetSelectionOnFilterChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"navigateToBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"navigateToBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelected\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeAllocator\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeAllocator\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillsTableComponent);\n});","define(\"portal/components/bills-table/th\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <th ...attributes role='button' {{on 'click' this.toggleOrderBy}}>\n    {{yield}}\n  \n    {{#if this.icon}}\n      <FaIcon @icon={{this.icon}} />\n    {{/if}}\n  </th>\n  */\n  {\n    \"id\": \"pr4BuFeB\",\n    \"block\": \"[[[11,\\\"th\\\"],[17,1],[24,\\\"role\\\",\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"toggleOrderBy\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"icon\\\"]],[[[1,\\\"    \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[30,0,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"th\\\",\\\"on\\\",\\\"yield\\\",\\\"if\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/bills-table/th.hbs\",\n    \"isStrictMode\": false\n  });\n  let BillsTableThComponent = _exports.default = (_class = class BillsTableThComponent extends _component2.default {\n    get direction() {\n      const state = this.args.sort;\n      if (!state?.endsWith(this.args.key)) return false;\n      if (state.startsWith('-')) return 'desc';else return 'asc';\n    }\n    get icon() {\n      switch (this.direction) {\n        case 'asc':\n          return 'caret-up';\n        case 'desc':\n          return 'caret-down';\n        default:\n          return undefined;\n      }\n    }\n    toggleOrderBy() {\n      let newValue;\n      switch (this.direction) {\n        case 'asc':\n          newValue = `-${this.args.key}`;\n          break;\n        case 'desc':\n          newValue = undefined;\n          break;\n        default:\n          newValue = `${this.args.key}`;\n          break;\n      }\n      this.args.onOrderBy(newValue);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"toggleOrderBy\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleOrderBy\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillsTableThComponent);\n});","define(\"portal/components/bills-uploader\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"string-similarity\", \"csv-parse/browser/esm\", \"moment\", \"portal/utils/parse-currency-string\", \"portal/utils/search-filter\", \"portal/utils/placemakers-bill-csv-normalizer\", \"portal/utils/bunnings-bill-csv-normalizer\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _tracking, _service, _object, _stringSimilarity, _esm, _moment, _parseCurrencyString, _searchFilter, _placemakersBillCsvNormalizer, _bunningsBillCsvNormalizer, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _class2, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"string-similarity\",0,\"ember-concurrency\",0,\"csv-parse/browser/esm\",0,\"moment\",0,\"portal/utils/parse-currency-string\",0,\"portal/utils/search-filter\",0,\"portal/utils/placemakers-bill-csv-normalizer\",0,\"portal/utils/bunnings-bill-csv-normalizer\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @overlayClass='modal'\n    @translucentOverlay={{true}}\n    @onClose={{@onClose}}\n    @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n  >\n    <div class='modal-content' style='max-width: 95vw;'>\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t 'components.bills-uploader.Import bills'}}\n        </h5>\n      </div>\n  \n      <div class='modal-body overflow-auto'>\n        {{#if this.billFile}}\n          <div class='w-25'>\n            <label class='mb-1'>\n              {{t 'common.Contact'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <SearchSelector\n              @onSelect={{this.setContact}}\n              @onLoad={{this.loadContacts}}\n              @noDataMessage={{t 'components.bills-uploader.No contacts'}}\n              @key='contact'\n              @optionKeys={{array 'name'}}\n              @model={{this.contactChangeSet}}\n              @forceValidationVisible={{gt this.uploadBills.performCount 0}}\n            />\n          </div>\n          <p>\n            {{t 'shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument'}}\n          </p>\n          <div class='table-responsive'>\n            <table class='table table-sm table-bordered'>\n              <thead>\n                <tr>\n                  {{#each this.billFile.columnTypes as |type index|}}\n                    <th class='text-center align-top'>\n                      <PtlInput\n                        style='min-width: 85px;'\n                        @type='select'\n                        @label={{number-to-char index}}\n                        {{! the key needs to be a string }}\n                        @key={{concat index}}\n                        @options={{this.billFile.columnTypeOptions}}\n                        @model={{this.billFile.columnTypeForm}}\n                        @selectNoBlankOption={{true}}\n                        @forceValidationVisible={{gt\n                          this.uploadBills.performCount\n                          0\n                        }}\n                      />\n                    </th>\n                  {{/each}}\n                </tr>\n              </thead>\n              <tbody>\n                {{#each this.billFile.sampleRows as |columns|}}\n                  <tr>\n                    {{#each columns as |column index|}}\n                      <td\n                        class='no-wrap text-truncate\n                          {{if\n                            (eq\n                              (get this.billFile.columnTypeForm index)\n                              \"do-not-import\"\n                            )\n                            \"opacity-25\"\n                          }}'\n                        style='max-width: 200px;'\n                        title={{column}}\n                      >\n                        {{column}}\n                      </td>\n                    {{/each}}\n                  </tr>\n                {{/each}}\n              </tbody>\n            </table>\n          </div>\n  \n          <div class='d-flex justify-content-end p-2'>\n            {{#if this.uploadBills.isRunning}}\n              <button\n                type='button'\n                class='btn btn-primary ms-2'\n                disabled={{true}}\n              >\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.uploading'}}…\n              </button>\n            {{else}}\n              <button\n                class='btn btn-secondary'\n                type='button'\n                {{on 'click' this.onClear}}\n              >\n                {{t 'shared.uploader.Upload a different file'}}\n              </button>\n            {{/if}}\n          </div>\n        {{else}}\n          <DragAndDropContainer\n            @onUploadComplete={{this.onUpload}}\n            @isDragAndDropVisible={{true}}\n          >\n            <p class='text-center'>\n              {{t\n                'components.bills-uploader.Upload your CSV file to generate bills'\n              }}\n            </p>\n            <a\n              class='btn btn-link align-self-center mb-3'\n              href='/assets/example-invoices-file-329566189a769091832b514177383e26.csv'\n              download='example-invoices-file-329566189a769091832b514177383e26.csv'\n            >\n              <FaIcon @icon='download' />&nbsp;&nbsp;\n              {{t 'shared.uploader.Download example file'}}\n            </a>\n          </DragAndDropContainer>\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.isLoading}}\n          {{on 'click' @onClose}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        {{#if this.billFile}}\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' (fn (perform this.uploadBills))}}\n            disabled={{or this.uploadBills.isRunning this.saveBills.isRunning}}\n          >\n            {{#if (or this.uploadBills.isRunning this.saveBills.isRunning)}}\n              {{t 'components.bills-uploader.Importing bills'}}&hellip;\n            {{else}}\n              {{t 'components.bills-uploader.Import bills'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </div>\n  </ModalDialog>\n  \n  {{#if this.invalidProductRowIndexes}}\n    <ModalDialog\n      @onClose={{fn (mut this.invalidProductRowIndexes) ''}}\n      @containerClass='card'\n      @translucentOverlay={{true}}\n    >\n      <div class='card-body'>\n        <p>\n          {{t\n            'components.bills-uploader.theFollowingRowsInYourFileAreInvalidAndWereNotUploaded'\n          }}\n        </p>\n        <p class='products-uploader__invalid-rows-confirm-modal-row-message'>\n          {{this.invalidProductRowIndexes}}\n        </p>\n      </div>\n      <div class='card-footer'>\n        <div class='pull-right d-flex align-items-center'>\n          <button\n            class='btn btn-primary me-2'\n            type='button'\n            {{on 'click' this.skipNoneDescriptionRowsAndUpload}}\n          >\n            {{t 'components.bills-uploader.Upload valid rows anyway'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-secondary'\n            {{on 'click' (fn (mut this.invalidProductRowIndexes) '')}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.importedBills.existing.length}}\n    <ModalDialog\n      @onClose={{fn (mut this.importedBills) false}}\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'shared.notification.xOutOfYBillsWereFoundToBeDuplicates'\n            duplicates=this.importedBills.existing.length\n            total=(math\n              this.importedBills.existing.length '+' this.importedBills.new.length\n            )\n          }}\n        </p>\n  \n        <div class='invoice-editor__import-modal__table-container'>\n          <table class='data-table data-table--stretched'>\n            <tr>\n              <th>{{t 'common.Supplier'}}</th>\n              <th>{{t 'common.Bill number'}}</th>\n              <th>{{t 'common.Reference'}}</th>\n            </tr>\n            {{#each this.importedBills.existing as |bill|}}\n              <tr>\n                <td>{{bill.issuer}}</td>\n                <td>{{bill.billNumber}}</td>\n                <td>{{bill.name}}</td>\n              </tr>\n            {{/each}}\n          </table>\n        </div>\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.importedBills) false)}}\n          disabled={{this.saveBills.isRunning}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n  \n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' this.importAllBills}}\n          disabled={{this.saveBills.isRunning}}\n        >\n          {{t 'common.Import all'}}\n        </button>\n  \n        {{#if this.importedBills.new.length}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on 'click' this.importNewBillsOnly}}\n            disabled={{this.saveBills.isRunning}}\n          >\n            {{t 'components.bills-uploader.Import only new bills'}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"Gix+ALkZ\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[30,1],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-content\\\"],[14,5,\\\"max-width: 95vw;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Import bills\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body overflow-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billFile\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"w-25\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"common.Contact\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,7],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,3],[\\\"components.bills-uploader.No contacts\\\"],null],\\\"contact\\\",[28,[37,8],[\\\"name\\\"],null],[30,0,[\\\"contactChangeSet\\\"]],[28,[37,9],[[30,0,[\\\"uploadBills\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm table-bordered\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"billFile\\\",\\\"columnTypes\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center align-top\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,17],[[24,5,\\\"min-width: 85px;\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@selectNoBlankOption\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,18],[[30,3]],null],[28,[37,19],[[30,3]],null],[30,0,[\\\"billFile\\\",\\\"columnTypeOptions\\\"]],[30,0,[\\\"billFile\\\",\\\"columnTypeForm\\\"]],true,[28,[37,9],[[30,0,[\\\"uploadBills\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"billFile\\\",\\\"sampleRows\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,4]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"no-wrap text-truncate\\\\n                        \\\",[52,[28,[37,22],[[28,[37,23],[[30,0,[\\\"billFile\\\",\\\"columnTypeForm\\\"]],[30,6]],null],\\\"do-not-import\\\"],null],\\\"opacity-25\\\"]]]],[14,5,\\\"max-width: 200px;\\\"],[15,\\\"title\\\",[30,5]],[12],[1,\\\"\\\\n                      \\\"],[1,[30,5]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex justify-content-end p-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"uploadBills\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.uploading\\\"],null]],[1,\\\"…\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"onClear\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[\\\"shared.uploader.Upload a different file\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,27],null,[[\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"onUpload\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Upload your CSV file to generate bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,3],[14,0,\\\"btn btn-link align-self-center mb-3\\\"],[14,6,\\\"/assets/example-invoices-file-329566189a769091832b514177383e26.csv\\\"],[14,\\\"download\\\",\\\"example-invoices-file-329566189a769091832b514177383e26.csv\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"  \\\\n            \\\"],[1,[28,[35,3],[\\\"shared.uploader.Download example file\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billFile\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,30],[[30,0,[\\\"uploadBills\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[28,[37,31],[[28,[37,32],[[30,0,[\\\"uploadBills\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[[30,0,[\\\"uploadBills\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Importing bills\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Import bills\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invalidProductRowIndexes\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,31],[[28,[37,33],[[30,0,[\\\"invalidProductRowIndexes\\\"]]],null],\\\"\\\"],null],\\\"card\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.theFollowingRowsInYourFileAreInvalidAndWereNotUploaded\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"products-uploader__invalid-rows-confirm-modal-row-message\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"invalidProductRowIndexes\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pull-right d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"skipNoneDescriptionRowsAndUpload\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Upload valid rows anyway\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[28,[37,31],[[28,[37,33],[[30,0,[\\\"invalidProductRowIndexes\\\"]]],null],\\\"\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importedBills\\\",\\\"existing\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,31],[[28,[37,33],[[30,0,[\\\"importedBills\\\"]]],null],false],null],true,\\\"modal\\\",\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"shared.notification.xOutOfYBillsWereFoundToBeDuplicates\\\"],[[\\\"duplicates\\\",\\\"total\\\"],[[30,0,[\\\"importedBills\\\",\\\"existing\\\",\\\"length\\\"]],[28,[37,34],[[30,0,[\\\"importedBills\\\",\\\"existing\\\",\\\"length\\\"]],\\\"+\\\",[30,0,[\\\"importedBills\\\",\\\"new\\\",\\\"length\\\"]]],null]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__import-modal__table-container\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table data-table--stretched\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"common.Supplier\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"common.Bill number\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"importedBills\\\",\\\"existing\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,7,[\\\"issuer\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,7,[\\\"billNumber\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,7,[\\\"name\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[28,[37,31],[[28,[37,33],[[30,0,[\\\"importedBills\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"importAllBills\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"common.Import all\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"importedBills\\\",\\\"new\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"importNewBillsOnly\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Import only new bills\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@onClose\\\",\\\"type\\\",\\\"index\\\",\\\"columns\\\",\\\"column\\\",\\\"index\\\",\\\"bill\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h5\\\",\\\"t\\\",\\\"if\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"gt\\\",\\\"p\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"ptl-input\\\",\\\"number-to-char\\\",\\\"concat\\\",\\\"tbody\\\",\\\"td\\\",\\\"eq\\\",\\\"get\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"drag-and-drop-container\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"or\\\",\\\"fn\\\",\\\"perform\\\",\\\"mut\\\",\\\"math\\\"]]\",\n    \"moduleName\": \"portal/components/bills-uploader.hbs\",\n    \"isStrictMode\": false\n  });\n  const normalizeColumnValue = (value = '') => {\n    return value.toLowerCase().replace(/^\\uFEFF|^ï»¿/, '').trim();\n  };\n\n  // why this library kept this API when making a browser build is beyond me\n  const parseCsvFromBase64 = base64 => {\n    const records = [];\n    const parser = (0, _esm.parse)({\n      bom: true,\n      skip_empty_lines: true,\n      relax_column_count: true,\n      trim: true\n    });\n    parser.on('readable', () => {\n      let record;\n      while ((record = parser.read()) !== null) {\n        records.push(record);\n      }\n    });\n    const csvText = atob(base64);\n    parser.write(csvText);\n    parser.end();\n    return records;\n  };\n  class ParserError extends Error {}\n  const getValidationMessages = (errors = []) => {\n    return errors.flatMap(error => {\n      const validation = error?.validation ?? error?.value?.validation;\n      if (Array.isArray(validation)) return validation;\n      if (validation) return [validation];\n      return [];\n    }).filter(Boolean);\n  };\n  const TrimValue = value => String(value || '').trim();\n  let BillsFile = (_class = class BillsFile {\n    get sampleRows() {\n      if (!this.csv) return null;\n      return this.csv.slice(0, 10);\n    }\n    get columnsLength() {\n      return this.csv[0].length;\n    }\n    constructor(csv, intl) {\n      _defineProperty(this, \"columnTypeOptions\", void 0);\n      _initializerDefineProperty(this, \"columnTypes\", _descriptor, this);\n      _initializerDefineProperty(this, \"columnTypeForm\", _descriptor2, this);\n      _initializerDefineProperty(this, \"csv\", _descriptor3, this);\n      this.columnTypeOptions = [{\n        label: '—',\n        value: 'do-not-import',\n        matches: [],\n        type: undefined\n      }, {\n        label: intl.t('common.Invoice number'),\n        value: 'invoiceNumber',\n        matches: ['invoice number', 'invoice no', 'invoice reference', 'invoicenumber', 'document number'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Issue date'),\n        value: 'issueDate',\n        matches: ['issue date', 'issue', 'issued', 'date', 'created date', 'invoicedate', 'invoice date', 'document date'],\n        type: 'date'\n      }, {\n        label: intl.t('common.Due date'),\n        value: 'dueDate',\n        matches: ['due date', 'due', 'duedate', 'delivery date'],\n        type: 'date'\n      }, {\n        label: intl.t('common.Customer reference'),\n        value: 'reference',\n        matches: ['customer reference', 'reference', 'order reference', 'order number', 'your ref', 'your ref.', 'customer order number', 'contract number', 'job'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Code'),\n        value: 'code',\n        matches: ['sku', 'product code', 'item code', 'inventoryitemcode', 'inventory item code'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Description'),\n        value: 'description',\n        matches: ['description', 'item name', 'line', 'product title', 'product description'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Unit price'),\n        value: 'unitPrice',\n        matches: ['unit price', 'price', 'unit rate', 'unitamount', 'unit amount', 'unit price excluding gst', 'net', 'nett value'],\n        type: 'currency'\n      }, {\n        label: intl.t('common.Quantity'),\n        value: 'quantity',\n        matches: ['quantity', 'qty', 'qty ordered', 'qty supplied', 'quantity delivered', 'quantity ordered', 'quantity supplied'],\n        type: 'number'\n      }];\n      this.csv = csv;\n      this.columnTypes = this._findLikelyColumnTypes();\n      this.columnTypeForm = this._generateColumnTypeForm(intl);\n    }\n    _generateColumnTypeForm(intl) {\n      const validator = ({\n        key: _key,\n        newValue,\n        oldValue,\n        changes,\n        content\n      }) => {\n        const current = {\n          ...content,\n          ...changes\n        };\n        const values = Object.values(current);\n        const value = newValue || oldValue;\n        // you need at least one of each of these to progress\n        const requiredValues = ['invoiceNumber'];\n        if (\n        // if you have chosen not to import this column\n        value === 'do-not-import' &&\n        // and there are still required values left\n        requiredValues.some(rv => !values.includes(rv))) return 'Invoice number is required';\n\n        // no import is always valid\n        if (value === 'do-not-import') return true;\n\n        // you can't have duplicate selections\n        if (values.filter(v => v === value).length > 1) return intl.t('validation.You can only select this column once');\n        return true;\n      };\n      const data = {\n        save: () => {\n          for (let i = 0; i < this.columnsLength; i++) {\n            this.columnTypes[i] = this.columnTypeForm.get(String(i));\n          }\n        }\n      };\n      const validatorMap = {};\n      for (let i = 0; i < this.columnsLength; i++) {\n        data[i] = this.columnTypes[i];\n        validatorMap[i] = validator;\n      }\n      return (0, _emberChangeset.Changeset)(data, validator, validatorMap);\n    }\n    _findLikelyColumnTypes() {\n      // TODO if there isn't a header row, we could try and assume from the data type of the columns\n      const likenessThreshold = 0.8;\n      // for each column iterate over each column type to find the closest matching column type\n      const results = [];\n      for (let i = 0; i < this.columnsLength; i++) {\n        const header = normalizeColumnValue(this.csv[0]?.[i]);\n        const winners = this.columnTypeOptions.map(option => {\n          if (!option.matches.length || !header) return {\n            option,\n            rating: 0\n          };\n          const normalizedMatches = option.matches.map(normalizeColumnValue);\n          const score = (0, _stringSimilarity.findBestMatch)(header, normalizedMatches);\n          return {\n            option,\n            rating: score.bestMatch.rating || 0\n          };\n        });\n\n        // find best matching column type\n        const bestMatch = winners.sort((a, b) => b.rating - a.rating).shift();\n\n        // we now have the closest matching column type for this column\n        results.push(bestMatch?.rating >= likenessThreshold ? bestMatch.option.value : 'do-not-import');\n\n        // in the future we could also try evaluate the columns against the data type\n      }\n      return results;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"columnTypes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"columnTypeForm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"csv\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor7, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor8, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor9, this);\n      _defineProperty(this, \"contacts\", []);\n      _defineProperty(this, \"contactsPage\", void 0);\n      _defineProperty(this, \"contactsSearchTerm\", void 0);\n      _initializerDefineProperty(this, \"billFileItems\", _descriptor0, this);\n      _initializerDefineProperty(this, \"billFile\", _descriptor1, this);\n      _initializerDefineProperty(this, \"importedBills\", _descriptor10, this);\n      _initializerDefineProperty(this, \"invalidProductRowIndexes\", _descriptor11, this);\n      _initializerDefineProperty(this, \"contactChangeSet\", _descriptor12, this);\n      _defineProperty(this, \"contactValidator\", ({\n        key,\n        newValue\n      }) => {\n        if (key === 'contact') {\n          return Boolean(newValue) || this.intl.t('components.bills-uploader.Please provide a contact');\n        }\n      });\n      _defineProperty(this, \"parseCsvFromAttachment\", attachment => {\n        // TODO windows does some funky shit with MIME types\n\n        if (attachment.fileType !== 'text/csv') throw new ParserError(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n        const csv = parseCsvFromBase64(attachment.data);\n        return csv;\n      });\n      _defineProperty(this, \"loadContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.contactsSearchTerm) {\n              this.contactsPage = undefined;\n              this.contacts = [];\n              this.contactsSearchTerm = searchTerm;\n            }\n            const contactFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) contactFilter.and.push((0, _searchFilter.default)(['name'], searchTerm));\n            const nextPageNumber = (this.contactsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('contact', {\n              filter: contactFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.contactsPage = nextPage.meta;\n            this.contacts = [...this.contacts, ...nextPage.toArray()];\n            return this.contacts;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bills-uploader.somethingWentWrongLoadingMoreContacts'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadContacts\", null));\n      _defineProperty(this, \"uploadBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (_e, skipNoneDescriptionRows = false) {\n          this.billFile.columnTypeForm.validate();\n\n          // this is not throwing error, so i have specify key\n          this.contactChangeSet.validate('contact');\n          if (this.billFile.columnTypeForm.isInvalid || this.contactChangeSet.isInvalid) {\n            const validationMessages = [...getValidationMessages(this.billFile.columnTypeForm.errors), ...getValidationMessages(this.contactChangeSet.errors)];\n            this.notifications.warning(validationMessages[0] || this.intl.t('shared.uploader.pleaseCompleteTheFormBeforeContinuing'));\n            return;\n          }\n          try {\n            yield this.billFile.columnTypeForm.save();\n            const billsMap = new Map();\n            const noDescriptionIndexes = [];\n            const contact = this.contactChangeSet.get('contact');\n            this.billFile.csv.forEach((columns, rowIndex) => {\n              // Skip the first row (headers)\n              if (rowIndex === 0) return;\n              const getColumn = label => {\n                const colIndex = this.billFile.columnTypes.findIndex(colType => colType === label);\n                return columns[colIndex]?.trim() || null;\n              };\n              const invoiceNumber = getColumn('invoiceNumber');\n              const reference = getColumn('reference');\n              const description = getColumn('description') || reference || invoiceNumber;\n              if (skipNoneDescriptionRows && !description) return;\n              if (!description) noDescriptionIndexes.push(rowIndex + 1);\n              const item = {\n                description,\n                productCode: getColumn('code'),\n                unitPrice: (0, _parseCurrencyString.default)(getColumn('unitPrice')),\n                quantity: parseFloat(getColumn('quantity')) || 1\n              };\n              if (Number(item.unitPrice) < 0) {\n                item.quantity = item.quantity * -1;\n                item.unitPrice = Math.abs(item.unitPrice);\n              }\n              const rawIssueDate = getColumn('issueDate');\n              const parsedIssueDate = rawIssueDate ? (0, _moment.default)(rawIssueDate, [_moment.default.ISO_8601, 'YYYY-MM-DD', 'DD/MM/YYYY', 'DD/MM/YY', 'D/M/YYYY', 'D/M/YY', 'DD-MM-YYYY', 'DD-MM-YY', 'D-M-YYYY', 'D-M-YY', 'MM/DD/YYYY', 'M/D/YYYY', 'MM/DD/YY', 'M/D/YY'], true) : null;\n              const issueDate = parsedIssueDate?.isValid() ? parsedIssueDate.toDate() : new Date();\n              const rawDueDate = getColumn('dueDate');\n              const parsedDueDate = rawDueDate ? (0, _moment.default)(rawDueDate, [_moment.default.ISO_8601, 'YYYY-MM-DD', 'DD/MM/YYYY', 'DD/MM/YY', 'D/M/YYYY', 'D/M/YY', 'DD-MM-YYYY', 'DD-MM-YY', 'D-M-YYYY', 'D-M-YY', 'MM/DD/YYYY', 'M/D/YYYY', 'MM/DD/YY', 'M/D/YY'], true) : null;\n              const dueDate = parsedDueDate?.isValid() ? parsedDueDate.toDate() : contact?.getBillDueDate(issueDate) || issueDate;\n              if (!billsMap.has(invoiceNumber)) {\n                billsMap.set(invoiceNumber, {\n                  billNumber: invoiceNumber,\n                  entity: this.sessionData.entity,\n                  status: 'DRAFT',\n                  allocationType: contact?.defaultBillAllocationType || 'MATERIALS',\n                  issuer: contact?.name,\n                  issuerContact: contact,\n                  reference,\n                  source: 'web:generic-csv',\n                  issueDate,\n                  dueDate,\n                  items: []\n                });\n              }\n              billsMap.get(invoiceNumber).items.push(item);\n            });\n            if (noDescriptionIndexes.length && !skipNoneDescriptionRows) {\n              this.invalidProductRowIndexes = `${noDescriptionIndexes.join(', ')}`;\n              this.notifications.warning(this.intl.t('components.bills-uploader.rowsAreMissingADescriptionAndWereNotUploaded', {\n                rows: this.invalidProductRowIndexes\n              }));\n              return;\n            }\n            const bills = Array.from(billsMap.values());\n            const importedBills = yield this.findExistingBills(bills);\n            if (importedBills.existing.length) {\n              this.importedBills = importedBills;\n              return;\n            }\n            yield this.saveBills.perform(bills);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bills-uploader.Something went wrong while saving bills'),\n              error\n            });\n          }\n        }\n      }), null, \"uploadBills\", null));\n      _defineProperty(this, \"saveBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (bills) {\n          try {\n            const failedBills = [];\n            yield Promise.all(bills.map(async billData => {\n              try {\n                const {\n                  items,\n                  ...billAttrs\n                } = billData;\n                const subtotal = items.reduce((total, item) => total + item.quantity * item.unitPrice, 0);\n                const bill = await this.store.createRecord('bill', {\n                  ...billAttrs,\n                  ...(subtotal < 0 && {\n                    billType: 'CREDIT_NOTE'\n                  }),\n                  entity: this.sessionData.entity\n                }).save();\n                await Promise.all(items.map(async item => {\n                  await this.store.createRecord('bill-item', {\n                    ...item,\n                    entity: this.sessionData.entity,\n                    bill\n                  }).save();\n                }));\n              } catch (error) {\n                failedBills.push({\n                  bill: billData,\n                  error\n                });\n              }\n            }));\n            if (this.args.onUploadBillsCSV) {\n              yield this.args.onUploadBillsCSV();\n            }\n            const total = bills.length;\n            const failed = failedBills.length;\n            const success = total - failed;\n            if (!success && failed) {\n              this.notifications.error({\n                message: this.intl.t('components.bills-uploader.uploadFailedForCountFiles', {\n                  count: failed\n                }),\n                error: failedBills[0]?.error\n              });\n              return;\n            }\n            this.importedBills = null;\n            this.notifications.success({\n              message: this.intl.t('components.bills-uploader.uploadSummarySuccessSucceededFailed', {\n                success,\n                failed\n              }),\n              clearDuration: 5000\n            });\n            this.args.onClose();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bills-uploader.Something went wrong while saving bills'),\n              error\n            });\n          }\n        }\n      }), null, \"saveBills\", null));\n    }\n    setContact(value) {\n      this.contactChangeSet.set('contact', value);\n    }\n    onClear() {\n      this.billFile = null;\n      this.billFileItems = null;\n      this.importedBills = null;\n      this.invalidProductRowIndexes = '';\n    }\n    skipNoneDescriptionRowsAndUpload() {\n      this.invalidProductRowIndexes = '';\n      this.uploadBills.perform(undefined, true);\n    }\n    onUpload(e) {\n      try {\n        if (!e.attachments.length) {\n          this.notifications.warning(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n          return;\n        }\n        if (e.attachments.length > 1) this.notifications.warning(this.intl.t('shared.uploader.Please upload one file at a time'));\n        const attachment = e.attachments[0];\n        const parsedCsv = this.parseCsvFromAttachment(attachment);\n        let csv = parsedCsv;\n        if ((0, _placemakersBillCsvNormalizer.isPlaceMakersBillCsv)(csv)) csv = (0, _placemakersBillCsvNormalizer.default)(csv);else if ((0, _bunningsBillCsvNormalizer.isBunningsBillCsv)(csv)) csv = (0, _bunningsBillCsvNormalizer.default)(csv);\n        this.billFile = new BillsFile(csv, this.intl);\n      } catch (error) {\n        if (error instanceof ParserError) {\n          this.notifications.warning(error.message);\n          return;\n        }\n        this.notifications.error({\n          message: this.intl.t('shared.uploader.Something went wrong uploading the file'),\n          error\n        });\n      }\n    }\n    async findExistingBills(bills) {\n      const entityId = this.sessionData.entity.id;\n      const uniqueBillNumbers = Array.from(new Set((bills || []).map(bill => bill.billNumber).filter(Boolean)));\n      let existingBills = this.store.peekAll('bill').toArray().filter(bill => bill.belongsTo('entity').id() === entityId);\n      if (uniqueBillNumbers.length) {\n        try {\n          existingBills = await this.store.query('bill', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: entityId\n              }, {\n                field: 'billNumber',\n                op: 'IN',\n                value: uniqueBillNumbers\n              }]\n            },\n            sort: 'issuer',\n            fields: {\n              bills: '_meta.hasDuplicate'\n            }\n          }).then(res => res.toArray ? res.toArray() : res);\n        } catch (_e) {\n          // ignore and use anything already loaded in the store\n        }\n      }\n      return bills.reduce((grouped, bill) => {\n        const billNumber = TrimValue(bill.billNumber);\n        const issuer = TrimValue(bill.issuer);\n        const billIsExisting = existingBills.find(existingBill => TrimValue(existingBill.billNumber) === billNumber && TrimValue(existingBill.issuer) === issuer);\n        if (billIsExisting) grouped.existing.push(bill);else grouped.new.push(bill);\n        return grouped;\n      }, {\n        new: [],\n        existing: [],\n        bills\n      });\n    }\n    importNewBillsOnly() {\n      this.saveBills.perform(this.importedBills?.new || []);\n    }\n    importAllBills() {\n      this.saveBills.perform(this.importedBills?.bills || []);\n    }\n  }, _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"billFileItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"billFile\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"importedBills\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"invalidProductRowIndexes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"contactChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _emberChangeset.Changeset)({\n        contact: null\n      }, this.contactValidator.bind(this));\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setContact\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setContact\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClear\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClear\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"skipNoneDescriptionRowsAndUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"skipNoneDescriptionRowsAndUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"importNewBillsOnly\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"importNewBillsOnly\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"importAllBills\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"importAllBills\"), _class2.prototype), _class2));\n});","define(\"portal/components/c3-chart\", [\"exports\", \"ember-c3/components/c3-chart\"], function (_exports, _c3Chart) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _c3Chart.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-c3/components/c3-chart\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/calculation-breakdown\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ul class='steps'>\n    {{#each this.steps as |step|}}\n      {{#if (eq step.type 'operator')}}\n        <li class='operator'>{{step.char}}</li>\n      {{/if}}\n  \n      {{#if (eq step.type 'input')}}\n        <li class='input'>\n          <div class='name'>{{step.name}}</div>\n          {{#if (or this.result (eq this.result 0))}}\n            <div class='value'>\n              {{number-format step.value maximumFractionDigits=2 dashZero=false}}\n            </div>\n          {{/if}}\n        </li>\n      {{/if}}\n  \n      {{#if (eq step.type 'number')}}\n        <li class='number'>{{step.value}}</li>\n      {{/if}}\n    {{/each}}\n  \n    <li class='operator'>=</li>\n  \n    <li class='input'>\n      <div class='name'>{{t 'common.Result'}}</div>\n      {{#if (or this.result (eq this.result 0))}}\n        <div class='value'>\n          {{number-format\n            this.result\n            style=this.format\n            dashZero=true\n            maximumFractionDigits=2\n          }}\n        </div>\n      {{/if}}\n    </li>\n  </ul>\n  */\n  {\n    \"id\": \"EuvKld4J\",\n    \"block\": \"[[[10,\\\"ul\\\"],[14,0,\\\"steps\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,0,[\\\"steps\\\"]]],null]],null],null,[[[41,[28,[37,4],[[30,1,[\\\"type\\\"]],\\\"operator\\\"],null],[[[1,\\\"      \\\"],[10,\\\"li\\\"],[14,0,\\\"operator\\\"],[12],[1,[30,1,[\\\"char\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,1,[\\\"type\\\"]],\\\"input\\\"],null],[[[1,\\\"      \\\"],[10,\\\"li\\\"],[14,0,\\\"input\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"name\\\"],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"result\\\"]],[28,[37,4],[[30,0,[\\\"result\\\"]],0],null]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"value\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[[30,1,[\\\"value\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,false]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,1,[\\\"type\\\"]],\\\"number\\\"],null],[[[1,\\\"      \\\"],[10,\\\"li\\\"],[14,0,\\\"number\\\"],[12],[1,[30,1,[\\\"value\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]],null],[1,\\\"\\\\n  \\\"],[10,\\\"li\\\"],[14,0,\\\"operator\\\"],[12],[1,\\\"=\\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"li\\\"],[14,0,\\\"input\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"name\\\"],[12],[1,[28,[35,9],[\\\"common.Result\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"result\\\"]],[28,[37,4],[[30,0,[\\\"result\\\"]],0],null]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"value\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[[30,0,[\\\"result\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[[30,0,[\\\"format\\\"]],true,2]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"step\\\"],false,[\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"eq\\\",\\\"li\\\",\\\"div\\\",\\\"or\\\",\\\"number-format\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/calculation-breakdown.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['calculation-breakdown'],\n    steps: (0, _object.computed)('calc', 'data', 'inputs', function () {\n      const calc = (0, _object.get)(this, 'calc');\n      const inputs = (0, _object.get)(this, 'inputs') || {};\n      const steps = [];\n      if (!calc) {\n        return [];\n      }\n\n      /* eslint-disable quote-props */\n      const chars = {\n        'LEFT-BRACKET': '(',\n        'RIGHT-BRACKET': ')',\n        PLUS: '+',\n        MINUS: '\\u2212',\n        MULTIPLY: '\\u00D7',\n        DIV: '/'\n      };\n      /* eslint-enable quote-props */\n\n      calc.forEach(step => {\n        if (step.operator) {\n          steps.pushObject({\n            type: 'operator',\n            char: (0, _object.get)(chars, step.operator)\n          });\n        } else if (step.name) {\n          steps.pushObject({\n            type: 'input',\n            name: step.name,\n            value: (0, _object.get)(inputs, step.input)\n          });\n        } else if (step.number) {\n          steps.pushObject({\n            type: 'number',\n            value: (0, _object.get)(step, 'number')\n          });\n        }\n      });\n      return steps;\n    })\n  }));\n});","define(\"portal/components/charts/data-table\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/helpers/format-number\", \"moment\", \"@ember/template-factory\"], function (_exports, _component, _object, _formatNumber, _moment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"portal/helpers/format-number\",0,\"moment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.data as |row|}}\n    <tr>\n      <td>{{get row 0}}</td>\n      <td class='text-right'>{{get row 1}}</td>\n    </tr>\n  {{/each}}\n  */\n  {\n    \"id\": \"BPUPrTnc\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"data\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,4],[[30,1],0],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[[30,1],1],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null]],[\\\"row\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"td\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/components/charts/data-table.hbs\",\n    \"isStrictMode\": false\n  });\n\n  //import layout from '../../templates/components/charts/data-table';\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    // layout,\n\n    classNames: ['chart', 'chart--data-table', 'data-table'],\n    tagName: 'table',\n    data: (0, _object.computed)('metrics', 'period.{start,type}', function () {\n      const metrics = (0, _object.get)(this, 'metrics');\n      const date = (0, _moment.default)((0, _object.get)(this, 'period.start'), 'YYYY-MM').endOf('month').toDate();\n      const periodType = (0, _object.get)(this, 'period.type');\n      const table = [];\n      metrics.forEach(metric => {\n        const format = (0, _object.get)(metric, 'meta.format');\n        const series = (0, _object.get)(metric, 'series') || [];\n        const periods = (0, _object.get)(series.objectAt(0) || [], 'periods') || [];\n        const period = periods.find(p => p.date === date.toISOString());\n        let value = period ? (0, _object.get)(period, `periodTypes.${periodType}.value`) : null;\n        if (value != null) {\n          value = (0, _formatNumber.formatNumber)([format, value]);\n        } else if (typeof value === 'undefined') {\n          value = null; // null not undefined\n        }\n        table.push([(0, _object.get)(metric, 'meta.name'), value]);\n      });\n      return table;\n    })\n  }));\n});","define(\"portal/components/charts/gauge-chart\", [\"exports\", \"@ember/utils\", \"@ember/debug\", \"@ember/object\", \"ember-c3/components/c3-chart\", \"portal/helpers/format-number\"], function (_exports, _utils, _debug, _object, _c3Chart, _formatNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/debug\",0,\"@ember/object\",0,\"ember-c3/components/c3-chart\",0,\"portal/helpers/format-number\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _c3Chart.default.extend({\n    classNames: ['chart', 'chart--gauge'],\n    reverseColors: false,\n    min: 0,\n    max: 1,\n    label: '% of target',\n    data: (0, _object.computed)('metrics', 'period.type', 'target', function () {\n      const metrics = (0, _object.get)(this, 'metrics');\n      const target = (0, _object.get)(this, 'target');\n      const periodType = (0, _object.get)(this, 'period.type');\n      const columns = [];\n      if (!metrics || (0, _utils.isEmpty)(metrics)) {\n        (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 '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) taskMenu.items.progress = {\n            separator: true,\n            text: this.intl.t('entity.builda-price.scheduling.timeline.Set progress'),\n            icon: 'fa fa-percent',\n            onItem({\n              taskRecord\n            }) {\n              window.open(_this.router.urlFor('entity.builda-price.projects.project.progress', taskRecord.data.project), '_blank');\n            }\n          };\n          if (this.model.user.last.value?.language?.toLowerCase().startsWith('zh')) {\n            _gantt.LocaleManager.applyLocale('ZhCN', _ganttLocaleZhCn.default);\n          } else {\n            _gantt.LocaleManager.applyLocale('En', {\n              DateHelper: {\n                locale: 53 // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry\n              },\n              ProjectLines: {\n                'Project Start': 'Start Date',\n                'Project End': 'End Date'\n              }\n            });\n          }\n          (0, _runloop.next)(() => {\n            this.ganttChart = new _gantt.Gantt({\n              smoothZoom: true,\n              visibleDate: {\n                date: new Date(),\n                block: 'center'\n              },\n              appendTo: 'gantt-chart-container',\n              scrollTaskIntoViewOnCellClick: {\n                block: 'start',\n                animate: true,\n                highlight: true\n              },\n              columns,\n              project: {\n                autoLoad: true,\n                autoSync: false,\n                trackProjectSettings: false,\n                listeners: {\n                  loadStart: () => this.ganttIsLoading = true,\n                  load: () => this.ganttIsLoading = false,\n                  loadFail: () => this.ganttIsLoading = false,\n                  loadCanceled: () => this.ganttIsLoading = false\n                },\n                stm: {\n                  autoRecord: true,\n                  listeners: {\n                    recordingstop: ({\n                      stm\n                    }) => {\n                      this.redoCount = stm.length - stm.position;\n                      this.undoCount = stm.position;\n                    },\n                    restoringstop: ({\n                      stm\n                    }) => {\n                      this.redoCount = stm.length - stm.position;\n                      this.undoCount = stm.position;\n                    },\n                    queueReset: () => {\n                      this.redoCount = 0;\n                      this.undoCount = 0;\n                    }\n                  }\n                },\n                resetUndoRedoQueuesAfterLoad: true,\n                silenceInitialCommit: false,\n                // https://bryntum.com/products/schedulerpro/docs/api/Scheduler/model/ProjectModel#config-silenceInitialCommit\n                autoCalculatePercentDoneForParentTasks: false,\n                transport: {\n                  load: {\n                    url: `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/gantt-chart/get-data`,\n                    method: 'GET',\n                    mode: 'cors',\n                    cache: 'no-cache',\n                    credentials: 'same-origin',\n                    referrerPolicy: 'no-referrer',\n                    params: {\n                      subjectEntityId: this.sessionData.entity.id,\n                      entityIds: [this.sessionData.entity.id],\n                      projectIds\n                    },\n                    headers: {\n                      'Content-Type': 'application/json',\n                      Authorization: `Bearer ${this.session.data.authenticated.access_token}`\n                    }\n                  },\n                  sync: {\n                    url: `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/gantt-chart/sync-data`,\n                    method: 'POST',\n                    mode: 'cors',\n                    cache: 'no-cache',\n                    credentials: 'same-origin',\n                    referrerPolicy: 'no-referrer',\n                    params: {\n                      subjectEntityId: this.sessionData.entity.id\n                    },\n                    headers: {\n                      'Content-Type': 'application/json',\n                      Authorization: `Bearer ${this.session.data.authenticated.access_token}`\n                    }\n                  }\n                }\n              },\n              /* start feature flags */\n              fillTicks: this.ganttFillTicksEnabled,\n              subGridConfigs: {\n                locked: {\n                  collapsed: this.ganttTableCollapsed && !this.ganttSubGridConfigsEnabled\n                },\n                normal: {\n                  collapsed: this.ganttSubGridConfigsEnabled\n                }\n              },\n              listeners: {\n                subGridCollapse: event => this.syncSubGridSetting(event, true),\n                subGridExpand: event => this.syncSubGridSetting(event, false)\n              },\n              showTaskColorPickers: true,\n              features: {\n                filter: true,\n                cellEdit: {\n                  addNewAtEnd: false // https://bryntum.com/products/grid/docs/#Grid/feature/CellEdit#config-addNewAtEnd\n                },\n                dependencyEdit: true,\n                // enable double clicking of dependency to edit to enable or disable dependencies\n                dependencies: {\n                  disabled: !this.ganttDependenciesEnabled\n                },\n                labels: {\n                  disabled: !this.ganttLabelsEnabled,\n                  left: {\n                    field: 'name'\n                  }\n                },\n                criticalPaths: {\n                  disabled: !this.ganttCriticalPathsEnabled\n                },\n                nonWorkingTime: {\n                  disabled: !this.ganttNonWorkingTimeEnabled\n                },\n                columnLines: {\n                  disabled: !this.ganttColumnLinesEnabled\n                },\n                rollups: {\n                  disabled: !this.ganttRollupsEnabled\n                },\n                progressLine: {\n                  disabled: !this.ganttProgressLineEnabled\n                },\n                parentArea: {\n                  disabled: !this.ganttParentAreaEnabled\n                },\n                /* start custom feature config */\n                timeRanges: {\n                  showCurrentTimeLine: {\n                    name: 'Today',\n                    cls: 'fa fa-flag'\n                  }\n                },\n                projectLines: {\n                  'Project Start': 'start date',\n                  'Project End': 'end date'\n                },\n                percentBar: {\n                  allowResize: false\n                },\n                rowReorder: false,\n                pdfExport: {\n                  exportDialog: {\n                    items: {\n                      orientationField: {\n                        value: 'landscape'\n                      },\n                      rowsRangeField: {\n                        hidden: true\n                      },\n                      scheduleRangeField: {\n                        hidden: true\n                      }\n                    }\n                  },\n                  exportServer: _environment.default.urls.ganttExportServer,\n                  clientURL: window.location.origin,\n                  translateURLsToAbsolute: window.location.origin,\n                  sendAsBinary: true\n                  // Docker run locally\n                  // translateURLsToAbsolute: 'http://192.168.210.XX:4200/',\n                },\n                taskMenu,\n                taskEdit: {\n                  items: {\n                    generalTab: {\n                      items: {\n                        percentDone: {\n                          readOnly: true\n                        },\n                        startDate: {\n                          format: this.intl.t('date.slashDayFirst')\n                        },\n                        endDate: {\n                          format: this.intl.t('date.slashDayFirst')\n                        },\n                        effort: {\n                          readOnly: true\n                        }\n                      }\n                    },\n                    resourcesTab: {\n                      items: {\n                        toolbar: {\n                          items: {\n                            add: {\n                              disabled: !canManageUsersAndWorkers\n                            },\n                            remove: {\n                              disabled: !canManageUsersAndWorkers\n                            }\n                          }\n                        }\n                      }\n                    },\n                    advancedTab: {\n                      items: {\n                        constraintDateField: {\n                          format: this.intl.t('date.slashDayFirst')\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            });\n            this.ganttChart.project.stm.enable();\n          });\n        }\n      }), {\n        keepLatest: true\n      }, \"initializeGanttChart\", null));\n    }\n    get projectsById() {\n      if (!this.model.projects.last.value) return {};\n      return this.model.projects.last.value.reduce((projects, p) => ({\n        ...projects,\n        [p.id]: p\n      }), {});\n    }\n    get selectedProjects() {\n      if (!this.model.projects.last.value) return [];\n      const projectIds = this.selected_projects?.split(',') || [];\n      const projects = [];\n      projectIds.forEach(projectId => {\n        const project = this.projectsById[projectId];\n        if (project) projects.push(project);\n      });\n      return projects;\n    }\n    set selectedProjects(projects = []) {\n      if (!projects.length) {\n        (0, _object.set)(this, 'selected_projects', null);\n        return;\n      }\n      const projectIds = projects.map(p => p.id).join(',');\n      (0, _object.set)(this, 'selected_projects', projectIds);\n    }\n    get isLoading() {\n      return this.model.projects.isRunning || this.model.user.isRunning;\n    }\n    get projectIsSetting() {\n      return this.onSetProjects.isRunning || this.onSyncGantt.isRunning || this.ganttIsLoading;\n    }\n    get ganttChartIsVisible() {\n      return this.selectedProjects.length > 0;\n    }\n    get manageableProjects() {\n      // TODO this is the wrong permission probably\n      return this.selectedProjects?.filter(p => this.newFeatureFlags.includesSomeFeatureFlags(p, 'canManageTasks')) || [];\n    }\n    get canUseImportAndManage() {\n      return this.manageableProjects.length > 0;\n    }\n    get ganttFillTicksEnabled() {\n      return this._ganttFillTicksEnabled;\n    }\n    set ganttFillTicksEnabled(value) {\n      this._ganttFillTicksEnabled = value;\n      this.persistedSettings.set('ganttFillTicksEnabled', value);\n      this.ganttChart.fillTicks = value;\n    }\n    get ganttSubGridConfigsEnabled() {\n      return this._ganttSubGridConfigsEnabled;\n    }\n    set ganttSubGridConfigsEnabled(value) {\n      this._ganttSubGridConfigsEnabled = value;\n      this.persistedSettings.set('ganttSubGridConfigsEnabled', value);\n      this.ganttChart.subGrids.normal.collapsed = value;\n\n      // the table and the schedule can't both be hidden\n      if (value && this.ganttTableCollapsed) this.ganttTableCollapsed = false;\n    }\n    get ganttTableCollapsed() {\n      return this._ganttTableCollapsed;\n    }\n    set ganttTableCollapsed(value) {\n      this._ganttTableCollapsed = value;\n      this.persistedSettings.set('ganttTableCollapsed', value);\n      this.ganttChart.subGrids.locked.collapsed = value;\n      if (value && this.ganttSubGridConfigsEnabled) this.ganttSubGridConfigsEnabled = false;\n    }\n    get ganttDependenciesEnabled() {\n      return this._ganttDependenciesEnabled;\n    }\n    set ganttDependenciesEnabled(value) {\n      this._ganttDependenciesEnabled = value;\n      this.persistedSettings.set('ganttDependenciesEnabled', value);\n      this.ganttChart.features.dependencies.disabled = !value;\n    }\n    get ganttLabelsEnabled() {\n      return this._ganttLabelsEnabled;\n    }\n    set ganttLabelsEnabled(value) {\n      this._ganttLabelsEnabled = value;\n      this.persistedSettings.set('ganttLabelsEnabled', value);\n      this.ganttChart.features.labels.disabled = !value;\n    }\n    get ganttCriticalPathsEnabled() {\n      return this._ganttCriticalPathsEnabled;\n    }\n    set ganttCriticalPathsEnabled(value) {\n      this._ganttCriticalPathsEnabled = value;\n      this.persistedSettings.set('ganttCriticalPathsEnabled', value);\n      this.ganttChart.features.criticalPaths.disabled = !value;\n    }\n    get ganttNonWorkingTimeEnabled() {\n      return this._ganttNonWorkingTimeEnabled;\n    }\n    set ganttNonWorkingTimeEnabled(value) {\n      this._ganttNonWorkingTimeEnabled = value;\n      this.persistedSettings.set('ganttNonWorkingTimeEnabled', value);\n      this.ganttChart.features.nonWorkingTime.disabled = !value;\n    }\n    get ganttColumnLinesEnabled() {\n      return this._ganttColumnLinesEnabled;\n    }\n    set ganttColumnLinesEnabled(value) {\n      this._ganttColumnLinesEnabled = value;\n      this.persistedSettings.set('ganttColumnLinesEnabled', value);\n      this.ganttChart.features.columnLines.disabled = !value;\n    }\n    get ganttRollupsEnabled() {\n      return this._ganttRollupsEnabled;\n    }\n    set ganttRollupsEnabled(value) {\n      this._ganttRollupsEnabled = value;\n      this.persistedSettings.set('ganttRollupsEnabled', value);\n      this.ganttChart.features.rollups.disabled = !value;\n    }\n    get ganttProgressLineEnabled() {\n      return this._ganttProgressLineEnabled;\n    }\n    set ganttProgressLineEnabled(value) {\n      this._ganttProgressLineEnabled = value;\n      this.persistedSettings.set('ganttProgressLineEnabled', value);\n      this.ganttChart.features.progressLine.disabled = !value;\n    }\n    get ganttParentAreaEnabled() {\n      return this._ganttParentAreaEnabled;\n    }\n    set ganttParentAreaEnabled(value) {\n      this._ganttParentAreaEnabled = value;\n      this.persistedSettings.set('ganttParentAreaEnabled', value);\n      this.ganttChart.features.parentArea.disabled = !value;\n    }\n    toggleSetting(key, event) {\n      this[key] = !this[key];\n      event.stopPropagation();\n      event.preventDefault();\n    }\n\n    // the splitter's own collapse buttons go straight to the gantt, so mirror\n    // them back without re-running the setters\n    syncSubGridSetting({\n      subGrid\n    }, collapsed) {\n      const key = {\n        locked: 'ganttTableCollapsed',\n        normal: 'ganttSubGridConfigsEnabled'\n      }[subGrid.region];\n      if (!key) return;\n      this[`_${key}`] = collapsed;\n      this.persistedSettings.set(key, collapsed);\n    }\n    noop(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    onZoomInClick() {\n      this.ganttChart.zoomIn();\n    }\n    onZoomOutClick() {\n      this.ganttChart.zoomOut();\n    }\n    onCollapseAllClick() {\n      this.ganttChart.expandAll();\n    }\n    onUndo() {\n      if (this.ganttChart.project.stm.canUndo) this.ganttChart.project.stm.undo();\n    }\n    onRedo() {\n      if (this.ganttChart.project.stm.canRedo) this.ganttChart.project.stm.redo();\n    }\n    onExpandAllClick() {\n      this.ganttChart.collapseAll();\n    }\n    onShiftPreviousClick() {\n      this.ganttChart.shiftPrevious();\n    }\n    onShiftNextClick() {\n      this.ganttChart.shiftNext();\n    }\n    onZoomToFitClick() {\n      this.ganttChart.zoomToFit({\n        leftMargin: 50,\n        rightMargin: 50\n      });\n    }\n    onGoToTodayClick() {\n      this.ganttChart.visibleDate = {\n        date: new Date(),\n        block: 'center'\n      };\n    }\n    onSearchChange(event) {\n      this.searchString = event.target.value;\n      if (event.target.value === '') {\n        this.searchFilterRegex = new RegExp('(.*?)');\n      } else {\n        const searchValue = event.target.value.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n        this.searchFilterRegex = new RegExp(searchValue, 'i');\n      }\n      this.ganttChart.store.filter({\n        filters: task => task.name.match(this.searchFilterRegex),\n        replace: true\n      });\n    }\n\n    // copy from gantt.module.js\n    formatDuration(duration, nbrDecimals) {\n      const multiplier = Math.pow(10, nbrDecimals);\n      return Math.round(duration * multiplier) / multiplier;\n    }\n    downloadPDF() {\n      this.ganttChart.features.pdfExport.showExportDialog();\n    }\n    async onTaskImportModalClose(reloadProject) {\n      if (reloadProject) await this.initializeGanttChart.perform();\n      this.taskImportModalVisible = false;\n    }\n    onSetProjects(projects) {\n      const confirmChange = Boolean(this.selectedProjects.length && this.undoCount);\n      if (confirmChange && !confirm(this.intl.t('entity.builda-price.scheduling.timeline.youHaveUnsavedChangesThatWillBeLostIfYouDecideToSelectAnotherProjectDoYouWantContinue'))) return;\n      this.undoCount = 0;\n      this.redoCount = 0;\n      this.selectedProjects = projects;\n\n      // treat this like a side effect so people can keep selecting projects without waiting for the gantt to load\n      this.initializeGanttChart.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"ganttChart\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"taskImportModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"searchFilterRegex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new RegExp('(.*?)');\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"undoCount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"redoCount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"ganttIsLoading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"selected_projects\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"selectedProjects\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"selectedProjects\"), _class2.prototype), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttFillTicksEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttFillTicksEnabled');\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttSubGridConfigsEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttSubGridConfigsEnabled');\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttTableCollapsed\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttTableCollapsed');\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttDependenciesEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttDependenciesEnabled') ?? true;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttLabelsEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttLabelsEnabled') ?? true;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttCriticalPathsEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttCriticalPathsEnabled');\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttNonWorkingTimeEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttNonWorkingTimeEnabled') ?? true;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttColumnLinesEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttColumnLinesEnabled') ?? true;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttRollupsEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttRollupsEnabled');\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttProgressLineEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttProgressLineEnabled');\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttParentAreaEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttParentAreaEnabled');\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleSetting\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleSetting\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"syncSubGridSetting\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"syncSubGridSetting\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"noop\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onZoomInClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onZoomInClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onZoomOutClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onZoomOutClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCollapseAllClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCollapseAllClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUndo\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUndo\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onRedo\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onRedo\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onExpandAllClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onExpandAllClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onShiftPreviousClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onShiftPreviousClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onShiftNextClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onShiftNextClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onZoomToFitClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onZoomToFitClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onGoToTodayClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onGoToTodayClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSearchChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSearchChange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"downloadPDF\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadPDF\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onTaskImportModalClose\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onTaskImportModalClose\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSetProjects\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSetProjects\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/disabled\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\"], function (_exports, _controller, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _dec2 = (0, _service.inject)(), _dec3 = (0, _service.inject)(), _dec4 = (0, _service.inject)(), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"chargebee\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n    }\n    get hasChargebeeSubscription() {\n      // TODO also check if the user is able to manage the subscription\n      return this.chargebee.ready;\n    }\n    logout() {\n      this.session.invalidate();\n    }\n    openChargebee() {\n      try {\n        this.chargebee.open();\n      } catch (error) {\n        this.notifications.error({\n          message: 'Could not open subscription management portal',\n          error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"chargebee\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"logout\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"logout\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openChargebee\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openChargebee\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/financials\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"portal/utils/platform\"], function (_exports, _controller, _service, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n    get buildaPriceLogoSrc() {\n      return _platform.BRANDING.BUILDA_PRICE.logo;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/financials/chart-of-accounts\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/utils\", \"@ember/object\", \"rsvp\", \"jquery\", \"portal/utils/nest\"], function (_exports, _controller, _service, _utils, _object, _rsvp, _jquery, _nest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/utils\",0,\"@ember/object\",0,\"rsvp\",0,\"jquery\",0,\"portal/utils/nest\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    isLoading: false,\n    isSaving: false,\n    nestedAccounts: (0, _object.computed)('debitCredit', 'model.[]', 'parent.debitCredit', function () {\n      var accounts = (0, _object.get)(this, 'model');\n      if ((0, _utils.isEmpty)(accounts)) {\n        return [];\n      }\n      accounts.forEach(account => {\n        account.setProperties({\n          tmpId: (0, _object.get)(account, 'id') || Math.floor(Math.random() * Math.pow(10, 10)).toString(),\n          debitCreditMatchesParent: (0, _object.computed)('debitCredit', 'parent.debitCredit', function () {\n            return (0, _object.get)(this, 'debitCredit') === (0, _object.get)(this, 'parent.debitCredit');\n          })\n        });\n      });\n      var childAccounts = accounts.filter(account => {\n        return (0, _utils.isEmpty)((0, _object.get)(account, 'parent').content);\n      });\n      accounts = {\n        'profit-and-loss': (0, _nest.default)(childAccounts.filterBy('category', 'profit-and-loss'), accounts, 'tmpId'),\n        'balance-sheet': (0, _nest.default)(childAccounts.filterBy('category', 'balance-sheet'), accounts, 'tmpId'),\n        'other-data': (0, _nest.default)(childAccounts.filterBy('category', 'other-data'), accounts, 'tmpId')\n      };\n      return accounts;\n    }),\n    actions: {\n      addLine(category) {\n        category = category || 'profit-and-loss';\n        const accounts = (0, _object.get)(this, 'model').filterBy('category', category).sortBy('sortIndex');\n        const lastAccount = accounts.objectAt(accounts.length - 1);\n        const highestIndex = lastAccount ? (0, _object.get)(lastAccount, 'sortIndex') : -1;\n        const account = this.store.createRecord('account', {\n          sortIndex: highestIndex + 1,\n          debitCredit: lastAccount ? (0, _object.get)(lastAccount, 'debitCredit') || 'CREDIT' : 'CREDIT',\n          category: category,\n          parent: lastAccount ? (0, _object.get)(lastAccount, 'parent') || null : null,\n          status: 'ACTIVE',\n          format: 'CURRENCY',\n          periodic: category !== 'balance-sheet',\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        });\n        (0, _object.get)(this, 'model').pushObject(account);\n      },\n      createChildAccount(account) {\n        var newAccount = {\n          name: '',\n          debitCredit: (0, _object.get)(account, 'debitCredit') || 'CREDIT',\n          isHeading: false,\n          sortIndex: (0, _object.get)(account, 'sortIndex') + 1,\n          category: (0, _object.get)(account, 'category'),\n          periodic: (0, _object.get)(account, 'periodic'),\n          parent: account,\n          status: 'ACTIVE',\n          format: (0, _object.get)(account, 'format') || 'CURRENCY',\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        };\n        const createAccount = this.store.createRecord('account', newAccount);\n        (0, _object.get)(this, 'model').pushObject(createAccount);\n      },\n      deleteAccount(account) {\n        if ((0, _object.get)(account, 'isNew')) {\n          // If the account hasn't been saved yet, just remove it from the model.\n          (0, _object.get)(this, 'model').removeObject(account);\n          (0, _object.get)(this, 'notifications').success('Successfully removed account.');\n          return;\n        }\n        // Check cases where account should not be deleted.\n        if ((0, _object.get)(account, 'label') != null) {\n          // If the account is used in a kpi, do not let it be deleted.\n          (0, _object.get)(this, 'notifications').error('This account is used in a KPI calculation, it is unable to be deleted.');\n          return;\n        }\n        if ((0, _object.get)(account, 'children.length')) {\n          // If the account has children, do not let it be deleted.\n          (0, _object.get)(this, 'notifications').error('You are not able to delete an account with children.');\n          return;\n        }\n        (0, _object.set)(this, 'accountToDelete', account);\n        this.toggleProperty('isDeleting');\n      },\n      cancelDelete() {\n        (0, _object.set)(this, 'accountToDelete', null);\n        this.toggleProperty('isDeleting');\n      },\n      // This will be called after checking that the account can be deleted.\n      doDelete() {\n        const account = (0, _object.get)(this, 'accountToDelete');\n        const parentAccount = (0, _object.get)(this, 'model').findBy('id', (0, _object.get)(account, 'parent.id'));\n        if (!account || (0, _object.get)(account, 'isNew')) {\n          this.toggleProperty('isDeleting');\n          return;\n        }\n        (0, _object.set)(this, 'isSaving', true);\n        account.destroyRecord().then(() => {\n          (0, _object.get)(this, 'model').removeObject(account);\n          const remainingChildren = (0, _object.get)(this, 'model').filter(a => (0, _object.get)(a, 'parent.id') === (parentAccount, 'id'));\n          if ((0, _object.get)(remainingChildren, 'length')) return;\n          (0, _object.set)(parentAccount, 'isHeading', false);\n          return parentAccount.save();\n        }).then(() => {\n          (0, _object.get)(this, 'notifications').success('Successfully removed account.');\n          this.toggleProperty('isDeleting');\n          (0, _object.set)(this, 'isSaving', false);\n        }).catch(err => {\n          (0, _object.get)(this, 'notifications').error('Deletion of this account failed.');\n          this.toggleProperty('isDeleting');\n          (0, _object.set)(this, 'isSaving', false);\n          throw err;\n        });\n      },\n      save() {\n        const accounts = this.store.peekAll('account').filterBy('entity.id', (0, _object.get)(this, 'sessionData.entity.id'));\n        const profitAndLossData = (0, _jquery.default)('.coa-editor > ol.profit-and-loss-list').nestedSortable('toArray');\n        const balanceSheetData = (0, _jquery.default)('.coa-editor > ol.balance-sheet-list').nestedSortable('toArray');\n        const otherDataData = (0, _jquery.default)('.coa-editor > ol.other-data-list').nestedSortable('toArray');\n        (0, _object.set)(this, 'isSaving', true);\n        function setAccountProperties(line) {\n          const account = accounts.findBy('tmpId', line.item_id);\n          const parent = accounts.findBy('tmpId', line.parent_id);\n          if (account) {\n            (0, _object.set)(account, 'parent', parent);\n            (0, _object.set)(account, 'sortIndex', line.left);\n          }\n          if (parent) {\n            (0, _object.set)(parent, 'isHeading', true);\n          }\n        }\n        accounts.beginPropertyChanges();\n        profitAndLossData.forEach(setAccountProperties);\n        balanceSheetData.forEach(setAccountProperties);\n        otherDataData.forEach(setAccountProperties);\n        accounts.endPropertyChanges();\n        queuedSave(accounts).then(() => {\n          (0, _object.set)(this, 'isSaving', false);\n          (0, _object.get)(this, 'notifications').success('Accounts saved successfully.');\n        }, () => {\n          (0, _object.set)(this, 'isSaving', false);\n          (0, _object.get)(this, 'notifications').error('Accounts failed to save.');\n        });\n      },\n      toggleDebitCredit(account) {\n        var debitCredit = (0, _object.get)(account, 'debitCredit');\n        (0, _object.set)(account, 'debitCredit', debitCredit === 'CREDIT' ? 'DEBIT' : 'CREDIT');\n      }\n    }\n  });\n  function queuedSave(accounts) {\n    const promises = [];\n    accounts.forEach(account => {\n      // It the account doesn't have an unIDed parent\n      if ((0, _object.get)(account, 'parent').content === null || !(0, _utils.isEmpty)((0, _object.get)(account, 'parent.id'))) {\n        if ((0, _object.get)(account, 'hasDirtyAttributes')) {\n          const save = account.save();\n          promises.push(save);\n\n          // If this account is new\n          if ((0, _utils.isEmpty)((0, _object.get)(account, 'id'))) {\n            // Find its children\n            var children = accounts.filterBy('parent.tmpId', (0, _object.get)(account, 'tmpId'));\n            if (children.length) {\n              // And save them after this has finished saving\n              save.then(function () {\n                queuedSave(children, 1);\n              });\n            }\n          }\n        }\n      }\n    });\n    return _rsvp.default.all(promises);\n  }\n});","define(\"portal/controllers/entity/financials/dashboard-loading\", [\"exports\", \"portal/controllers/entity/financials/dashboard\"], function (_exports, _dashboard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dashboard.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/dashboard\"eaimeta@70e063a35619d71f\n});","define(\"portal/controllers/entity/financials/dashboard\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)()\n  });\n});","define(\"portal/controllers/entity/financials/general\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"portal/mixins/edit-record\", \"moment\"], function (_exports, _computed, _controller, _object, _service, _editRecord, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/mixins/edit-record\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend(_editRecord.default, {\n    sessionData: (0, _service.inject)(),\n    firstClosedPeriodLabel: (0, _object.computed)('sessionData.entity.parent.id', function () {\n      const isTopLevel = !(0, _object.get)(this, 'sessionData.entity.parent.id');\n      return isTopLevel ? 'Hide group reports on and after' : 'Withhold data from groups on and after';\n    }),\n    firstClosedPeriodExplanation: (0, _object.computed)('sessionData.entity.parent.id', function () {\n      const isTopLevel = !(0, _object.get)(this, 'sessionData.entity.parent.id');\n      return isTopLevel ? 'Setting the First Closed Period will prevent branches from seeing group reports on or before the given period' : \"Setting the First Closed Period will prevent your branch's data from being included in group reports on or before the given period\";\n    }),\n    openAllPeriods: (0, _object.computed)('firstClosedPeriod', {\n      set(key, value) {\n        if (value) {\n          // Open all periods by clearing the firstClosedPeriod option\n          (0, _object.set)(this, 'model.firstClosedPeriod', null);\n        } else {\n          const month = (0, _object.get)(this, 'firstClosedMonth');\n          const year = (0, _object.get)(this, 'firstClosedYear');\n          this.setFirstClosedPeriod(month, year);\n        }\n        return value;\n      },\n      get() {\n        return (0, _object.get)(this, 'firstClosedPeriod') == null;\n      }\n    }),\n    firstClosedPeriod: (0, _computed.alias)('model.firstClosedPeriod'),\n    setFirstClosedPeriod(month, year) {\n      // Minus 1 because moment expects a 0-based month index\n      const firstClosedPeriod = (0, _moment.default)().month(month - 1).year(year).endOf('month').toDate();\n      (0, _object.set)(this, 'firstClosedPeriod', firstClosedPeriod);\n    },\n    firstClosedMonth: (0, _object.computed)('firstClosedPeriod', {\n      get() {\n        // Add 1 because moment returns a 0-based month index\n        return (0, _moment.default)((0, _object.get)(this, 'firstClosedPeriod') || new Date()).month() + 1;\n      },\n      set(key, month) {\n        this.setFirstClosedPeriod(month, (0, _object.get)(this, 'firstClosedYear'));\n        return month;\n      }\n    }),\n    firstClosedYear: (0, _object.computed)('firstClosedPeriod', {\n      get() {\n        return (0, _moment.default)((0, _object.get)(this, 'firstClosedPeriod') || new Date()).year();\n      },\n      set(key, year) {\n        this.setFirstClosedPeriod((0, _object.get)(this, 'firstClosedMonth'), year);\n        return year;\n      }\n    }),\n    balanceDate: (0, _object.computed)('model.balanceDate', {\n      get() {\n        return (0, _object.get)(this, 'model.balanceDate') || 0;\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'model.balanceDate', value);\n        return value;\n      }\n    }),\n    years: (0, _object.computed)(function () {\n      const years = [];\n      const currentYear = (0, _moment.default)().year();\n      for (let i = -4; i < 2; i++) {\n        years.push(currentYear + i);\n      }\n      return years;\n    }),\n    months: [{\n      name: 'Not Set',\n      value: 0\n    }, {\n      name: 'January',\n      value: 1\n    }, {\n      name: 'February',\n      value: 2\n    }, {\n      name: 'March',\n      value: 3\n    }, {\n      name: 'April',\n      value: 4\n    }, {\n      name: 'May',\n      value: 5\n    }, {\n      name: 'June',\n      value: 6\n    }, {\n      name: 'July',\n      value: 7\n    }, {\n      name: 'August',\n      value: 8\n    }, {\n      name: 'September',\n      value: 9\n    }, {\n      name: 'October',\n      value: 10\n    }, {\n      name: 'November',\n      value: 11\n    }, {\n      name: 'December',\n      value: 12\n    }],\n    record: (0, _computed.alias)('model')\n  });\n});","define(\"portal/controllers/entity/financials/groups/access\", [\"exports\", \"portal/controllers/entity/financials/groups/membership\"], function (_exports, _membership) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/groups/membership\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _membership.default.extend({\n    propertyToToggle: 'canAccessGroup'\n  });\n});","define(\"portal/controllers/entity/financials/groups/membership\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"rsvp\", \"@ember/utils\", \"@ember/object\"], function (_exports, _computed, _controller, _service, _rsvp, _utils, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"rsvp\",0,\"@ember/utils\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    // If true, do not allow saving, editing, or deleting.\n    noEditGroups: (0, _object.computed)('newFeatureFlags.userCanNotEditFPGroups', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.userCanNotEditFPGroups');\n    }),\n    propertyToToggle: 'isInGroup',\n    tableContent: (0, _object.computed)('group.canBeAccessedBy', 'group.members', 'model.branches.[]', 'model.groups.[]', 'propertyToToggle', function () {\n      const store = (0, _object.get)(this, 'store');\n      const groups = (0, _object.get)(this, 'model.groups');\n      const propertyName = (0, _object.get)(this, 'propertyToToggle');\n      const content = (0, _object.get)(this, 'model.branches').map(branch => {\n        const branchId = (0, _object.get)(branch, 'id');\n        (0, _object.set)(branch, 'groupData', []);\n        groups.forEach(group => {\n          const data = _object.default.extend({\n            group: group,\n            branch: branch,\n            isInGroup: (0, _object.computed)('group.members.[]', 'group.members.@each.isDeleted', {\n              get() {\n                const members = ((0, _object.get)(this, 'group').hasMany('members').value() || []).map(item => (0, _object.get)(item, 'entity'));\n                return members.findBy('id', branchId) != null;\n              },\n              set(key, value) {\n                const groupMembers = (0, _object.get)(this, 'group').hasMany('members').value();\n                const existingMember = groupMembers.find(item => {\n                  const entity = (0, _object.get)(item, 'entity');\n                  return (0, _object.get)(entity, 'id') === branchId;\n                });\n                if (value) {\n                  if (!existingMember) {\n                    const member = store.createRecord('link-entity-group-member', {\n                      entity: branch,\n                      entityGroup: group\n                    });\n                    groupMembers.pushObject(member);\n                  } else if ((0, _object.get)(existingMember, 'isDeleted')) {\n                    existingMember.rollbackAttributes();\n                  }\n                  return value;\n                }\n                if (!existingMember || (0, _object.get)(existingMember, 'isDeleted')) {\n                  return value;\n                }\n                if ((0, _object.get)(existingMember, 'isNew')) {\n                  groupMembers.removeObject(existingMember);\n                  existingMember.unloadRecord();\n                } else {\n                  existingMember.deleteRecord();\n                }\n                return value;\n              }\n            }),\n            canAccessGroup: (0, _object.computed)('group.canBeAccessedBy.[]', 'group.canBeAccessedBy.@each.isDeleted', {\n              get() {\n                const canBeAccessedBy = ((0, _object.get)(this, 'group').hasMany('canBeAccessedBy').value() || []).map(item => (0, _object.get)(item, 'entity'));\n                return canBeAccessedBy.findBy('id', branchId) != null;\n              },\n              set(key, value) {\n                const accessItems = (0, _object.get)(this, 'group').hasMany('canBeAccessedBy').value();\n                const existingAccess = accessItems.find(item => {\n                  const entity = (0, _object.get)(item, 'entity');\n                  return (0, _object.get)(entity, 'id') === branchId;\n                });\n                if (value) {\n                  if (!existingAccess) {\n                    const access = store.createRecord('link-entity-group-can-be-accessed-by', {\n                      entity: branch,\n                      entityGroup: group\n                    });\n                    accessItems.pushObject(access);\n                  } else if ((0, _object.get)(existingAccess, 'isDeleted')) {\n                    existingAccess.rollbackAttributes();\n                  }\n                  return value;\n                }\n                if (!existingAccess || (0, _object.get)(existingAccess, 'isDeleted')) {\n                  return value;\n                }\n                if ((0, _object.get)(existingAccess, 'isNew')) {\n                  accessItems.removeObject(existingAccess);\n                  existingAccess.unloadRecord();\n                } else {\n                  existingAccess.deleteRecord();\n                }\n                return value;\n              }\n            }),\n            propertyToToggle: (0, _computed.alias)(propertyName)\n          }).create();\n          (0, _object.get)(branch, 'groupData').pushObject(data);\n        });\n        return branch;\n      });\n      return content.sortBy('name');\n    }),\n    actions: {\n      addNewGroup() {\n        // If noEditGroups is set, then don't let them be created.\n        if ((0, _object.get)(this, 'noEditGroups')) return;\n        const group = this.store.createRecord('entity-group', {\n          parentEntity: (0, _object.get)(this, 'sessionData.entity')\n        });\n        (0, _object.get)(this, 'model.groups').pushObject(group);\n      },\n      deleteGroup(group) {\n        // If noEditGroups is set, then don't let them be deleted.\n        if ((0, _object.get)(this, 'noEditGroups')) return;\n        (0, _object.set)(this, 'groupBeingDeleted', group);\n      },\n      cancelDeleteGroup() {\n        (0, _object.set)(this, 'groupBeingDeleted', null);\n      },\n      confirmDeleteGroup(group) {\n        (0, _object.set)(this, 'isDeleting', true);\n        group.destroyRecord().then(() => {\n          (0, _object.set)(this, 'groupBeingDeleted', null);\n          (0, _object.get)(this, 'model.groups').removeObject(group);\n          (0, _object.set)(this, 'isDeleting', false);\n        }, reason => {\n          this.send('error', reason);\n          (0, _object.set)(this, 'groupBeingDeleted', null);\n          (0, _object.set)(this, 'isDeleting', false);\n        });\n      },\n      save() {\n        // If noEditGroups is set, then don't let them be saved.\n        if ((0, _object.get)(this, 'noEditGroups')) return;\n        const saveGroups = [];\n        const saveLinks = [];\n        const groups = (0, _object.get)(this, 'model.groups');\n\n        // If any group does not have a name\n        if (groups.map(group => (0, _utils.isEmpty)((0, _object.get)(group, 'name'))).includes(true)) {\n          (0, _object.get)(this, 'notifications').error('One of your groups does not have a name. Please give it a name before saving.');\n          return;\n        }\n        (0, _object.set)(this, 'isSaving', true);\n        groups.forEach(group => {\n          if ((0, _object.get)(group, 'isNew') || (0, _object.get)(group, 'hasDirtyAttributes')) {\n            saveGroups.push(group.save());\n          }\n          (0, _object.get)(group, 'members').forEach(item => {\n            if (item.isNew || item.isDeleted) {\n              saveLinks.push(item);\n            }\n          });\n          (0, _object.get)(group, 'canBeAccessedBy').forEach(item => {\n            if (item.isNew || item.isDeleted) {\n              saveLinks.push(item);\n            }\n          });\n        });\n        _rsvp.default.all(saveGroups).then(() => _rsvp.default.all(saveLinks.map(item => item.save()))).then(() => (0, _object.get)(this, 'notifications').success('All groups have been saved.')).catch(reason => this.send('error', reason)).finally(() => (0, _object.set)(this, 'isSaving', false));\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/groups/order\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"rsvp\"], function (_exports, _controller, _service, _object, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    // If true, do not allow saving.\n    noEditGroups: (0, _object.computed)('newFeatureFlags.userCanNotEditFPGroups', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.userCanNotEditFPGroups');\n    }),\n    isSaving: false,\n    actions: {\n      save() {\n        // Do not allow a save if noEditGroups is true.\n        if ((0, _object.get)(this, 'noEditGroups')) return;\n        const saveAll = (0, _object.get)(this, 'model.groups').map(group => group.save());\n        (0, _object.set)(this, 'isSaving', true);\n        _rsvp.default.all(saveAll).then(() => (0, _object.get)(this, 'notifications').success('Group order has been saved.')).catch(reason => this.send('error', reason)).finally(() => (0, _object.set)(this, 'isSaving', false));\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/import\", [\"exports\", \"@ember/controller\", \"@ember/object\"], function (_exports, _controller, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    hasOtherData: (0, _object.computed)('model.[]', function () {\n      const otherDataAccounts = (0, _object.get)(this, 'model').filterBy('category', 'other-data');\n      return (0, _object.get)(otherDataAccounts, 'length') > 0;\n    })\n  });\n});","define(\"portal/controllers/entity/financials/import/data\", [\"exports\", \"@ember/object/computed\", \"@ember/service\", \"@ember/controller\", \"@ember/object\", \"@ember/utils\", \"rsvp\", \"jquery\", \"portal/utils/balance-calculator\", \"portal/config/environment\"], function (_exports, _computed, _service, _controller, _object, _utils, _rsvp, _jquery, balanceCalculator, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/service\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/utils\",0,\"rsvp\",0,\"jquery\",0,\"portal/utils/balance-calculator\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  const {\n    default: calcBalances,\n    addValue\n  } = balanceCalculator;\n  var _default = _exports.default = _controller.default.extend({\n    application: (0, _controller.inject)(),\n    importController: (0, _controller.inject)('entity.financials.import'),\n    cache: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    /*\n     * Keeps track of maps that have been edited since the page was loaded.\n     * Push map objects here so that they will be saved when save and continue is clicked.\n     * Should be cleared after either saving (if save & continue was clicked),\n     * or refreshing (if step skipped or other step navigated to).\n     *\n     * This is in lieu of an Ember Data feature for tracking changes to relationships ala hasDirtyAttributes.\n     */\n    editedMaps: [],\n    steps: ['profit-and-loss', 'balance-sheet', 'other-data'],\n    stepName: (0, _object.computed)('step', function () {\n      return (0, _object.get)(this, 'step').replace(/-/g, ' ').replace(/^(\\w)|\\s(\\w)/g, w => w.toUpperCase());\n    }),\n    systems: [{\n      key: 'xero-csv',\n      label: 'Xero (CSV)',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'xero-api',\n      label: 'Xero (integration)',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'banklink',\n      label: 'BankLink',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'api',\n      label: 'Connected Application',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'eaccounts',\n      label: 'eAccounts',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'empower',\n      label: 'Empower',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'maxim',\n      label: 'Maxim',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'myob',\n      label: 'MYOB / MYOB AR',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'myob-ao',\n      label: 'MYOB AO',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'frameworks',\n      label: 'Frameworks',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'prostix',\n      label: 'ProStix',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'rees',\n      label: 'Rees',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'itm-manual',\n      label: 'ITM Manual',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'gj-gardner',\n      label: 'GJ Gardner',\n      multipleFiles: true,\n      visible: false\n    }],\n    visibleSystems: (0, _computed.filterBy)('systems', 'visible', true),\n    selectedSystem: (0, _object.computed)('model.import.system', 'sessionData.entity.system', 'systems', function () {\n      const systems = (0, _object.get)(this, 'systems');\n      const importSystem = systems.findBy('key', (0, _object.get)(this, 'model.import.system'));\n      const entitySystem = systems.findBy('key', (0, _object.get)(this, 'sessionData.entity.system'));\n      return importSystem || entitySystem || null;\n    }),\n    switchSystem: (0, _object.observer)('selectedSystem', function () {\n      const getBranch = (0, _object.get)(this, 'sessionData.branch');\n      if (getBranch) {\n        getBranch.then(branch => {\n          if (branch && (0, _object.get)(branch, 'hasDirtyAttributes')) {\n            branch.save();\n          }\n        });\n      }\n    }),\n    isConfiguring: (0, _object.computed)('selectedSystem', 'lastImport.length', function () {\n      const hasSelectedSystem = !(0, _utils.isEmpty)((0, _object.get)(this, 'selectedSystem'));\n      const hasImported = (0, _object.get)(this, 'lastImport.length') > 0;\n      return hasSelectedSystem && hasImported;\n    }),\n    unusedMaps: (0, _object.computed)('model.import.externalBalances.[]', 'model.maps.@each.account', 'step', function () {\n      const maps = (0, _object.get)(this, 'model.maps').rejectBy('account.id');\n      const extBals = (0, _object.get)(this, 'model.import.externalBalances') || [];\n      maps.forEach(map => {\n        const extBal = extBals.findBy('externalId', (0, _object.get)(map, 'externalId'));\n        if (extBal && (0, _object.get)(map, 'sourceBalance') !== extBal || (0, _object.get)(this, 'step') !== (0, _object.get)(map, 'step')) {\n          addValue(map, extBal, (0, _object.get)(this, 'step'));\n        }\n      });\n      return maps;\n    }),\n    accountList: (0, _object.computed)('isHeading', 'model.accounts', 'model.import.externalBalances.[]', 'model.maps.@each.account', 'step', function () {\n      const accounts = (0, _object.get)(this, 'model.accounts');\n      const maps = (0, _object.get)(this, 'model.maps');\n      const imp = (0, _object.get)(this, 'model.import');\n      const step = (0, _object.get)(this, 'step');\n      const balances = calcBalances(accounts, imp, maps, step);\n      accounts.forEach(account => {\n        const isHeading = (0, _object.get)(this, 'isHeading');\n        const colspan = isHeading ? 4 : 0;\n        const depth = this._getAccountDepth(account);\n        account.setProperties({\n          colspan,\n          depth\n        });\n        if (!isHeading) {\n          (0, _object.set)(account, 'balance', balances.findBy('account.id', (0, _object.get)(account, 'id')));\n        }\n      });\n      return accounts.sortBy('sortIndex');\n    }),\n    _getAccountDepth(account) {\n      let line = (0, _object.get)(account, 'parent');\n      let depth = 0;\n      while ((0, _object.get)(line, 'id') && depth <= 5) {\n        line = (0, _object.get)(line, 'parent');\n        depth += 1;\n      }\n      return depth;\n    },\n    importMaps(newMaps) {\n      const maps = (0, _object.get)(this, 'model.maps');\n\n      // Only add new maps if they don't already exist\n      newMaps.forEach(map => {\n        const mapsForSystem = maps.filterBy('system', map.system);\n        if (!mapsForSystem.findBy('externalId', map.externalId)) {\n          map.entity = (0, _object.get)(this, 'sessionData.entity');\n          const mapRecord = this.store.createRecord('account-map', map);\n          maps.pushObject(mapRecord);\n\n          // Queue the new map up for saving by considering it edited.\n          this.send('onEditMap', mapRecord);\n        }\n      });\n    },\n    importBalances(balances) {\n      const system = (0, _object.get)(this, 'selectedSystem') || {};\n      const systemKey = (0, _object.get)(system, 'key');\n      const previousSystemKey = (0, _object.get)(this, 'model.import.system');\n      (0, _object.set)(this, 'lastImport', balances);\n      (0, _object.set)(this, 'model.import.system', systemKey);\n      let newBalances = balances;\n      const shouldCombineBalances = (0, _object.get)(system, 'multipleFiles') && systemKey === previousSystemKey;\n      if (shouldCombineBalances) {\n        const oldBalances = (0, _object.get)(this, 'model.import.externalBalances') || [];\n        newBalances = this.combineBalances(oldBalances, newBalances);\n      }\n      (0, _object.set)(this, 'model.import.externalBalances', newBalances);\n    },\n    combineBalances(oldBals, newBals) {\n      const newBalExtIds = newBals.mapBy('externalId');\n      return [\n      // Filter out old balances that are also in the new balances\n      ...oldBals.filter(oldBal => !newBalExtIds.includes((0, _object.get)(oldBal, 'externalId'))), ...newBals];\n    },\n    actions: {\n      invertMap(...args) {\n        this.send('invertMap', ...args);\n      },\n      selectSystem(key) {\n        (0, _object.set)(this, 'model.import.system', key);\n        (0, _object.set)(this, 'sessionData.entity.system', key);\n      },\n      onEditMap(map) {\n        // Add the map to the list of edited maps if it isn't already there.\n        if (!(0, _object.get)(this, 'editedMaps').includes(map)) {\n          (0, _object.get)(this, 'editedMaps').pushObject(map);\n        }\n      },\n      toggleEditing() {\n        this.toggleProperty('isEditing');\n      },\n      toggleConfigPane(account) {\n        const id = (0, _object.get)(account, 'id');\n        (0, _jquery.default)('[data-account-id=' + id + ']').toggleClass('closed');\n      },\n      remap(mapId, balance, system) {\n        const map = (0, _object.get)(this, 'model.maps').find(item => item.get('externalId') === mapId && item.get('system') === system);\n        if (!map) {\n          this.send('error');\n          return;\n        }\n\n        // If this map has already been assigned to an account, remove the old relationship\n        const currentId = (0, _object.get)(map, 'account.id');\n        if (!(0, _utils.isEmpty)(currentId)) {\n          const account = (0, _object.get)(this, 'accountList').findBy('id', currentId);\n          const oldMaps = (0, _object.get)(account, 'balance.maps');\n          const oldMap = oldMaps.findBy('id', (0, _object.get)(map, 'id'));\n          oldMaps.removeObject(oldMap);\n        }\n\n        // Update the map to link to the new account (or nothing)\n        (0, _object.set)(map, 'account', balance ? (0, _object.get)(balance, 'account') : null);\n        if (!(0, _utils.isEmpty)(balance)) {\n          // Add map to account\n          (0, _object.get)(balance, 'maps').pushObject(map);\n        }\n        this.send('onEditMap', map);\n      },\n      import(data) {\n        this.importMaps(data.maps);\n        this.importBalances(data.balances);\n      },\n      save() {\n        const imp = (0, _object.get)(this, 'model.import');\n        const step = (0, _object.get)(this, 'step');\n        const allMaps = (0, _object.get)(this, 'model.maps');\n        // Only save maps that have been created or edited since arriving at this page.\n        const mapsToSave = [...(0, _object.get)(this, 'editedMaps'), ...allMaps.filterBy('hasDirtyAttributes')].uniq();\n        switch (step) {\n          case 'profit-and-loss':\n            (0, _object.set)(imp, 'includesProfitAndLoss', true);\n            break;\n          case 'balance-sheet':\n            (0, _object.set)(imp, 'includesBalanceSheet', true);\n            break;\n          case 'other-data':\n            (0, _object.set)(imp, 'includesOtherData', true);\n        }\n\n        // Get a list of manual balances from other steps\n        const accountList = (0, _object.get)(this, 'accountList');\n        const accountIds = accountList.mapBy('id');\n        const manBals = ((0, _object.get)(imp, 'manualBalances') || []).filter(b => !accountIds.includes(b.account));\n        // Fill in the manual balances on this page\n        (0, _object.get)(this, 'accountList').filterBy('balance.isManual').forEach(account => {\n          manBals.push({\n            account: (0, _object.get)(account, 'id'),\n            value: (0, _object.get)(account, 'balance.value')\n          });\n        });\n        (0, _object.set)(imp, 'manualBalances', manBals);\n        (0, _object.set)(this, 'isImporting', true);\n        const saveImport = imp.save();\n        const saveMaps = mapsToSave.map(map => map.save());\n        _rsvp.default.all([saveImport, ...saveMaps]).then(() => {\n          (0, _object.get)(this, 'cache').clear('reports'); // wipe the local cache\n\n          const branch = (0, _object.get)(this, 'sessionData.entity.id');\n          const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + `/reports/update?entity=${branch}`;\n          const headers = {\n            Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n          };\n          return _jquery.default.ajax({\n            contentType: 'application/json',\n            method: 'POST',\n            url,\n            headers\n          });\n        }).then(() => (0, _object.set)(this, 'editedMaps', [])).then(() => this.send('advance')).catch(reason => this.send('error', reason)).finally(() => (0, _object.set)(this, 'isImporting', false));\n      },\n      advance() {\n        const steps = (0, _object.get)(this, 'steps');\n        const step = (0, _object.get)(this, 'step');\n        const currentStep = steps.indexOf(step);\n        const hasOtherData = (0, _object.get)(this, 'importController.hasOtherData');\n        if (currentStep === steps.length - (hasOtherData ? 1 : 2)) {\n          this.router.transitionTo('entity.financials.import.done');\n        } else {\n          this.router.transitionTo('entity.financials.import.data', steps[currentStep + 1]);\n        }\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/import/start\", [\"exports\", \"@ember/service\", \"@ember/controller\"], function (_exports, _service, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    importController: (0, _controller.inject)('entity.financials.import'),\n    actions: {\n      advance() {\n        this.router.transitionTo('entity.financials.import.data', 'profit-and-loss');\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/kpis\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"jquery\", \"rsvp\", \"@ember/object\"], function (_exports, _controller, _service, _jquery, _rsvp, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"jquery\",0,\"rsvp\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    isSaving: false,\n    cache: (0, _service.inject)(),\n    sort() {\n      (0, _jquery.default)('.master-detail > aside li').each((index, li) => {\n        const id = (0, _jquery.default)(li).attr('data-id');\n        const item = (0, _object.get)(this, 'content').findBy('id', id);\n        if (item) {\n          (0, _object.set)(item, 'sortIndex', index);\n        }\n      });\n    },\n    actions: {\n      save() {\n        const saveAll = (0, _object.get)(this, 'model').map(kpi => kpi.save());\n        (0, _object.set)(this, 'isSaving', true);\n        _rsvp.default.all(saveAll).then(() => (0, _object.get)(this, 'notifications').success('KPI was saved successfully.')).then(() => (0, _object.get)(this, 'cache').clear('reports')).catch(reason => this.send('error', reason)).finally(() => (0, _object.set)(this, 'isSaving', false));\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/kpis/kpi\", [\"exports\", \"@ember/controller\", \"@ember/object/computed\", \"portal/mixins/edit-record\"], function (_exports, _controller, _computed, _editRecord) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object/computed\",0,\"portal/mixins/edit-record\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend(_editRecord.default, {\n    record: (0, _computed.alias)('model'),\n    messages: {\n      save: {\n        success: 'The KPI was saved successfully.',\n        error: 'The KPI failed to save.'\n      },\n      delete: {\n        success: 'The KPI was deleted successfully.',\n        error: 'The KPI failed to delete.'\n      }\n    },\n    transitionToOnSave: '',\n    transitionToOnDelete: ''\n  });\n});","define(\"portal/controllers/entity/financials/planning/strategies\", [\"exports\", \"@ember/controller\", \"@ember/array\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"@ember/utils\", \"moment\", \"portal/models/account\", \"portal/models/kpi\", \"portal/utils/sort-accounts\"], function (_exports, _controller, _array, _service, _object, _rsvp, _utils, _moment, _account, _kpi, _sortAccounts) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/array\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"@ember/utils\",0,\"moment\",0,\"portal/models/account\",0,\"portal/models/kpi\",0,\"portal/utils/sort-accounts\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    monthVisible: true,\n    ytdVisible: true,\n    focusToggle: true,\n    targets: (0, _object.computed)('model.targets.[]', function () {\n      const model = (0, _object.get)(this, 'model.targets');\n      const targets = [];\n      model.forEach(source => {\n        const breakdown = (0, _array.A)((0, _object.get)(source, 'breakdown') || []);\n        let sourceValues = (0, _array.A)((0, _object.get)(source, 'values') || []);\n        if (!sourceValues.length) {\n          sourceValues = (0, _array.A)([{\n            periodType: 'month',\n            targetValue: 0,\n            actualValue: 0\n          }, {\n            periodType: 'ytd',\n            targetValue: 0,\n            actualValue: 0\n          }]);\n        }\n        (0, _object.set)(source, 'breakdown', breakdown);\n        (0, _object.set)(source, 'values', sourceValues);\n        const isBalanceTarget = (0, _object.get)(source, 'account.id') != null;\n        const isKpiTarget = (0, _object.get)(source, 'kpi.id') != null;\n        const metric = isBalanceTarget ? (0, _object.get)(source, 'account') : (0, _object.get)(source, 'kpi');\n        const category = (0, _object.get)(source, 'account.category');\n        const debitCredit = (0, _object.get)(source, 'account.debitCredit');\n        const target = _object.default.extend({\n          id: (0, _object.get)(source, 'id'),\n          name: (0, _object.get)(metric, 'name'),\n          showYtd: isKpiTarget || (0, _object.get)(metric, 'periodic'),\n          metric,\n          isBalanceTarget,\n          isKpiTarget,\n          hasBreakdown: isKpiTarget,\n          showBreakdown: false,\n          breakdown,\n          increaseIsGood: !isBalanceTarget || category === 'balance-sheet' === (debitCredit === 'DEBIT'),\n          values: (0, _object.computed)('source.values', function () {\n            return (0, _object.get)(source, 'values');\n          }),\n          monthTarget: (0, _object.computed)('values.@each.targetValue', computedValue('month', 'targetValue')),\n          monthActual: (0, _object.computed)('values.@each.actualValue', computedValue('month', 'actualValue')),\n          monthDifference: (0, _object.computed)('monthTarget', 'monthActual', computedDifference('monthActual', 'monthTarget')),\n          monthArrowClasses: (0, _object.computed)('monthDifference', computedArrow('monthDifference')),\n          ytdTarget: (0, _object.computed)('values.@each.targetValue', computedValue('ytd', 'targetValue')),\n          ytdActual: (0, _object.computed)('values.@each.actualValue', computedValue('ytd', 'actualValue')),\n          ytdDifference: (0, _object.computed)('ytdTarget', 'ytdActual', computedDifference('ytdActual', 'ytdTarget')),\n          ytdArrowClasses: (0, _object.computed)('ytdDifference', computedArrow('ytdDifference'))\n        }).create();\n        targets.pushObject(target);\n      });\n      return targets;\n    }),\n    accountTargets: (0, _object.computed)('targets', function () {\n      const balanceTargets = (0, _object.get)(this, 'targets').filterBy('isBalanceTarget');\n      return (0, _sortAccounts.default)(balanceTargets, 'metric.sortIndex', 'metric.category');\n    }),\n    untargetedAccounts: untargeted('model.accounts', 'accountTargets'),\n    kpiTargets: (0, _object.computed)('targets', function () {\n      return (0, _object.get)(this, 'targets').filterBy('isKpiTarget').sortBy('metric.sortIndex');\n    }),\n    untargetedKPIs: untargeted('model.kpis', 'kpiTargets'),\n    checkingEmpty(targets) {\n      const arrayOfResults = [];\n      targets.forEach(target => {\n        (0, _array.A)((0, _object.get)(target, 'values') || []).forEach(value => {\n          arrayOfResults.push(Boolean((0, _object.get)(value, 'targetValue')));\n        });\n      });\n      return arrayOfResults;\n    },\n    actions: {\n      addTarget(metric) {\n        const entity = (0, _object.get)(this, 'sessionData.entity');\n        let account, kpi;\n        if (metric instanceof _account.default) {\n          account = metric;\n        } else if (metric instanceof _kpi.default) {\n          kpi = metric;\n        }\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const date = (0, _moment.default)(period, 'YYYY-MM').endOf('month').toDate();\n        const newTarget = this.store.createRecord('target', {\n          date,\n          entity: entity,\n          account,\n          kpi\n        });\n        newTarget.save().then(savedTarget => {\n          (0, _object.get)(this, 'model.targets').pushObject(savedTarget);\n        });\n      },\n      removeTarget(target) {\n        const targets = (0, _object.get)(this, 'model.targets');\n        const targetRecord = targets.findBy('id', (0, _object.get)(target, 'id'));\n\n        // Remove from the table\n        targets.removeObject(targetRecord);\n\n        // Delete server-side\n        return targetRecord.destroyRecord();\n      },\n      purgeEmptyBreakdownLines(target) {\n        const breakdown = (0, _array.A)((0, _object.get)(target, 'breakdown') || []);\n        const emptyLines = [];\n        breakdown.forEach(line => {\n          let empty = true;\n          Object.keys(line).forEach(field => {\n            if (!(0, _utils.isEmpty)(line[field])) {\n              empty = false;\n            }\n          });\n          if (empty) {\n            emptyLines.push(line);\n          }\n        });\n        emptyLines.forEach(line => {\n          breakdown.removeObject(line);\n        });\n      },\n      save() {\n        (0, _object.get)(this, 'model.targets').forEach(target => {\n          this.send('purgeEmptyBreakdownLines', target);\n        });\n        const empties = this.checkingEmpty((0, _object.get)(this, 'model.targets'));\n        if (!empties.includes(false)) {\n          const saveAll = (0, _object.get)(this, 'model.targets').map(target => target.save());\n          return _rsvp.default.all(saveAll).then(() => (0, _object.get)(this, 'notifications').success('Targets were saved successfully.')).catch(err => this.send('error', err));\n        } else {\n          (0, _object.get)(this, 'notifications').error('Some Targets were not completely filled in.');\n        }\n      }\n    }\n  });\n  function computedValue(periodType, field) {\n    return {\n      get() {\n        const values = (0, _object.get)(this, 'values').findBy('periodType', periodType);\n        if (!values) return null;\n        return (0, _object.get)(values, field);\n      },\n      set(key, value) {\n        const values = (0, _object.get)(this, 'values').findBy('periodType', periodType);\n        if (values) {\n          (0, _object.set)(values, field, Number(value));\n        }\n        return value;\n      }\n    };\n  }\n  function computedDifference(field1, field2) {\n    return function () {\n      const value1 = (0, _object.get)(this, field1);\n      const value2 = (0, _object.get)(this, field2);\n      if (isNaN(value1) || isNaN(value2) || value1 == null || value2 == null) {\n        return null;\n      }\n      return value1 - value2;\n    };\n  }\n  function computedArrow(field) {\n    return function () {\n      const value = (0, _object.get)(this, field);\n      const classes = ['fa'];\n      if (value > 0) {\n        classes.push('increase fa-arrow-up');\n      } else if (value < 0) {\n        classes.push('decrease fa-arrow-down');\n      } else if (value === 0) {\n        classes.push('constant');\n      }\n      return classes.join(' ');\n    };\n  }\n  function untargeted(metricsKey, targetedKey) {\n    return (0, _object.computed)(metricsKey, targetedKey, function () {\n      const metrics = (0, _object.get)(this, metricsKey);\n      const targeted = (0, _object.get)(this, targetedKey).map(target => (0, _object.get)(target, 'metric.id'));\n      return metrics.reject(metric => targeted.includes((0, _object.get)(metric, 'id')));\n    });\n  }\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/balance-sheet\", [\"exports\", \"portal/controllers/entity/financials/reports/general-ledger/generic\"], function (_exports, _generic) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/reports/general-ledger/generic\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _generic.default.extend({\n    category: 'balance-sheet',\n    dataKeyPrefix: 'b-s'\n  });\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/generic\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"lodash\", \"portal/utils/csv-builder\"], function (_exports, _computed, _controller, _service, _object, _lodash, _csvBuilder) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"lodash\",0,\"portal/utils/csv-builder\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    accountSettings: [],\n    dataKeyPrefix: null,\n    monthVisible: true,\n    ytdVisible: true,\n    showBreakdown: false,\n    selectedMetric: null,\n    selectedGroup: null,\n    hideChildrenKey: (0, _object.computed)('dataKeyPrefix', function () {\n      return `${(0, _object.get)(this, 'dataKeyPrefix')}HideChildren`;\n    }),\n    canSeeBreakdown: (0, _object.computed)('newFeatureFlags.userCanSeeFPBreakdown', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.userCanSeeFPBreakdown');\n    }),\n    colSpan: (0, _object.computed)('monthVisible', 'ytdVisible', function () {\n      return Math.max(1, (0, _object.get)(this, 'monthVisible') + (0, _object.get)(this, 'ytdVisible')); // boolean addition, min 1\n    }),\n    // Collection of entities, sorted initially but sort index.\n    orderedEntities: [],\n    initOrderedEntities: (0, _object.observer)('sessionData.branch.id', 'model.groups', function () {\n      if ((0, _object.get)(this, 'model')) {\n        (0, _object.set)(this, 'orderedEntities', (0, _object.get)(this, 'model.entities').sortBy('sortIndex'));\n      }\n    }),\n    // Take the list of accounts\n    accountsSortedByEntity: (0, _object.computed)('accountSettings', 'hideChildrenKey', 'model.nestedAccounts', 'orderedEntities', function () {\n      const accountSettings = (0, _object.get)(this, 'accountSettings');\n      const hideChildrenKey = (0, _object.get)(this, 'hideChildrenKey');\n\n      // function definition\n      const applySetting = function (account) {\n        const setting = accountSettings.find(setting => (0, _object.get)(setting, 'id') === (0, _object.get)(account, 'id')) || {};\n        const hide = (0, _object.get)(setting, hideChildrenKey) == null || (0, _object.get)(setting, hideChildrenKey);\n        (0, _object.set)(account, 'hideChildren', hide);\n        ((0, _object.get)(account, 'children') || []).forEach(applySetting);\n      };\n      if ((0, _object.get)(this, 'model')) {\n        const accounts = _lodash.default.cloneDeep((0, _object.get)(this, 'model.nestedAccounts'));\n        accounts.forEach(applySetting);\n        const orderedEntities = (0, _object.get)(this, 'orderedEntities');\n        sortByEntity(accounts, orderedEntities);\n        return accounts;\n      }\n    }),\n    profitAndLoss: (0, _computed.filterBy)('accountsSortedByEntity', 'category', 'profit-and-loss'),\n    balanceSheet: (0, _computed.filterBy)('accountsSortedByEntity', 'category', 'balance-sheet'),\n    otherData: (0, _computed.filterBy)('accountsSortedByEntity', 'category', 'other-data'),\n    // Can be overwritten if for non devault behavior\n    pageAsCSV(meta) {\n      // Use default CSV builder\n      return (0, _csvBuilder.default)(meta, (0, _object.get)(this, 'orderedEntities'), (0, _object.get)(this, 'accountsSortedByEntity'));\n    },\n    actions: {\n      downloadSheet() {\n        const category = (0, _object.get)(this, 'category');\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const meta = {\n          entityName: (0, _object.get)(this, 'sessionData.entity.name'),\n          userEmail: (0, _object.get)(this, 'sessionData.user.email'),\n          category,\n          period\n        };\n        const file = this.pageAsCSV(meta);\n        const fileName = `${entityName}-${category}-${period}.csv`;\n        (0, _csvBuilder.downloadCSV)(file, fileName);\n      },\n      toggleShowChildren(account) {\n        const hideChildrenKey = (0, _object.get)(this, 'hideChildrenKey');\n\n        // account.toggleProperty('hideChildren');\n        (0, _object.set)(account, 'hideChildren', Boolean(!(0, _object.get)(account, 'hideChildren')));\n        const accountSettings = (0, _object.get)(this, 'accountSettings');\n        const existingSetting = accountSettings.findBy('id', (0, _object.get)(account, 'id'));\n        if (existingSetting) {\n          existingSetting[hideChildrenKey] = (0, _object.get)(account, 'hideChildren');\n        } else {\n          const setting = {\n            id: (0, _object.get)(account, 'id'),\n            name: (0, _object.get)(account, 'name')\n          };\n          setting[hideChildrenKey] = (0, _object.get)(account, 'hideChildren');\n          accountSettings.push(setting);\n        }\n      },\n      togglePrintableTrue(balance) {\n        balance.toggleProperty('printable', true);\n      },\n      toggleShowBreakdown(metric, groupNumber, periodType) {\n        const group = (0, _object.get)(this, 'orderedEntities')[groupNumber];\n        (0, _object.set)(this, 'selectedMetric', metric);\n        (0, _object.set)(this, 'selectedGroup', group);\n        (0, _object.set)(this, 'selectedPeriodType', periodType);\n        this.toggleProperty('showBreakdown');\n      },\n      shiftFarLeft(entity) {\n        const orderedEntities = (0, _object.get)(this, 'orderedEntities');\n        const scopedToGroup = false; // todo - get(this, 'scope.stack.1.type') === 'group';\n\n        if (scopedToGroup) {\n          (0, _object.set)(this, 'orderedEntities', [entity, ...orderedEntities.removeObject(entity)]);\n          return;\n        }\n        if (entity === orderedEntities[0]) return;\n        const scopedEntity = orderedEntities[0];\n        const otherEntities = orderedEntities.removeObject(entity).removeObject(scopedEntity);\n        (0, _object.set)(this, 'orderedEntities', [scopedEntity, entity, ...otherEntities]);\n      }\n    }\n  });\n  function sortByEntity(accounts, orderedEntities) {\n    (accounts || []).forEach(account => {\n      const values = (0, _object.get)(account, 'data');\n      const hideChildren = (0, _object.get)(account, 'hideChildren');\n      const sortedValues = [];\n      orderedEntities.forEach(entity => {\n        const value = values.findBy('entity', (0, _object.get)(entity, 'id'));\n        sortedValues.push(value || {});\n      });\n      (0, _object.set)(account, 'data', sortedValues);\n      (0, _object.set)(account, 'hideChildren', hideChildren);\n      if ((0, _object.get)(account, 'children')) {\n        sortByEntity((0, _object.get)(account, 'children'), orderedEntities);\n      }\n    });\n  }\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/itm-profit-and-loss\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"jquery\", \"portal/config/environment\", \"portal/utils/csv-builder\", \"portal/utils/email-validator\"], function (_exports, _controller, _service, _object, _jquery, _environment, csvBuilder, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"jquery\",0,\"portal/config/environment\",0,\"portal/utils/csv-builder\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  const {\n    generateMetaDataRows,\n    downloadCSV\n  } = csvBuilder;\n  var _default = _exports.default = _controller.default.extend({\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    queryParams: ['selectedEntityIds', 'selectedGroupIds'],\n    ytdVisible: true,\n    monthVisible: true,\n    lastYearVisible: true,\n    percentageVisible: true,\n    profitAndLossTableVisible: true,\n    selectedGroupIds: [],\n    selectedGroups: [],\n    selectedEntityIds: [],\n    selectedEntities: [],\n    newUserData: {\n      firstName: '',\n      lastName: '',\n      email: ''\n    },\n    allowedEntities: (0, _object.computed)('sessionData.allowedEntities', 'sessionData.entity.parent.id', 'sessionData.entity.id', function () {\n      const parentId = (0, _object.get)(this, 'sessionData.entity.parent.id') || (0, _object.get)(this, 'sessionData.entity.id');\n      return (0, _object.get)(this, 'sessionData.allowedEntities').filter(e => e.includesClaims('canUseFinancialReporting') && (0, _object.get)(e, 'parent.id') === parentId).sortBy('name');\n    }),\n    financialsTableColspan: (0, _object.computed)('ytdVisible', 'monthVisible', 'lastYearVisible', 'percentageVisible', function () {\n      let result = 1;\n      if ((0, _object.get)(this, 'ytdVisible') && (0, _object.get)(this, 'monthVisible')) result = result * 2;\n      if ((0, _object.get)(this, 'lastYearVisible')) result = result * 2;\n      return result;\n    }),\n    actions: {\n      createNewUser() {\n        const {\n          firstName,\n          lastName,\n          email\n        } = (0, _object.get)(this, 'newUserData');\n        const notifications = (0, _object.get)(this, 'notifications');\n        if (!firstName) return notifications.warning('You must supply a first name');\n        if (!email) return notifications.warning('You must supply an email address');\n        if (!(0, _emailValidator.default)(email)) return notifications.warning('You must supply a valid email address');\n        const payload = {\n          firstName,\n          lastName,\n          email,\n          entity: (0, _object.get)(this, 'sessionData.entity.id'),\n          isItmPLInvite: true\n        };\n        (0, _object.set)(this, 'isCreatingNewUser', true);\n        return createUserAjax(payload, (0, _object.get)(this, 'session.data.authenticated.access_token')).then(() => {\n          (0, _object.get)(this, 'notifications').success('The invitation has been sent. They have been notified by email.');\n          (0, _object.set)(this, 'userCreateModalVisible', false);\n          (0, _object.set)(this, 'newUserData', {});\n        }).catch(err => this.send('error', err)).finally(() => {\n          (0, _object.set)(this, 'isCreatingNewUser', false);\n        });\n      },\n      selectEntity(data) {\n        (0, _object.set)(this, 'selectedEntityIds', data.mapBy('id'));\n      },\n      selectGroup(data) {\n        (0, _object.set)(this, 'selectedGroupIds', data.mapBy('id'));\n      },\n      toggleShowChildren(account) {\n        (0, _object.set)(account, 'hideChildren', Boolean(!(0, _object.get)(account, 'hideChildren')));\n      },\n      setProfitAndLossTableVisible(boolean) {\n        (0, _object.set)(this, 'profitAndLossTableVisible', boolean);\n      },\n      toggleYtdVisible() {\n        (0, _object.set)(this, 'ytdVisible', !(0, _object.get)(this, 'ytdVisible'));\n        if (!(0, _object.get)(this, 'ytdVisible') && !(0, _object.get)(this, 'monthVisible')) {\n          (0, _object.set)(this, 'monthVisible', true);\n        }\n      },\n      toggleMonthVisible() {\n        (0, _object.set)(this, 'monthVisible', !(0, _object.get)(this, 'monthVisible'));\n        if (!(0, _object.get)(this, 'ytdVisible') && !(0, _object.get)(this, 'monthVisible')) {\n          (0, _object.set)(this, 'ytdVisible', true);\n        }\n      },\n      downloadSheet() {\n        const category = 'itm-custom-profit-and-loss';\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const meta = {\n          entityName: (0, _object.get)(this, 'sessionData.entity.name'),\n          userEmail: (0, _object.get)(this, 'sessionData.user.email'),\n          category,\n          period\n        };\n        const num = (num, percent) => {\n          if (isNaN(num) || Math.abs(Number(num)) < 0.0001) return '0';\n          return percent ? `${Number(num) * 100}%` : String(num);\n        };\n        const createRows = (data, depth = 0, options = {}) => {\n          const {\n            recurse = true,\n            percentSales = false,\n            percentParent = false,\n            percentages = true,\n            totalTitle = null\n          } = options;\n          const getPercentValue = (data, type, index) => {\n            if (percentSales) return num(data[`${type}PercentSales`][index], true);\n            if (percentParent) return num(data[`${type}PercentParent`][index], true);\n            return '';\n          };\n          const arr = [];\n          arr.push(totalTitle ? totalTitle : '    '.repeat(depth) + data.name || 'unnamed account');\n          data.month.forEach((val, i) => {\n            if (percentages) {\n              arr.push(num(data.month[i]));\n              arr.push(getPercentValue(data, 'month', i));\n              arr.push(num(data.monthPrev[i]));\n              arr.push(getPercentValue(data, 'monthPrev', i));\n              arr.push(num(data.ytd[i]));\n              arr.push(getPercentValue(data, 'ytd', i));\n              arr.push(num(data.ytdPrev[i]));\n              arr.push(getPercentValue(data, 'ytdPrev', i));\n            } else {\n              arr.push(...[num(data.month[i]), '']);\n              arr.push(...[num(data.monthPrev[i]), '']);\n              arr.push(...[num(data.ytd[i]), '']);\n              arr.push(...[num(data.ytdPrev[i]), '']);\n            }\n          });\n          if (data.children && data.children.length && recurse) {\n            return [arr].concat(...data.children.map(c => createRows(c, depth + 1, options)));\n          } else {\n            return [arr];\n          }\n        };\n        const getSelectedItemName = item => (0, _object.get)(item || {}, 'name') || (0, _object.get)(item || {}, 'data.name') || '';\n\n        /* eslint-disable max-len */\n        const csv = [...generateMetaDataRows(meta)];\n        const entityNames = [''];\n        if ((0, _object.get)(this, 'sessionData.entity.parent.id')) entityNames.push(...['', entityName, '', '', '', '', '', '', '']);\n        entityNames.push(...(0, _object.get)(this, 'selectedEntities').reduce((arr, entity) => [...arr, getSelectedItemName(entity), '', '', '', '', '', '', ''], []));\n        entityNames.push(...(0, _object.get)(this, 'selectedGroups').reduce((arr, group) => [...arr, getSelectedItemName(group), '', '', '', '', '', '', ''], []));\n        csv.push(entityNames);\n        const percentSalesHeadings = ['Current Monthly', '% of Sales', 'Last Year Monthly', '% of Sales', 'Current YTD', '% of Sales', 'Last Year YTD', '% of Sales'];\n        const pAndLHeadingRow = [''];\n        if ((0, _object.get)(this, 'sessionData.entity.parent.id')) pAndLHeadingRow.push(...percentSalesHeadings);\n        (0, _object.get)(this, 'selectedEntities').forEach(() => pAndLHeadingRow.push(...percentSalesHeadings));\n        (0, _object.get)(this, 'selectedGroups').forEach(() => pAndLHeadingRow.push(...percentSalesHeadings));\n        csv.push(pAndLHeadingRow);\n        const pAndLContent = [...createRows((0, _object.get)(this, 'model.sales'), 0, {\n          percentages: false,\n          recurse: false\n        }), ...createRows((0, _object.get)(this, 'model.costOfSales'), 0, {\n          percentSales: true\n        }), ...createRows((0, _object.get)(this, 'model.systemMargin'), 0, {\n          totalTitle: 'Total System Margin',\n          percentSales: true\n        })];\n        (0, _object.get)(this, 'model.stockVariation.children').forEach(child => {\n          pAndLContent.push(...createRows(child, 0, {\n            percentSales: true\n          }));\n        });\n        pAndLContent.push(...createRows((0, _object.get)(this, 'model.achievedMargin'), 0, {\n          totalTitle: 'Total Achived Margin',\n          percentSales: true\n        }));\n        (0, _object.get)(this, 'model.loyaltiesAndFreight.children').forEach(child => {\n          pAndLContent.push(...createRows(child, 0, {\n            percentSales: true\n          }));\n        });\n        pAndLContent.push(...createRows((0, _object.get)(this, 'model.grossMargin'), 0, {\n          totalTitle: 'Final Gross Margin',\n          percentSales: true\n        }));\n        (0, _object.get)(this, 'model.expenses.children').forEach(child => {\n          pAndLContent.push(...createRows(child, 1, {\n            percentSales: true,\n            recurse: false\n          }));\n        });\n        pAndLContent.push(...createRows((0, _object.get)(this, 'model.expenses'), 0, {\n          totalTitle: 'Total Expenses',\n          percentages: false,\n          recurse: false\n        }), ...createRows((0, _object.get)(this, 'model.ebitda'), 0, {\n          totalTitle: 'EBITDA',\n          percentages: false,\n          recurse: false\n        }));\n        (0, _object.get)(this, 'model.otherIncomeAndDepreciation.children').forEach(child => {\n          pAndLContent.push(...createRows(child, 0, {\n            percentSales: true\n          }));\n        });\n        pAndLContent.push(...createRows((0, _object.get)(this, 'model.netProfit'), 0, {\n          totalTitle: 'Net Operating Profit',\n          percentSales: true\n        }));\n        csv.push(...pAndLContent);\n\n        // Add a blank line\n        csv.push([]);\n        const expensesHeadingRow = [''];\n        if ((0, _object.get)(this, 'sessionData.entity.parent.id')) expensesHeadingRow.push(...percentSalesHeadings);\n        (0, _object.get)(this, 'selectedEntities').forEach(() => expensesHeadingRow.push(...percentSalesHeadings));\n        (0, _object.get)(this, 'selectedGroups').forEach(() => expensesHeadingRow.push(...percentSalesHeadings));\n        csv.push(expensesHeadingRow);\n        const expensesContent = [...createRows((0, _object.get)(this, 'model.expenses'), 0, {\n          totalTitle: 'Total Expenses',\n          recurse: false,\n          percentSales: true\n        })];\n        (0, _object.get)(this, 'model.expenses.children').forEach(child => {\n          expensesContent.push(...createRows(child, 1, {\n            percentSales: true\n          }));\n        });\n        csv.push(...expensesContent);\n        const fileName = `${entityName}-${category}-${period}.csv`;\n        downloadCSV(csv, fileName);\n      }\n    }\n  });\n  function createUserAjax(payload, token) {\n    return new Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/financials',\n        data: JSON.stringify(Object.assign(payload, {\n          callback: _environment.default.urls.app + '/reset-password',\n          appURL: _environment.default.urls.app\n        })),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/other-data\", [\"exports\", \"portal/controllers/entity/financials/reports/general-ledger/generic\"], function (_exports, _generic) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/reports/general-ledger/generic\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _generic.default.extend({\n    category: 'other-data',\n    dataKeyPrefix: 'o-d'\n  });\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/personal-data\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"portal/utils/csv-builder\", \"moment\"], function (_exports, _computed, _controller, _service, _object, csvBuilder, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/utils/csv-builder\",0,\"moment\"eaimeta@70e063a35619d71f\n  const {\n    generateMetaDataRows,\n    generateDataRows,\n    downloadCSV\n  } = csvBuilder;\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    category: 'personal-data',\n    dataKeyPrefix: 'p-d',\n    queryParams: ['interval', 'duration'],\n    interval: 1,\n    duration: 1,\n    dateRange: (0, _object.computed)('sessionData.period', 'interval', 'duration', function () {\n      const currentDate = (0, _object.get)(this, 'sessionData.period');\n      const dateRange = [];\n      const interval = (0, _object.get)(this, 'interval');\n      const duration = (0, _object.get)(this, 'duration');\n      for (let i = 0; i < duration; i++) {\n        const age = interval * i;\n        dateRange.unshift((0, _moment.default)(currentDate, 'YYYY-MM').subtract(age, 'months').format('YYYY-MM'));\n      }\n      return dateRange;\n    }),\n    durationOptions: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],\n    intervalOptions: [{\n      name: '1 month',\n      value: 1\n    }, {\n      name: '3 months',\n      value: 3\n    }, {\n      name: '6 months',\n      value: 6\n    }, {\n      name: '12 months',\n      value: 12\n    }],\n    accountSettings: [],\n    monthVisible: true,\n    ytdVisible: true,\n    showBreakdown: false,\n    selectedMetric: null,\n    selectedGroup: null,\n    // This just needs to run each time you revisit the route.\n    applyAccountSettings() {\n      const accountSettings = (0, _object.get)(this, 'accountSettings');\n      const hideChildrenKey = (0, _object.get)(this, 'hideChildrenKey');\n      const applySetting = function (account) {\n        const setting = accountSettings.find(setting => (0, _object.get)(setting, 'id') === (0, _object.get)(account, 'id')) || {};\n        const hide = (0, _object.get)(setting, hideChildrenKey) == null || (0, _object.get)(setting, hideChildrenKey);\n        (0, _object.set)(account, 'hideChildren', hide);\n        ((0, _object.get)(account, 'children') || []).forEach(applySetting);\n      };\n      const accounts = (0, _object.get)(this, 'model.nestedAccounts');\n      accounts.forEach(applySetting);\n      return accounts;\n    },\n    profitAndLoss: (0, _computed.filterBy)('model.nestedAccounts', 'category', 'profit-and-loss'),\n    balanceSheet: (0, _computed.filterBy)('model.nestedAccounts', 'category', 'balance-sheet'),\n    hideChildrenKey: (0, _object.computed)('dataKeyPrefix', function () {\n      return `${(0, _object.get)(this, 'dataKeyPrefix')}HideChildren`;\n    }),\n    colSpan: (0, _object.computed)('monthVisible', 'ytdVisible', function () {\n      return Math.max(1, (0, _object.get)(this, 'monthVisible') + (0, _object.get)(this, 'ytdVisible')); // boolean addition, maximum 1\n    }),\n    intervalCount: (0, _object.computed)('duration', function () {\n      return new Array((0, _object.get)(this, 'duration')).fill(undefined);\n    }),\n    pageAsCSV(meta) {\n      // Build the spreadsheet manually\n      const rows = [...generateMetaDataRows(meta),\n      // Header for profit and loss\n      ['Profit And Loss Sheet', ''], ['Account Name', 'Month', 'YTD'], ...generateDataRows((0, _object.get)(this, 'profitAndLoss')), ['', ''],\n      // Header for Balance Sheet\n      ['Balance Sheet', ''], ['Account Name', 'Month', 'YTD'], ...generateDataRows((0, _object.get)(this, 'balanceSheet'))];\n      return rows;\n    },\n    actions: {\n      downloadSheet() {\n        const category = (0, _object.get)(this, 'category');\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const meta = {\n          entityName: (0, _object.get)(this, 'sessionData.entity.name'),\n          userEmail: (0, _object.get)(this, 'sessionData.user.email'),\n          category,\n          period\n        };\n        const file = this.pageAsCSV(meta);\n        const fileName = `${entityName}-${category}-${period}.csv`;\n        downloadCSV(file, fileName);\n      },\n      toggleShowChildren(account) {\n        const hideChildrenKey = (0, _object.get)(this, 'hideChildrenKey');\n\n        // account.toggleProperty('hideChildren');\n        (0, _object.set)(account, 'hideChildren', Boolean(!(0, _object.get)(account, 'hideChildren')));\n        const accountSettings = (0, _object.get)(this, 'accountSettings');\n        const existingSetting = accountSettings.findBy('id', (0, _object.get)(account, 'id'));\n        if (existingSetting) {\n          existingSetting[hideChildrenKey] = (0, _object.get)(account, 'hideChildren');\n        } else {\n          const setting = {\n            id: (0, _object.get)(account, 'id'),\n            name: (0, _object.get)(account, 'name')\n          };\n          setting[hideChildrenKey] = (0, _object.get)(account, 'hideChildren');\n          accountSettings.push(setting);\n        }\n      },\n      togglePrintableTrue(balance) {\n        balance.toggleProperty('printable', true);\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/profit-and-loss\", [\"exports\", \"portal/controllers/entity/financials/reports/general-ledger/generic\"], function (_exports, _generic) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/reports/general-ledger/generic\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _generic.default.extend({\n    category: 'profit-and-loss',\n    dataKeyPrefix: 'p-and-l'\n  });\n});","define(\"portal/controllers/entity/financials/reports/kpis/index\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"lodash\", \"portal/utils/csv-builder\"], function (_exports, _computed, _controller, _service, _object, _lodash, _csvBuilder) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"lodash\",0,\"portal/utils/csv-builder\",0,\"portal/utils/csv-builder\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    isLoading: false,\n    category: 'kpis',\n    monthVisible: true,\n    ytdVisible: true,\n    showBreakdown: false,\n    selectedMetric: null,\n    selectedGroup: null,\n    formattedStyle: {\n      PERCENTAGE: 'percent',\n      NUMBER: 'decimal',\n      CURRENCY: 'currency'\n    },\n    noEditGroups: (0, _object.computed)('newFeatureFlags.userCanNotEditFPGroups', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.userCanNotEditFPGroups');\n    }),\n    colSpan: (0, _object.computed)('monthVisible', 'ytdVisible', function () {\n      return Math.max(1, (0, _object.get)(this, 'monthVisible') + (0, _object.get)(this, 'ytdVisible')); // boolean addition, min 1\n    }),\n    linkToDetail: (0, _computed.alias)('sessionData.entity.parent.id'),\n    // Collection of entities, sorted initially but sort index.\n    orderedEntities: [],\n    initOrderedEntities: (0, _object.observer)('model.groups', function () {\n      if ((0, _object.get)(this, 'model')) {\n        let entity = (0, _object.get)(this, 'sessionData.entity');\n\n        // TODO bit hacky, someone with more time fix this.\n        // It just stops the entity from coming up if you are on a top level entity.\n        // can probably just be removed once reports for top level entities is implemented.\n        const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n        if (!parentEntity) entity = null;\n        const entities = [];\n        if (entity) {\n          entities.push(entity);\n        }\n        entities.push(...(0, _object.get)(this, 'model.groups'));\n        (0, _object.set)(this, 'orderedEntities', entities);\n      }\n    }),\n    // Take the list of kpis\n    kpisSortedByEntity: (0, _object.computed)('model.kpis', 'orderedEntities', function () {\n      const kpis = _lodash.default.cloneDeep((0, _object.get)(this, 'model.kpis'));\n      const orderedEntities = (0, _object.get)(this, 'orderedEntities');\n      sortByEntity(kpis, orderedEntities);\n      return kpis;\n    }),\n    actions: {\n      downloadSheet() {\n        const category = (0, _object.get)(this, 'category');\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const meta = {\n          entityName: (0, _object.get)(this, 'sessionData.entity.name'),\n          userEmail: (0, _object.get)(this, 'sessionData.user.email'),\n          category,\n          period\n        };\n        const file = (0, _csvBuilder.default)(meta, (0, _object.get)(this, 'orderedEntities'), (0, _object.get)(this, 'kpisSortedByEntity'));\n\n        // Use a data URL to specify the contents rather than the location of a resource.\n        const fileName = `${entityName}-${category}-${period}.csv`;\n        (0, _csvBuilder.downloadCSV)(file, fileName);\n      },\n      shiftFarLeft(entity) {\n        const orderedEntities = (0, _object.get)(this, 'orderedEntities');\n        const scopedToGroup = false; // todo - get(this, 'scope.stack.1.type') === 'group';\n\n        if (scopedToGroup) {\n          (0, _object.set)(this, 'orderedEntities', [entity, ...orderedEntities.removeObject(entity)]);\n          return;\n        }\n        if (entity === orderedEntities[0]) return;\n        const scopedEntity = orderedEntities[0];\n        const otherEntities = orderedEntities.removeObject(entity).removeObject(scopedEntity);\n        (0, _object.set)(this, 'orderedEntities', [scopedEntity, entity, ...otherEntities]);\n      },\n      toggleShowBreakdown(kpi, groupId, periodType) {\n        const group = (0, _object.get)(this, 'model.groups').findBy('id', groupId);\n        (0, _object.set)(this, 'selectedMetric', kpi);\n        (0, _object.set)(this, 'selectedGroup', group);\n        (0, _object.set)(this, 'selectedPeriodType', periodType);\n        this.toggleProperty('showBreakdown');\n      }\n    }\n  });\n  function sortByEntity(kpis, orderedEntities) {\n    (kpis || []).forEach(kpi => {\n      const values = (0, _object.get)(kpi, 'data');\n      const sortedValues = [];\n      orderedEntities.forEach(entity => {\n        const value = values.findBy('entity', (0, _object.get)(entity, 'id'));\n        sortedValues.push(value || {});\n      });\n      (0, _object.set)(kpi, 'data', sortedValues);\n      if ((0, _object.get)(kpi, 'children')) {\n        sortByEntity((0, _object.get)(kpi, 'children'), orderedEntities);\n      }\n    });\n  }\n});","define(\"portal/controllers/entity/financials/reports/kpis/kpi\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@ember/array\", \"@ember/utils\", \"moment\"], function (_exports, _computed, _controller, _service, _object, _array, _utils, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/array\",0,\"@ember/utils\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    periodType: 'month',\n    period: (0, _computed.alias)('sessionData.period'),\n    periodTypeOptions: [{\n      value: 'month',\n      label: 'Monthly'\n    }, {\n      value: 'ytd',\n      label: 'YTD'\n    }],\n    formattedStyle: {\n      PERCENTAGE: 'percent',\n      NUMBER: 'decimal',\n      CURRENCY: 'currency'\n    },\n    currentStats: (0, _object.computed)('model.stats', 'periodType', function () {\n      const periodType = (0, _object.get)(this, 'periodType');\n      let stats = (0, _object.get)(this, 'model.stats');\n      if (Array.isArray(stats)) {\n        /*\n        TODO I think this is happening because of the caching.\n        Not sure exactly why, could maybe be fixed at its cause at some point.\n        */\n        stats = stats[0].periodTypes;\n      }\n      const currentStats = (0, _object.get)(stats, periodType);\n      return currentStats;\n    }),\n    chartPeriod: (0, _object.computed)('sessionData.period', 'periodType', function () {\n      const end = (0, _object.get)(this, 'sessionData.period');\n      const start = (0, _moment.default)(end, 'YYYY-MM').subtract(11, 'months').format('YYYY-MM');\n      const type = (0, _object.get)(this, 'periodType');\n      return {\n        start,\n        end,\n        type\n      };\n    }),\n    selectedPeriodData: (0, _object.computed)('model.kpi.series', 'sessionData.entity.id', 'sessionData.period', function () {\n      const periodDate = (0, _moment.default)((0, _object.get)(this, 'sessionData.period'), 'YYYY-MM').endOf('month').toDate();\n      const series = (0, _object.get)(this, 'model.kpi.series');\n      if (!(0, _array.isArray)(series)) {\n        return null;\n      }\n      const branchId = (0, _object.get)(this, 'sessionData.entity.id');\n      const branch = series.findBy('entity', branchId);\n      if (!branch || !(0, _array.isArray)((0, _object.get)(branch, 'periods'))) {\n        return null;\n      }\n      return (0, _object.get)(branch, 'periods').findBy('date', periodDate.toISOString());\n    }),\n    noData: (0, _object.computed)('model.kpi.series', function () {\n      const series = (0, _object.get)(this, 'model.kpi.series');\n      return (0, _utils.isEmpty)(series);\n    }),\n    checked: false,\n    watchchecked: (0, _object.observer)('checked', function () {\n      var currentPeriodType = (0, _object.get)(this, 'periodType');\n      if (currentPeriodType === 'month') {\n        (0, _object.set)(this, 'checked', true);\n        return (0, _object.set)(this, 'periodType', 'ytd');\n      } else {\n        (0, _object.set)(this, 'checked', false);\n        return (0, _object.set)(this, 'periodType', 'month');\n      }\n    })\n  });\n});","define(\"portal/controllers/entity/index\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({});\n});","define(\"portal/controllers/entity/module-dashboard\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\"], function (_exports, _controller, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"modules\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n    }\n    goToModule(mod) {\n      if (mod.outsideLink) return window.open(mod.outsideLink, '_blank');\n      this.router.transitionTo(`entity.${mod.slug}`);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"goToModule\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"goToModule\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/auto-mapping\", [\"exports\", \"@ember/controller\", \"@ember/object/computed\", \"@ember/service\", \"@ember/object\", \"rsvp\"], function (_exports, _controller, _computed, _service, _object, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object/computed\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    store: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    selectedDisplayOption: 'reference',\n    displayOptions: [{\n      value: 'reference',\n      label: 'Invoice reference'\n    }, {\n      value: 'account',\n      label: 'Merchant account'\n    }],\n    readyToDelete: null,\n    deleting: false,\n    showInvalid: false,\n    referenceDirectives: (0, _computed.filterBy)('model.directives', 'kind', 'reference'),\n    openReferenceDirectives: (0, _object.computed)('referenceDirectives', function () {\n      return (0, _object.get)(this, 'referenceDirectives').filter(d => ((0, _object.get)(d, 'project.id') == null || d.belongsTo('project').value()) && !['CLOSED', 'ARCHIVED'].includes((0, _object.get)(d, 'project.status')));\n    }),\n    closedReferenceDirectives: (0, _object.computed)('referenceDirectives.@each.project', function () {\n      return (0, _object.get)(this, 'referenceDirectives').filter(d => !(((0, _object.get)(d, 'project.id') == null || d.belongsTo('project').value()) && !['CLOSED', 'ARCHIVED'].includes((0, _object.get)(d, 'project.status'))));\n    }),\n    accountDirectives: (0, _computed.filterBy)('model.directives', 'kind', 'account'),\n    openAccountDirectives: (0, _object.computed)('accountDirectives', function () {\n      return (0, _object.get)(this, 'accountDirectives').filter(d => ((0, _object.get)(d, 'project.id') == null || d.belongsTo('project').value()) && !['CLOSED', 'ARCHIVED'].includes((0, _object.get)(d, 'project.status')));\n    }),\n    closedAccountDirectives: (0, _object.computed)('accountDirectives.@each.project', function () {\n      return (0, _object.get)(this, 'accountDirectives').filter(d => !(((0, _object.get)(d, 'project.id') == null || d.belongsTo('project').value()) && !['CLOSED', 'ARCHIVED'].includes((0, _object.get)(d, 'project.status'))));\n    }),\n    unusedAccounts: (0, _object.computed)('model.merchantAccounts', 'accountDirectives.@each.value', function () {\n      const usedCodes = (0, _object.get)(this, 'accountDirectives').map(a => (0, _object.get)(a, 'value'));\n      return (0, _object.get)(this, 'model.merchantAccounts').filter(account => !usedCodes.includes((0, _object.get)(account, 'code')));\n    }),\n    /**\n     * Builds a hash table where the keys are the all the reference values on the page, and the values\n     * are booleans showing whether that reference value is a duplicate.\n     * The reason for this structure is to be easy to find. e.g. {{get duplicates directive.value}};\n     * This only needs to be checked for reference directives as the UI can prevent a user from using the\n     * same account twice by omitting it from the select list.\n     * @type {Object}\n     */\n    duplicates: (0, _object.computed)('referenceDirectives.@each.value', function () {\n      let duplicatesFound = false;\n      const directives = (0, _object.get)(this, 'referenceDirectives');\n      const duplicates = directives.mapBy('lowerValue').reduce((result, val, index, all) => {\n        const isDuplicate = all.slice(index + 1).includes(val);\n        if (isDuplicate) duplicatesFound = true;\n        return Object.assign({\n          [val]: isDuplicate\n        }, result);\n      }, {});\n      (0, _object.set)(this, 'duplicatesPresent', duplicatesFound);\n      return duplicates;\n    }),\n    diplicatesPresent: false,\n    actions: {\n      async save() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const directives = (0, _object.get)(this, 'model.directives');\n        // Check each individual directive is valid\n        if (directives.some(d => !(0, _object.get)(d, 'isValid'))) {\n          (0, _object.set)(this, 'showInvalid', true);\n          notifications.warning((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.allDirectivesMustHaveAProjectAndAReferenceOrAccount'));\n          return;\n        }\n\n        // Check there are no duplicates in the values of the reference directives\n        if ((0, _object.get)(this, 'duplicatesPresent')) {\n          (0, _object.set)(this, 'showInvalid', true);\n          notifications.warning((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.theReferenceValuesUsedMustBeUniqueOneOrMoreDuplicatesWereFound'));\n          return;\n        }\n        (0, _object.set)(this, 'isSaving', true);\n        try {\n          await _rsvp.default.all(directives.map(d => d.save()));\n          (0, _object.set)(this, 'showInvalid', false);\n          notifications.success((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.All directives were saved'));\n        } catch (error) {\n          notifications.error((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.somethingWentWrongSavingTheDirectives'));\n\n          // If there was a problem saving, we don't know what state is reliable,\n          // therefore we should tell the route to refresh the list of directives.\n          this.send('refreshDirectives');\n        } finally {\n          (0, _object.set)(this, 'isSaving', false);\n        }\n      },\n      setProject(directive, projectId) {\n        const project = (0, _object.get)(this, 'model.projects').findBy('id', projectId);\n        (0, _object.set)(directive, 'project', project);\n      },\n      addDirective(kind) {\n        if (kind === 'account' && !(0, _object.get)(this, 'unusedAccounts.length')) {\n          return (0, _object.get)(this, 'notifications').warning((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.thereAreNoMoreMerchantAccountsToUse'));\n        }\n        const newDirective = (0, _object.get)(this, 'store').createRecord('invoice-auto-map-directive', {\n          kind,\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        });\n        (0, _object.get)(this, 'model.directives').unshiftObject(newDirective);\n      },\n      async deleteDirective(directive) {\n        // Put page into a loading state\n        (0, _object.set)(this, 'deleting', true);\n        try {\n          // Delete the record from the database, then remove it from the page\n          await directive.destroyRecord();\n          (0, _object.get)(this, 'model.directives').removeObject(directive);\n        } catch (error) {\n          (0, _object.get)(this, 'notifications').error((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.somethingWentWrongDeletingTheDirectives'));\n        } finally {\n          // Put the page back into its normal state\n          (0, _object.set)(this, 'deleting', false);\n          (0, _object.set)(this, 'readyToDelete', null);\n        }\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/settings/chart-of-accounts/chart-of-account\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor5, this);\n      _initializerDefineProperty(this, \"onChangeSyncWithXero\", _descriptor6, this);\n      _defineProperty(this, \"glAccountValidationMap\", {\n        name: (_key, val) => Boolean(val) || this.intl.t('entity.settings.chart-of-accounts.chart-of-account.Please provide a name'),\n        code: (_key, val) => Boolean(val) || this.intl.t('entity.settings.chart-of-accounts.chart-of-account.Please provide a code')\n      });\n      _defineProperty(this, \"saveAccount\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          const notifications = this.notifications;\n          yield changeset.validate();\n          if (changeset.isInvalid) return;\n          try {\n            const isNew = this.glAccount.isNew;\n            const account = yield changeset.save();\n            if (isNew) this.router.transitionTo('entity.settings.chart-of-accounts.chart-of-account', account.id);\n            notifications.success(this.intl.t('entity.settings.chart-of-accounts.chart-of-account.Successfully saved account'));\n          } catch (error) {\n            notifications.error({\n              error,\n              message: this.intl.t('entity.settings.chart-of-accounts.chart-of-account.problemWhileSavingAccount')\n            });\n          }\n        }\n      }), null, \"saveAccount\", null));\n      _defineProperty(this, \"deleteAccount\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.glAccount.destroyRecord();\n            this.notifications.success('Successfully deleted account');\n            this.router.transitionTo('entity.settings.chart-of-accounts');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('entity.settings.chart-of-accounts.chart-of-account.problemWhileDeletingAccount')\n            });\n          }\n        }\n      }), null, \"deleteAccount\", null));\n    }\n    get isLoading() {\n      return this.model.glAccount.isRunning;\n    }\n    get glAccount() {\n      return this.model.glAccount.last.value;\n    }\n    get showSyncIcon() {\n      return this.accountingPlatform.isActive && this.glAccount.isLinkedToActiveAccountingPlatform;\n    }\n    get disableForm() {\n      return this.accountingPlatform.isActive && this.glAccount.isLinkedToActiveAccountingPlatform;\n    }\n    get canEditGlAccounts() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageInvoices') || this.newFeatureFlags.includesFeatureFlags('canManageBills');\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'entity.settings.chart-of-accounts',\n        pageTitle: this.intl.t('entity.settings.chart-of-accounts.Chart of accounts')\n      }, {\n        route: this.model.basePath,\n        pageTitle: this.glAccount.isNew ? this.intl.t('entity.settings.chart-of-accounts.chart-of-account.New account') : this.model.glAccount.last.value.name\n      }];\n      return paths;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"onChangeSyncWithXero\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.glAccount.isNew ? true : false;\n    }\n  }), _class2);\n});","define(\"portal/controllers/entity/settings/chart-of-accounts/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _object, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor8, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor9, this);\n      _initializerDefineProperty(this, \"pageNumber\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedAccountIds\", _descriptor1, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isDeletingAccounts\", _descriptor11, this);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageNumber', 'searchString']);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"syncWithAccountingPackage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            let message = '';\n            const {\n              created = [],\n              updated = [],\n              removed = []\n            } = yield this.accountingPlatform.getAccounts.perform(this.sessionData.entity);\n            if (created.length) {\n              message = `Successfully imported ${created.length} ${created.length > 1 ? 'accounts' : 'account'}.`;\n            }\n            if (updated.length) {\n              // force update updated accounts\n              yield this.handleAccountsUpdated(updated);\n              if (message.length) message += ' ';\n              message += `Successfully updated ${updated.length} ${updated.length > 1 ? 'accounts' : 'account'}.`;\n            }\n            if (removed.length) {\n              // remove references to removed accounts\n              yield this.handleAccountsRemoved(removed);\n              if (message.length) message += ' ';\n              message += `Removed ${removed.length} removed ${removed.length > 1 ? 'accounts' : 'account'}.`;\n            }\n            if (message.length) {\n              this.notifications.success(message);\n              yield this.model.glAccounts.perform(this.model.pageSize, this.model.pageNumber);\n              return;\n            }\n            this.notifications.info('No new accounts found.');\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong while updating accounts',\n              error\n            });\n          }\n        }\n      }), null, \"syncWithAccountingPackage\", null));\n      _defineProperty(this, \"deleteAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const actions = [];\n            this.selectedAccountIds.forEach(record => {\n              const account = this.glAccounts.find(item => item.id === record);\n              actions.push(account?.destroyRecord());\n            });\n            yield Promise.all(actions);\n            yield this.model.glAccounts.perform(this.model.pageSize, this.model.pageNumber);\n            this.notifications.success(`Successfully deleted\n           ${this.selectedAccountIds.size > 1 ? 'accounts' : 'account'}`);\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: 'Something went wrong while deleting accounts'\n            });\n          } finally {\n            this.isDeletingAccounts = false;\n            this.selectedAccountIds = new Set();\n          }\n        }\n      }), null, \"deleteAccounts\", null));\n    }\n    get isLoading() {\n      return this.model.glAccounts.isRunning;\n    }\n    get isEditable() {\n      return true;\n    }\n    get glAccounts() {\n      return this.model.glAccounts.lastSuccessful.value?.toArray() || [];\n    }\n    get tableHeader() {\n      if (this.model.glAccounts.isRunning) return [];\n      const header = [{\n        value: this.intl.t('common.Name'),\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('common.Code'),\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('common.Tax rate'),\n        colClass: ' text-right me-2'\n      }];\n      if (this.isEditable && this.glAccounts.length) header.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        onInputChange: this.onSelectAllAccounts,\n        value: this.selectedAccountIds.size,\n        isPartiallySelected: Boolean(this.selectedAccountIds.size && this.selectedAccountIds.size < this.glAccounts.filter(item => !item.isLinkedToActiveAccountingPlatform).length)\n      });\n      return header;\n    }\n    get tableData() {\n      if (this.model.glAccounts.isRunning) return [];\n      return this.glAccounts.map(account => {\n        const data = [{\n          type: 'BUTTON',\n          textClass: 'btn btn-link text-left',\n          value: account.name,\n          onClickButton: this.onClickGlAccountName,\n          iconName: account.isLinkedToActiveAccountingPlatform && this.accountingPlatform.isActive ? 'sync' : '',\n          title: 'This account is synced with your accounting package',\n          extraData: {\n            account\n          }\n        }, {\n          colClass: 'text-left align-middle',\n          value: account?.code ?? ' — '\n        }, {\n          colClass: 'text-right align-middle me-2',\n          value: this.numberFormat.format(account?.taxRate, {\n            style: 'percent',\n            dashZero: true\n          })\n        }];\n        if (this.isEditable) {\n          data.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle gl-accounts__table-checkbox-max-width',\n            onInputChange: this.onSelectAccount,\n            disabled: account.isLinkedToActiveAccountingPlatform ? true : false,\n            value: this.selectedAccountIds.has(account.id),\n            extraData: {\n              account\n            }\n          });\n        }\n        return {\n          rowData: data\n        };\n      });\n    }\n    get totalRecords() {\n      return this.model.glAccounts.lastSuccessful.value.meta?.totalRecords || 0;\n    }\n    addNewGlAccount() {\n      this.router.transitionTo('entity.settings.chart-of-accounts.chart-of-account', 'new');\n    }\n    onChangePageIndex(pageNumber) {\n      this.pageNumber = pageNumber;\n      this.selectedAccountIds = new Set();\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    onSelectAccount(_row, col, e) {\n      if (e.target.checked) {\n        this.selectedAccountIds.add(col.extraData.account.id);\n      } else {\n        this.selectedAccountIds.delete(col.extraData.account.id);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectedAccountIds = this.selectedAccountIds;\n    }\n    updateSearchTerm(value) {\n      this.selectedAccountIds = new Set();\n      this.searchString = value.trim();\n      this.pageNumber = 1;\n    }\n    async onClickGlAccountName(_row, col) {\n      this.router.transitionTo('entity.settings.chart-of-accounts.chart-of-account', col.extraData.account.id);\n    }\n    async handleAccountsRemoved(items) {\n      const loadedAccounts = this.store.peekAll('gl-account');\n      for (const id of items) {\n        const account = loadedAccounts.find(a => a.id === id);\n        if (account) {\n          // unload the record\n          this.store.unloadRecord(account);\n        }\n      }\n    }\n    async handleAccountsUpdated(items) {\n      const loadedAccounts = this.store.peekAll('gl-account');\n      await Promise.all(items.map(id => {\n        const account = loadedAccounts.find(a => a.id === id);\n        return account && account.reload();\n      }));\n    }\n    onSelectAllAccounts(_row, col, e) {\n      if (e.target.checked) {\n        this.glAccounts.forEach(account => {\n          if (!account.isLinkedToActiveAccountingPlatform) this.selectedAccountIds.add(account.id);\n        });\n      } else {\n        this.glAccounts.forEach(account => {\n          if (!account.isLinkedToActiveAccountingPlatform) this.selectedAccountIds.delete(account.id);\n        });\n      }\n\n      // eslint-disable-next-line no-self-assign\n      this.selectedAccountIds = this.selectedAccountIds;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"pageNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"selectedAccountIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingAccounts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"addNewGlAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"addNewGlAccount\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectAccount\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"updateSearchTerm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"updateSearchTerm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickGlAccountName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickGlAccountName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectAllAccounts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectAllAccounts\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/company\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"portal/models/attachment\", \"portal/utils/email-validator\", \"ember-changeset\", \"@ember/runloop\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _tracking, _attachment, _emailValidator, _emberChangeset, _runloop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"portal/models/attachment\",0,\"portal/utils/email-validator\",0,\"ember-changeset\",0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"chargebee\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _defineProperty(this, \"validateContent\", (_key, newVal, oldVal, changes, content) => {\n        // check for the currently selected profit type\n        let profitType = changes.profitType || content.profitType;\n        if (profitType === 'MARGIN') {\n          const percentage = newVal || oldVal;\n          // null is valid\n          if (percentage === null) return true;\n          return percentage < 1 || this.intl.t('validation.Please input a value less than 100');\n        }\n        return true;\n      });\n      _defineProperty(this, \"MAX_FILE_SIZE\", 1024 * 1024 * 5);\n      // 5 MB\n      _defineProperty(this, \"ALLOWED_MIME_TYPES\", ['image/png', 'image/jpeg', 'image/gif']);\n      _defineProperty(this, \"profitTypes\", [{\n        value: 'MARGIN',\n        label: this.intl.t('common.Margin')\n      }, {\n        value: 'MARKUP',\n        label: this.intl.t('common.Markup')\n      }]);\n      _defineProperty(this, \"paymentTermType\", [{\n        value: 'OF_FOLLOWING_MONTH',\n        label: this.intl.t('shared.contacts.of the following month')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_DATE',\n        label: this.intl.t('shared.contacts.day(s) after the issue date')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_MONTH',\n        label: this.intl.t('shared.contacts.day(s) after the end of the issue month')\n      }, {\n        value: 'OF_CURRENT_MONTH',\n        label: this.intl.t('shared.contacts.of the current month')\n      }]);\n      _defineProperty(this, \"messages\", {\n        save: {\n          success: this.intl.t('entity.settings.company.The entity was saved successfully'),\n          error: this.intl.t('entity.settings.company.The entity failed to save')\n        },\n        delete: {\n          success: this.intl.t('entity.settings.company.The entity was deleted successfully'),\n          error: this.intl.t('entity.settings.company.The entity failed to delete')\n        }\n      });\n      _initializerDefineProperty(this, \"isSaving\", _descriptor8, this);\n      _defineProperty(this, \"entityValidationMap\", {\n        name: (_key, val) => Boolean(val) || this.intl.t('validation.Name'),\n        address: this.validateEntityContent.bind(this),\n        businessNumber: this.validateEntityContent.bind(this),\n        contactEmail: this.validateEntityContent.bind(this)\n      });\n      _defineProperty(this, \"purchaseOrderValidationMap\", {\n        nextPurchaseOrderNumber: (_key, val) => !isNaN(val) || this.intl.t('validation.purchaseOrderNumber')\n      });\n      _defineProperty(this, \"invoiceValidationMap\", {\n        nextInvoiceNumber: (_key, val) => !isNaN(val) || 'please provide a valid number',\n        nextCreditNoteNumber: (_key, val) => !isNaN(val) || 'please provide a valid number'\n      });\n      _defineProperty(this, \"stagePaymentsOptionsValidationMap\", {});\n      _defineProperty(this, \"profitMarginValidationMap\", {\n        profitType: (_key, val) => Boolean(val) || this.intl.t('validation.profitType'),\n        labourPercentage: this.validateContent,\n        additionalLabourMargin: this.validateContent,\n        materialsPercentage: this.validateContent,\n        subcontractorsPercentage: this.validateContent,\n        sumsPercentage: this.validateContent\n      });\n      _defineProperty(this, \"updateProfitMargins\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (profitMargin) {\n          yield profitMargin.validate('profitType', 'labourPercentage', 'additionalLabourMargin', 'materialsPercentage', 'subcontractorsPercentage', 'sumsPercentage');\n          if (profitMargin.isInvalid) {\n            this.notifications.warning(this.intl.t('shared.notification.Please complete the information'));\n            return;\n          }\n          try {\n            profitMargin.execute();\n            const wasNew = Boolean(profitMargin.isNew);\n            yield profitMargin.save();\n\n            // if the record was new, we need to setup the relationship with the entity\n            if (wasNew) {\n              const entity = this.sessionData.entity;\n              yield entity.save();\n            }\n            this.notifications.success(this.intl.t('entity.settings.company.Profit margins saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.somethingWentWrongWhileUpdatingProfitMargins'),\n              error\n            });\n          }\n        }\n      }), null, \"updateProfitMargins\", null));\n      _defineProperty(this, \"saveEntity\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.validate();\n          if (entity.isInvalid) return;\n          try {\n            // Applies the valid changes to the underlying Object.\n            entity.execute();\n            const companyLogo = entity.get('data').safeBelongsToValue('companyLogo');\n            if (companyLogo?.isNew) {\n              const lastLogo = this.model.companyLogo.last.value;\n              if (lastLogo?.id) {\n                yield lastLogo.destroyRecord();\n              }\n              yield companyLogo.save({\n                adapterOptions: {\n                  meta: {\n                    data: companyLogo.data\n                  }\n                }\n              });\n            } else if (!companyLogo) {\n              const lastLogo = this.model.companyLogo.last.value;\n              if (lastLogo?.id) {\n                yield lastLogo.destroyRecord();\n              }\n            }\n            const updatedEntity = yield entity.save();\n            yield this.model.companyLogo.perform(updatedEntity);\n            this.notifications.success(this.intl.t('entity.settings.company.Company details saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.somethingWentWrongWhileUpdatingCompanyDetails'),\n              error\n            });\n          }\n        }\n      }), null, \"saveEntity\", null));\n      _defineProperty(this, \"savePurchaseOrderOption\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderOption) {\n          yield purchaseOrderOption.validate();\n          if (purchaseOrderOption.isInvalid) return;\n          try {\n            // Applies the valid changes to the underlying Object.\n            purchaseOrderOption.execute();\n            yield purchaseOrderOption.save();\n            this.notifications.success(this.intl.t('entity.settings.company.purchaseOrderDetailsSavedSuccessfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.somethingWentWrongWhileSavingPurchaseOrderDetails'),\n              error\n            });\n          }\n        }\n      }), null, \"savePurchaseOrderOption\", null));\n      _defineProperty(this, \"saveInvoiceOption\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceOption) {\n          yield invoiceOption.validate();\n          if (invoiceOption.isInvalid) return;\n          try {\n            // Applies the valid changes to the underlying Object.\n            invoiceOption.execute();\n            yield invoiceOption.save();\n            this.notifications.success(this.intl.t('entity.settings.company.Invoice details saved successfully'));\n          } catch (error) {\n            if (error.errors[0]?.title === 'Invoice number already in use') {\n              this.notifications.warning(this.intl.t('entity.settings.company.Invoice number already in use'));\n              return;\n            }\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.saveInvoiceDetailError'),\n              error\n            });\n          }\n        }\n      }), null, \"saveInvoiceOption\", null));\n      _defineProperty(this, \"saveStagePaymentOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (stagePaymentOption) {\n          if (stagePaymentOption.isInvalid) return;\n          try {\n            stagePaymentOption.execute();\n            const wasNew = Boolean(stagePaymentOption.isNew);\n            yield stagePaymentOption.save();\n\n            // if the record was new, we need to setup the relationship with the entity\n            if (wasNew) {\n              const entity = this.sessionData.entity;\n              yield entity.save();\n            }\n            this.notifications.success(this.intl.t('entity.settings.company.Stage payment details saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.saveStageError'),\n              error\n            });\n          }\n        }\n      }), null, \"saveStagePaymentOptions\", null));\n      _defineProperty(this, \"saveBreakdownOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.invoiceBreakdownOptions.firstGroupBy === 'TASK') {\n            this.invoiceBreakdownOptions.timesheetDetails = this.invoiceBreakdownOptions.timesheetDetails.filter(option => option !== 'TASK');\n          }\n          try {\n            yield this.invoiceBreakdownOptions.save();\n            this.invoiceBreakdownOptions = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.saveBreakdownOptionsError'),\n              error\n            });\n          }\n        }\n      }), null, \"saveBreakdownOptions\", null));\n      _initializerDefineProperty(this, \"invoiceBreakdownOptions\", _descriptor9, this);\n    }\n    get businessNumberLabel() {\n      let businessNumberLabel;\n      switch (this.model.entity.region) {\n        case 'NZL':\n          businessNumberLabel = this.intl.t('entity.settings.company.New Zealand business number');\n          break;\n        case 'AUS':\n          businessNumberLabel = this.intl.t('entity.settings.company.Australian business number');\n          break;\n        case 'GBR':\n          businessNumberLabel = this.intl.t('entity.settings.company.Company registration number');\n          break;\n        default:\n          businessNumberLabel = this.intl.t('entity.settings.company.Business number');\n          break;\n      }\n      return businessNumberLabel;\n    }\n    get taxNumberLabel() {\n      let taxNumberLabel;\n      switch (this.model.entity.region) {\n        case 'NZL':\n          taxNumberLabel = this.intl.t('entity.settings.company.GST number');\n          break;\n        case 'GBR':\n          taxNumberLabel = this.intl.t('entity.settings.company.VAT number');\n          break;\n      }\n      return taxNumberLabel;\n    }\n    async save() {\n      const notifications = this.notifications;\n      this.isSaving = true;\n\n      // If the logo is saved successfully, continue saving the record\n      this.record.save().then(() => {\n        this.isSaving = false;\n        notifications.success({\n          message: this.messages.save.success,\n          autoClear: true\n        });\n      }).catch(err => {\n        this.isSaving = false;\n        notifications.error(err.responseJSON.errors[0].title === undefined ? this.messages.save.error : err.responseJSON.errors[0].title);\n      });\n    }\n    async openChargebee() {\n      try {\n        this.chargebee.open();\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('entity.settings.company.couldNotOpenSubscriptionManagementPortal'),\n          error\n        });\n      }\n    }\n    validateEntityContent(key, newVal, _oldVal, _changes, _content) {\n      if (key === 'businessNumber' && newVal) {\n        switch (this.model.entity.region) {\n          case 'NZL':\n            return !(newVal.length < 13) || this.intl.t('validation.nzBusinessNumber');\n          case 'AUS':\n            return !(newVal.length < 11) || this.intl.t('validation.auBusinessNumber');\n          case 'GBR':\n            return !(newVal.length < 8) || this.intl.t('validation.companyRegistrationNumber');\n        }\n      }\n      if (key === 'contactEmail' && newVal) {\n        return (0, _emailValidator.default)(newVal) || this.intl.t('validation.Email');\n      }\n    }\n    get profitMargin() {\n      return this.model.entity.belongsTo('profitMargin').value();\n    }\n    toggleAdditionalLabourMargin(profitMarginModel) {\n      const newValue = profitMarginModel.additionalLabourMargin != null ? null : Number(this.profitMargin?.additionalLabourMargin || 0);\n      profitMarginModel.set('additionalLabourMargin', newValue);\n    }\n    get stagePaymentOption() {\n      return this.model.entity.belongsTo('stagePaymentOption').value();\n    }\n    async updateLogo(entityModel, event) {\n      try {\n        const [file] = event.target.files;\n        if (!file) return;\n        if (!this.ALLOWED_MIME_TYPES.includes(file.type)) {\n          this.notifications.info(this.intl.t('entity.settings.company.invalidLogoFormatPleaseUseJpegPngOrGif'));\n          return;\n        }\n        if (file.size > this.MAX_FILE_SIZE) {\n          this.notifications.info(this.intl.t('entity.settings.company.The selected logo file is too big'));\n          return;\n        }\n        entityModel.get('data').companyLogo = await _attachment.default.fromFileInput(file, this.store, this.sessionData.entity);\n        const reader = new FileReader();\n        reader.onload = function (e) {\n          const previewImage = document.getElementById('image-preview');\n          if (previewImage) {\n            previewImage.src = e.target.result;\n            previewImage.style.display = 'block';\n          }\n        };\n        reader.readAsDataURL(file);\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('entity.settings.company.somethingWentWrongWhileUploadingLogo'),\n          error\n        });\n      }\n    }\n    clearLogo(entityModel) {\n      entityModel.get('data').companyLogo = null;\n    }\n\n    // the two timesheet margins are mutually exclusive\n    onToggleTimesheetMargin(thisKey, otherKey) {\n      (0, _runloop.next)(() => {\n        if (this.invoiceBreakdownOptions.get(thisKey)) {\n          this.invoiceBreakdownOptions.set(otherKey, false);\n        }\n      });\n    }\n    get timesheetGroupingOptions() {\n      const options = [{\n        key: 'DAY',\n        name: this.intl.t('common.Day')\n      }, {\n        key: 'WORKER',\n        name: this.intl.t('common.Worker')\n      }];\n      if (this.invoiceBreakdownOptions.firstGroupBy !== 'TASK') options.push({\n        key: 'TASK',\n        name: this.intl.t('common.Task')\n      });\n      return options;\n    }\n    initInvoiceBreakdown() {\n      this.invoiceBreakdownOptions = (0, _emberChangeset.Changeset)(this.model.invoiceOptions.last.value);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"chargebee\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isSaving\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"save\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openChargebee\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openChargebee\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleAdditionalLabourMargin\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleAdditionalLabourMargin\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"updateLogo\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"updateLogo\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"clearLogo\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"clearLogo\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onToggleTimesheetMargin\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onToggleTimesheetMargin\"), _class2.prototype), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceBreakdownOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"initInvoiceBreakdown\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initInvoiceBreakdown\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/contacts/contact\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/utils/search-term-escape\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _searchTermEscape) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"portal/utils/search-term-escape\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"onChangeSyncWithAccountingPlatform\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isDeletingSupplier\", _descriptor9, this);\n      _initializerDefineProperty(this, \"showAddAliasModal\", _descriptor0, this);\n      _initializerDefineProperty(this, \"aliasNameInput\", _descriptor1, this);\n      _defineProperty(this, \"paymentTermType\", [{\n        value: 'OFFOLLOWINGMONTH',\n        label: this.intl.t('shared.contacts.of the following month')\n      }, {\n        value: 'DAYSAFTERBILLDATE',\n        label: this.intl.t('shared.contacts.day(s) after the bill date')\n      }, {\n        value: 'DAYSAFTERBILLMONTH',\n        label: this.intl.t('shared.contacts.day(s) after the end of the bill month')\n      }, {\n        value: 'OFCURRENTMONTH',\n        label: this.intl.t('shared.contacts.of the current month')\n      }]);\n      _defineProperty(this, \"salesPaymentTermType\", [{\n        value: 'OF_FOLLOWING_MONTH',\n        label: this.intl.t('shared.contacts.of the following month')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_DATE',\n        label: this.intl.t('shared.contacts.day(s) after the issue date')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_MONTH',\n        label: this.intl.t('shared.contacts.day(s) after the end of the issue month')\n      }, {\n        value: 'OF_CURRENT_MONTH',\n        label: this.intl.t('shared.contacts.of the current month')\n      }]);\n      _defineProperty(this, \"updateSingleContact\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.accountingPlatform.updateContacts.perform(this.sessionData.entity, this.supplier);\n            yield this.store.findRecord('contact', this.supplier.id, {\n              reload: true\n            });\n            this.notifications.success(this.intl.t('shared.notification.Contact has been updated'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('shared.notification.Something went wrong updating contact(s)')\n            });\n          }\n        }\n      }), null, \"updateSingleContact\", null));\n      _defineProperty(this, \"saveSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          yield changeset.validate();\n          if (changeset.isInvalid) return;\n          try {\n            const isNew = this.supplier.isNew;\n            const supplier = yield changeset.save();\n            if (isNew) this.router.transitionTo('entity.settings.contacts.contact', supplier.id);\n            // Create a contact in accounting platform if we need to\n            if (!this.supplier.isContactLinkedToAccountingPlatform && this.onChangeSyncWithAccountingPlatform && this.accountingPlatform.isActive) {\n              yield this.accountingPlatform.createContact.perform(this.sessionData.entity, this.supplier);\n              yield this.store.findRecord('contact', supplier.id, {\n                reload: true\n              });\n            }\n            this.notifications.success(this.intl.t('entity.settings.contacts.contact.Successfully saved contact'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('entity.settings.contacts.contact.Something went wrong saving the contact')\n            });\n          }\n        }\n      }), null, \"saveSupplier\", null));\n      _defineProperty(this, \"addNewAlias\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const raw = this.aliasNameInput ?? '';\n          const aliasName = raw.trim();\n          if (!aliasName) {\n            this.notifications.error(this.intl.t('entity.settings.contacts.contact.Please enter an alias'));\n            return;\n          }\n          const results = yield this.store.query('contact', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'aliases',\n                op: 'CONTAINS_ILIKE',\n                value: `${(0, _searchTermEscape.searchTermEscape)(this.aliasNameInput)}`\n              }]\n            }\n          });\n          if (results?.toArray()?.length) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.contacts.contact.duplicateAliasLinkedToAnotherContact')\n            });\n            return;\n          }\n          try {\n            const changeset = this.model.supplierChangeset.last.value;\n            const currentAliases = changeset.get('aliases') || this.model.supplier.last.value?.aliases || [];\n            const isDuplicate = currentAliases.some(a => (a ?? '').trim().toLowerCase() === aliasName.toLowerCase());\n            if (isDuplicate) {\n              this.notifications.error({\n                message: this.intl.t('entity.settings.contacts.contact.Alias already exists')\n              });\n              return;\n            }\n            changeset.set('aliases', [...currentAliases, aliasName]);\n            this.showAddAliasModal = false;\n            this.aliasNameInput = null;\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('entity.settings.contacts.contact.Something went wrong saving the contact')\n            });\n          }\n        }\n      }), null, \"addNewAlias\", null));\n      _defineProperty(this, \"deleteSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.supplier.destroyRecord();\n            this.notifications.success(this.intl.t('entity.settings.contacts.contact.Successfully deleted contact'));\n            this.isDeletingSupplier = false;\n            this.router.transitionTo('entity.settings.contacts');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingContacts')\n            });\n          }\n        }\n      }), null, \"deleteSupplier\", null));\n    }\n    get aliasesTableData() {\n      const changeset = this.model.supplierChangeset.last.value;\n      const aliases = changeset?.get('aliases') || this.model.supplier.last.value?.aliases || [];\n      return aliases.map(alias => {\n        const userData = [{\n          colClass: 'text-left align-middle text-nowrap col-11',\n          value: alias\n        }, {\n          type: 'BUTTON',\n          textClass: 'btn btn-link text-danger text-nowrap text-decoration-underline',\n          value: 'Remove',\n          onClickButton: this.removeAlias,\n          extraData: {\n            alias\n          }\n        }];\n        return {\n          rowData: userData\n        };\n      });\n    }\n    get aliasesTableHeader() {\n      return [];\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'entity.settings.contacts',\n        pageTitle: this.intl.t('common.contacts')\n      }, {\n        route: this.model.basePath,\n        pageTitle: this.supplier.isNew ? this.intl.t('entity.settings.contacts.contact.New contact') : this.model.supplier.last.value.name\n      }];\n      return paths;\n    }\n    get disableForm() {\n      return !this.canEditSupplier || this.saveSupplier.isRunning || this.deleteSupplier.isRunning || this.supplier.isContactLinkedToAccountingPlatform;\n    }\n    get canEditSupplier() {\n      return this.newFeatureFlags.includesFeatureFlags(this.sessionData.entity, 'canManageSuppliers');\n    }\n    get supplier() {\n      return this.model.supplier.last.value;\n    }\n    get isLoading() {\n      return this.model.supplier.isRunning || this.model.supplierChangeset.isRunning;\n    }\n    get deleteSupplierDisabledTitle() {\n      let title = null;\n      if (this.supplier.isContactLinkedToAccountingPlatform) {\n        title = this.intl.t('entity.settings.contacts.deleteLinkedToAccountingPlatform', {\n          label: this.accountingPlatform.label\n        });\n      } else if (this.supplier.isLinkedToResources) {\n        title = this.intl.t('entity.settings.contacts.deleteLinkedToResources');\n      }\n      return title;\n    }\n    async removeAlias(_row, col) {\n      const changeset = this.model.supplierChangeset.last.value;\n      const aliases = changeset.get('aliases') || this.model.supplier.last.value?.aliases || [];\n      const filteredAliases = aliases.filter(a => a !== col.extraData.alias);\n      changeset.set('aliases', filteredAliases);\n    }\n    closeAddAliasModal() {\n      this.showAddAliasModal = false;\n      this.aliasNameInput = null;\n    }\n    focusInput(element) {\n      element.focus();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"onChangeSyncWithAccountingPlatform\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.supplier.isNew ? true : false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingSupplier\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"showAddAliasModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"aliasNameInput\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeAlias\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAlias\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeAddAliasModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeAddAliasModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"focusInput\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"focusInput\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/contacts/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"ember-concurrency\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _emberConcurrency, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _initializerDefineProperty(this, \"quickbooks\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedSupplierIds\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isEditingSupplier\", _descriptor0, this);\n      _initializerDefineProperty(this, \"isDeletingSuppliers\", _descriptor1, this);\n      _initializerDefineProperty(this, \"needDeleteXeroSuppliers\", _descriptor10, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor11, this);\n      _initializerDefineProperty(this, \"onMergeDuplicateSuppliers\", _descriptor12, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor13, this);\n      _initializerDefineProperty(this, \"pageNumber\", _descriptor14, this);\n      _initializerDefineProperty(this, \"duplicateSuppliers\", _descriptor15, this);\n      _initializerDefineProperty(this, \"mergeIndex\", _descriptor16, this);\n      _initializerDefineProperty(this, \"mergeOptions\", _descriptor17, this);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageNumber', 'searchString']);\n      _defineProperty(this, \"syncWithAccountingPackage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.accountingPlatform.isActive) yield this.updateContacts.perform();\n        }\n      }), null, \"syncWithAccountingPackage\", null));\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"onCheckingDuplicateSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.duplicateSuppliers = yield this.buildaPrice.getDuplicateSuppliers({\n            entityId: this.sessionData.entity.id\n          });\n          this.mergeOptions = [...this.duplicateSuppliers];\n        }\n      }), null, \"onCheckingDuplicateSuppliers\", null));\n      _defineProperty(this, \"deleteSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const needDeleteSuppliers = this.suppliers.filter(s => this.selectedSupplierIds.has(s.id));\n            yield Promise.all(needDeleteSuppliers.map(supplier => supplier.destroyRecord()));\n            this.isDeletingSuppliers = false;\n            this.selectedSupplierIds = new Set();\n            this.needDeleteXeroSuppliers = [];\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingContacts'),\n              error\n            });\n          }\n          yield this.updateSupplierList.perform();\n        }\n      }), null, \"deleteSuppliers\", null));\n      _defineProperty(this, \"updateSupplierList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.suppliers.perform(this.model.pageSize, this.model.pageNumber, this.searchString);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.contacts.somethingWentWrongWhileReloadSuppliers'),\n              error\n            });\n          }\n        }\n      }), null, \"updateSupplierList\", null));\n      _defineProperty(this, \"mergeDuplicatedSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.buildaPrice.mergeDuplicateSuppliers(this.mergeOptions[0][0].actionData);\n            const cardDom = document.getElementsByClassName(`suppliers__duplicate-suppliers-card-0`)[0];\n            cardDom.classList.add('suppliers__duplicate-suppliers-list-fade-out');\n            yield (0, _emberConcurrency.timeout)(500);\n            this.mergeOptions = this.mergeOptions.slice(1);\n            this.notifications.success(this.intl.t('shared.notification.Contact has been updated'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.contacts.somethingWentWrongWhileMergingSupplier'),\n              error\n            });\n          }\n        }\n      }), null, \"mergeDuplicatedSupplier\", null));\n      _defineProperty(this, \"mergeAndUseDuplicatedSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (options, index) {\n          try {\n            const optionsIndex = this.mergeOptions.indexOf(options);\n            this.mergeIndex = optionsIndex;\n            const actionData = this.mergeOptions[optionsIndex][index].actionData;\n            yield this.buildaPrice.mergeDuplicateSuppliers(actionData);\n            const cardDom = document.getElementsByClassName(`suppliers__duplicate-suppliers-card-${optionsIndex}`)[0];\n            cardDom.classList.add('suppliers__duplicate-suppliers-list-fade-out');\n            yield (0, _emberConcurrency.timeout)(500);\n            this.mergeOptions.splice(optionsIndex, 1);\n            if (this.mergeOptions.length) {\n              this.mergeOptions = [...this.mergeOptions];\n            } else {\n              this.mergeOptions = [];\n            }\n            this.notifications.success(this.intl.t('shared.notification.Contact has been updated'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.contacts.somethingWentWrongWhileMergingAndUsingSupplier'),\n              error\n            });\n          }\n        }\n      }), null, \"mergeAndUseDuplicatedSupplier\", null));\n      _defineProperty(this, \"updateContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const changes = yield this.accountingPlatform.updateContacts.perform(this.sessionData.entity);\n            if (changes.updated.length) {\n              const updateIds = changes.updated;\n              this.suppliers.forEach(supplier => {\n                if (updateIds.includes(supplier.id)) {\n                  supplier.unloadRecord();\n                }\n              });\n            }\n            yield this.updateSupplierList.perform();\n            this.notifications.success(changes.created.length || changes.updated.length ? this.intl.t('entity.settings.contacts.importedXNewSuppliersAndUpdateX', {\n              created: changes.created.length || 0,\n              updated: changes.updated.length || 0\n            }) : this.intl.t('entity.settings.contacts.All suppliers were already up to date'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('shared.notification.Something went wrong updating contact(s)')\n            });\n          }\n        }\n      }), null, \"updateContacts\", null));\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.sessionData.entity, 'canManageSuppliers');\n    }\n    onChangePageIndex(pageNumber) {\n      this.pageNumber = pageNumber;\n      this.selectedSupplierIds = new Set();\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    get totalRecords() {\n      return this.model.suppliers.lastSuccessful.value.meta?.totalRecords || 0;\n    }\n    updateSearchTerm(value) {\n      this.selectedSupplierIds = new Set();\n      this.searchString = value.trim();\n      this.pageNumber = 1;\n    }\n    get suppliers() {\n      return this.model.suppliers.lastSuccessful.value.toArray() || [];\n    }\n    get selectableSuppliers() {\n      return this.paginationData.filter(supplier => !(supplier.isLinkedToActiveAccountingPlatform && this.accountingPlatform.isActive || supplier.isLinkedToResources));\n    }\n    get supplierTableHeader() {\n      if (this.model.suppliers.isRunning) return [];\n      const supplierHeader = [{\n        value: this.intl.t('common.Name'),\n        colClass: ' text-left'\n      }, {\n        value: 'Connection',\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('shared.contacts.Contact person'),\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('shared.contacts.Contact number'),\n        colClass: 'text-left'\n      }, {\n        value: this.intl.t('common.Email'),\n        colClass: 'text-left'\n      }, {\n        value: this.intl.t('common.Address'),\n        colClass: 'text-left'\n      }];\n      if (this.isEditable && this.suppliers.length) supplierHeader.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        value: Boolean(this.selectableSuppliers.length && this.selectedSupplierIds.size === this.selectableSuppliers.length),\n        isPartiallySelected: Boolean(this.selectableSuppliers.length && this.selectedSupplierIds.size && this.selectedSupplierIds.size !== this.selectableSuppliers.length),\n        onInputChange: this.onSelectAllSuppliers\n      });\n      return supplierHeader;\n    }\n    get isLoading() {\n      return this.model.suppliers.isRunning;\n    }\n    get paginationData() {\n      return this.model.suppliers.lastSuccessful.value?.toArray() || [];\n    }\n    get supplierTableData() {\n      if (this.model.suppliers.isRunning) return [];\n      return this.paginationData.map(supplier => {\n        const isLinkedToAccountingPlatform = supplier.isLinkedToActiveAccountingPlatform;\n        let selectionDisabledTitle = '';\n        if (isLinkedToAccountingPlatform) {\n          selectionDisabledTitle = this.intl.t('entity.settings.contacts.deleteLinkedToAccountingPlatform', {\n            label: this.accountingPlatform.label\n          });\n        } else if (supplier.isLinkedToResources) {\n          selectionDisabledTitle = this.intl.t('entity.settings.contacts.deleteLinkedToResources');\n        }\n        const supplierData = [{\n          type: 'BUTTON',\n          textClass: 'btn btn-link',\n          value: supplier.name,\n          onClickButton: this.onClickSupplierName,\n          extraData: {\n            supplier\n          }\n        }, isLinkedToAccountingPlatform ? {\n          type: 'BUTTON',\n          textClass: 'btn btn-link',\n          value: supplier.viewContactLabel,\n          onClickButton: this.onClickViewAccountingPlatform,\n          iconName: 'sync',\n          title: this.intl.t('entity.settings.contacts.thisSupplierIsSyncedWithYourAccountingPackage'),\n          extraData: {\n            supplier\n          }\n        } : {\n          colClass: 'text-left align-middle text-muted',\n          value: '&mdash;'\n        }, {\n          colClass: 'text-left align-middle',\n          value: supplier?.contactPerson ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: supplier?.contactNumber ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: supplier?.contactEmail ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: supplier?.address ?? ' — '\n        }];\n        if (this.isEditable) {\n          supplierData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectedSupplierIds.has(supplier.id),\n            disabled: isLinkedToAccountingPlatform || supplier.isLinkedToResources ? true : false,\n            title: selectionDisabledTitle,\n            onInputChange: this.onSelectSupplier,\n            extraData: {\n              supplier\n            }\n          });\n        }\n        return {\n          rowData: supplierData\n        };\n      });\n    }\n    onDeletingSuppliers() {\n      this.needDeleteXeroSuppliers = this.suppliers.filter(s => this.selectedSupplierIds.has(s.id) && s.xeroContactId);\n      this.isDeletingSuppliers = true;\n    }\n    async onClickSupplierName(_row, col) {\n      this.router.transitionTo('entity.settings.contacts.contact', col.extraData.supplier.id);\n    }\n    onClickViewAccountingPlatform(_row, col) {\n      const contact = col.extraData?.supplier;\n      const url = contact?.viewContactUrl;\n      if (!url) return;\n      window.open(url, '_blank', 'noopener,noreferrer');\n    }\n    onSelectSupplier(_row, col, e) {\n      if (e.target.checked) {\n        this.selectedSupplierIds.add(col.extraData.supplier.id);\n      } else {\n        this.selectedSupplierIds.delete(col.extraData.supplier.id);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectedSupplierIds = this.selectedSupplierIds;\n    }\n    openMergeDuplicateSuppliersDialog() {\n      this.onMergeDuplicateSuppliers = true;\n      this.onCheckingDuplicateSuppliers.perform();\n    }\n    closeDuplicateSupplierModal() {\n      if (this.duplicateSuppliers.length !== this.mergeOptions.length) {\n        this.model.suppliers.perform(this.model.pageSize, this.model.pageNumber, this.searchString);\n      }\n      this.model.hasDuplicateSuppliers.perform();\n      this.onMergeDuplicateSuppliers = false;\n    }\n    goNewSupplier() {\n      this.router.transitionTo('entity.settings.contacts.contact', 'new');\n    }\n    onSelectAllSuppliers(_row, _col, e) {\n      if (e.target.checked) {\n        this.selectableSuppliers.forEach(supplier => {\n          this.selectedSupplierIds.add(supplier.id);\n        });\n      } else {\n        this.selectableSuppliers.forEach(supplier => {\n          this.selectedSupplierIds.delete(supplier.id);\n        });\n      }\n\n      // eslint-disable-next-line no-self-assign\n      this.selectedSupplierIds = this.selectedSupplierIds;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooks\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"selectedSupplierIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isEditingSupplier\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingSuppliers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"needDeleteXeroSuppliers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"onMergeDuplicateSuppliers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"pageNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"duplicateSuppliers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"mergeIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"mergeOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"updateSearchTerm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"updateSearchTerm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onDeletingSuppliers\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDeletingSuppliers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickSupplierName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickSupplierName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickViewAccountingPlatform\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickViewAccountingPlatform\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectSupplier\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openMergeDuplicateSuppliersDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openMergeDuplicateSuppliersDialog\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeDuplicateSupplierModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeDuplicateSupplierModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"goNewSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"goNewSupplier\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectAllSuppliers\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectAllSuppliers\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/gl-accounts\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/entity/settings/integrations\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/validators/ips-connection\", \"jquery\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _ipsConnection, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"portal/validators/ips-connection\",0,\"jquery\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor5, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor6, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor7, this);\n      _initializerDefineProperty(this, \"ips\", _descriptor8, this);\n      _initializerDefineProperty(this, \"router\", _descriptor9, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor0, this);\n      _initializerDefineProperty(this, \"quickbooks\", _descriptor1, this);\n      _defineProperty(this, \"xeroValidationMap\", {});\n      _defineProperty(this, \"itmValidationMap\", {});\n      _defineProperty(this, \"defaultInvoiceStatusOptions\", [{\n        value: 'DRAFT',\n        label: this.intl.t('common.Draft')\n      }, {\n        value: 'SUBMITTED',\n        label: this.intl.t('common.Awaiting approval')\n      }, {\n        value: 'AUTHORISED',\n        label: this.intl.t('entity.settings.integrations.Awaiting payment')\n      }]);\n      _defineProperty(this, \"defaultCreditNoteStatusOptions\", [{\n        value: 'SUBMITTED',\n        label: this.intl.t('common.Submitted')\n      }, {\n        value: 'AUTHORISED',\n        label: this.intl.t('entity.settings.integrations.Awaiting payment')\n      }]);\n      _defineProperty(this, \"defaultTimesheetStatusOptions\", [{\n        value: 'DRAFT',\n        label: this.intl.t('common.Draft')\n      }, {\n        value: 'APPROVED',\n        label: this.intl.t('common.Approved')\n      }]);\n      _defineProperty(this, \"updateCompanyFeatures\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeSet) {\n          changeSet.execute();\n          try {\n            yield this.setEntityFeatures(changeSet.data);\n            yield this.model.entity.reload();\n            yield this.model.entity.hasMany('attributes').ids();\n            yield this.store.simpleQuery('entity', {\n              _id: this.model.entity.id\n            });\n            this.notifications.success(this.intl.t('entity.settings.integrations.Successfully updated integration options'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.integrations.somethingWentWrongWhileUpdatingIntegrationOptions'),\n              error\n            });\n          }\n        }\n      }), null, \"updateCompanyFeatures\", null));\n      _defineProperty(this, \"saveIpsConnection\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          const isNew = changeset.isNew;\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.Please complete the information'));\n              return;\n            }\n            yield changeset.save();\n\n            // the connection is what makes IPS ready, so the meter needs fresh usage\n            yield this.ips.getUsage();\n            this.notifications.success(isNew ? this.intl.t('entity.settings.integrations.Successfully set up IPS') : this.intl.t('entity.settings.integrations.Successfully updated IPS contact email'));\n          } catch (error) {\n            this.notifications.error({\n              message: isNew ? this.intl.t('entity.settings.integrations.somethingWentWrongWhileSettingUpIPS') : this.intl.t('entity.settings.integrations.somethingWentWrongWhileUpdatingIPSContactEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"saveIpsConnection\", null));\n      _defineProperty(this, \"removeXeroCompany\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.xeroIntegration.disconnect();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.integrations.Failed to disconnect Xero organisation'),\n              error\n            });\n          }\n        }\n      }), null, \"removeXeroCompany\", null));\n      _defineProperty(this, \"saveXeroConnection\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            changeset.validate();\n            if (changeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.Please complete the information'));\n              return;\n            }\n            changeset.execute();\n            yield changeset.save();\n            this.notifications.success(this.intl.t('shared.notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong while saving'),\n              error\n            });\n          }\n        }\n      }), null, \"saveXeroConnection\", null));\n      _initializerDefineProperty(this, \"selectedItmStores\", _descriptor10, this);\n      _defineProperty(this, \"setXeroCompany\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.xeroIntegration.connect(); // this causes navigation away from the app\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.integrations.Failed to authenticate to Xero'),\n              error\n            });\n          }\n        }\n      }), null, \"setXeroCompany\", null));\n      _defineProperty(this, \"setQuickBooksCompany\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.quickbooks.connect(); // this causes navigation away from the app\n          } catch (error) {\n            this.notifications.error({\n              message: 'failed to connect to quickbooks',\n              error\n            });\n          }\n        }\n      }), null, \"setQuickBooksCompany\", null));\n      _defineProperty(this, \"removeQuickBooksCompany\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.quickbooks.disconnect();\n          } catch (error) {\n            this.notifications.error({\n              message: 'Failed to disconnect quickbooks',\n              error\n            });\n          }\n        }\n      }), null, \"removeQuickBooksCompany\", null));\n      _defineProperty(this, \"requestItmStores\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const token = this.session.data.authenticated.access_token;\n          const payload = {\n            entity: this.sessionData.entity.id,\n            stores: this.selectedItmStores.map(store => store.id)\n          };\n          if (payload.stores.length < 1) {\n            return this.notifications.warning({\n              message: this.intl.t('entity.settings.integrations.pleaseSelectEntitiesForTheRequest')\n            });\n          }\n          this.selectedItmStores = [];\n          try {\n            yield requestIntegrationAjax(token, payload);\n            yield this.store.simpleQuery('entity', {\n              _id: this.sessionData.entity.id\n            }, {\n              include: 'eaccountsInvoiceIntegration'\n            });\n            yield this.model.itmSuppliers.perform();\n            this.notifications.success(this.intl.t('entity.settings.integrations.Successfully made integration request'));\n          } catch (err) {\n            if (err.statusText === 'Bad Request') this.notifications.warning(this.intl.t('entity.settings.integrations.pleaseEnsureYouHaveCompletedTheForm'));else this.send('error', err);\n          }\n        }\n      }), null, \"requestItmStores\", null));\n      _defineProperty(this, \"updatePlaceMakersIntegration\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (enabled) {\n          try {\n            yield this.setEntityFeatures({\n              canUsePlaceMakers: enabled\n            });\n            yield this.store.simpleQuery('entity', {\n              _id: this.model.entity.id\n            });\n            if (enabled) {\n              this.notifications.success(this.intl.t('entity.settings.integrations.successfullyEnabledPlaceMakersIntegration'));\n            } else {\n              this.notifications.success(this.intl.t('entity.settings.integrations.successfullyDisabledPlaceMakersIntegration'));\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.integrations.somethingWentWrongWhileUpdatingPlaceMakersIntegration'),\n              error\n            });\n          }\n        }\n      }), null, \"updatePlaceMakersIntegration\", null));\n    }\n    get xeroCompanyId() {\n      return this.xeroIntegration.companyId;\n    }\n    get xeroCompanyName() {\n      return this.xeroIntegration.companyName;\n    }\n    get shortCode() {\n      return this.xeroCompanyId;\n    }\n    get allowedXeroIntegration() {\n      return this.xeroIntegration.ready;\n    }\n    get quickbooksUrl() {\n      return _environment.default.urls.quickbooksUrl;\n    }\n    get xeroConnection() {\n      return this.xeroIntegration.connection;\n    }\n    get ipsConnectionValidator() {\n      return (0, _ipsConnection.default)(this.intl);\n    }\n    async setEntityFeatures(features) {\n      const entity = this.model.entity;\n      const links = entity.hasMany('attributes').value() || [];\n      await Promise.all(Object.entries(features).map(async ([key, enabled]) => {\n        const link = links.find(item => item.belongsTo('attribute').id() === key);\n        if (!enabled) return link?.destroyRecord();\n        if (link) return;\n        const attribute = await this.store.findRecord('entity-attribute', key);\n        return this.store.createRecord('link-entity-to-entity-attribute', {\n          entity,\n          attribute\n        }).save();\n      }));\n    }\n    get eaccountsInvoiceIntegration() {\n      // TODO when this relationships is fixed this will be one record\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n\n      const eaccountsInvoiceIntegration = this.sessionData.entity.hasMany('eaccountsInvoiceIntegration').value() || [];\n      if (eaccountsInvoiceIntegration[0]) return eaccountsInvoiceIntegration[0];\n\n      // if you don't have one already, return a fake one\n      return {\n        allowed: true,\n        requests: [],\n        entity: this.sessionData.entity\n      };\n    }\n    get requestableItmStores() {\n      return this.model.itmSuppliers.last.value;\n    }\n    get requestedItmStores() {\n      return this.eaccountsInvoiceIntegration.requests;\n    }\n    addItmStoreRequest(stores) {\n      this.selectedItmStores = stores;\n    }\n    contactSupport() {\n      const helpCenter = this.helpCenter;\n      if (helpCenter?.helpCenterActive) {\n        helpCenter.openHelpCenter();\n      }\n    }\n    cancelItmStoreRequest(store) {\n      this.eaccountsInvoiceIntegration.requests = this.eaccountsInvoiceIntegration.requests.map(request => {\n        if (request.supplier !== store.supplier) return request;\n        return {\n          ...request,\n          status: 'Canceled'\n        };\n      });\n      this.eaccountsInvoiceIntegration.save();\n    }\n    reconnectITmStoreRequest(store) {\n      this.eaccountsInvoiceIntegration.requests = this.eaccountsInvoiceIntegration.requests.map(request => {\n        if (request.supplier !== store.supplier) return request;\n        return {\n          ...request,\n          status: 'Pending'\n        };\n      });\n      this.eaccountsInvoiceIntegration.save();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooks\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"selectedItmStores\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"addItmStoreRequest\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"addItmStoreRequest\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"contactSupport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"contactSupport\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"cancelItmStoreRequest\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"cancelItmStoreRequest\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"reconnectITmStoreRequest\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"reconnectITmStoreRequest\"), _class2.prototype), _class2);\n  function requestIntegrationAjax(token, payload) {\n    return new Promise((resolve, reject) => {\n      // eslint-disable-next-line ember/no-jquery\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/eaccounts/setup-invoice-imports',\n        data: JSON.stringify(payload),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/people\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get tabs() {\n      const tabsArray = [];\n      if (this.newFeatureFlags.includesFeatureFlags('canUseUsers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Users'),\n          route: 'entity.settings.people.users',\n          icon: 'user'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseClientPortal')) {\n        tabsArray.push({\n          name: this.intl.t('common.Clients'),\n          route: 'entity.settings.people.clients',\n          icon: 'user-tie'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseSubcontractors')) {\n        tabsArray.push({\n          name: this.intl.t('common.Subcontractors'),\n          route: 'entity.settings.people.subcontractors',\n          icon: 'hard-hat'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseWorkers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Workers'),\n          route: 'entity.settings.people.workers',\n          icon: 'users'\n        });\n      }\n      return tabsArray;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/settings/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _rsvp, _jquery, _environment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}', 'user.isNew'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"router\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _defineProperty(this, \"saveUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const wasNew = Boolean(this.user.isNew);\n\n            //validate the any users exists with same email id in different type of user\n            if (wasNew) {\n              const user = yield this.store.simpleQuery('user', {\n                email: changeset.email.toLowerCase()\n              }).then(res => res[0]);\n              if (user) {\n                const userEntityAttribute = yield this.store.simpleQuery('user-entity-attribute', {\n                  user: user.id,\n                  entity: this.sessionData.entity.id\n                });\n                if (userEntityAttribute.length) return this.notifications.warning(this.intl.t('shared.notification.emailAddressAlreadyExists'));\n              }\n            }\n            const response = yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              phoneNumber: changeset.phoneNumber,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token);\n            this.router.transitionTo(`${this.model.basePath}.clients.client`, response.newUserId);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved user'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong saving the user'),\n              error\n            });\n          }\n        }\n      }), null, \"saveUser\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.settings.people.clients.client.areYouSureYouWantToDeleteThisClient'))) return;\n\n            // fetch the user attributes again so we have all the attributes\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            })]);\n\n            // destroy all the attributes for this entity\n            const destroyAttribute = attribute => {\n              // only destroy attributes for this entity\n              if (attribute.belongsTo('entity').value() === this.sessionData.entity) return attribute.destroyRecord();\n            };\n            // for some reason we need to look up the relationships using old school getters\n            yield Promise.all([Promise.all((this.user.hasMany('entityAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('projectAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('taskAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('workerAttributes').value() || []).map(destroyAttribute))]);\n\n            // if you have deleted someone else, go back to the clients index to reload the clients list\n            this.router.transitionTo(`${this.model.basePath}.clients.index`);\n            this.notifications.success(this.intl.t('entity.settings.people.clients.client.Successfully deleted user'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong deleting the user'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"sendPasswordResetEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            // this will have the effect of sending a password reset email\n            yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSendingTheReminderEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"sendPasswordResetEmail\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.clients`,\n        pageTitle: this.intl.t('common.Clients')\n      }, {\n        route: `${this.model.basePath}.clients`,\n        pageTitle: this.user.isNew ? this.intl.t('entity.settings.people.clients.client.New client') : this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get isRunning() {\n      return this.model.user.isRunning || this.model.userChangeset.isRunning;\n    }\n    get user() {\n      return this.model.user.last.value;\n    }\n    get canManageUser() {\n      return this.userIsYou || this.newFeatureFlags.includesFeatureFlags(this.user, 'canManageUsers');\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _class2);\n  function inviteUserAjax(payload, token) {\n    const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/builda-price-client';\n    return new _rsvp.default.Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: url,\n        data: JSON.stringify(Object.assign(payload, {\n          callback: _environment.default.urls.app + '/reset-password',\n          appURL: _environment.default.urls.app\n        })),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/people/clients/index\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredClients', 'model.{basePath,clients.last.value}', 'searchString.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"searchString\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"session\", _descriptor5, this);\n    }\n    get isLoading() {\n      return this.model.clients.isRunning;\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n    get filteredClients() {\n      const result = this.model.clients.last.value?.filter(client => {\n        const matchString = `${client.firstName}${client.lastName}${client.email}${client.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filteredClients\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredClients\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/people/subcontractors/index\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredSubcontractors', 'model.{basePath,subcontractors.last.value}', 'searchString.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"searchString\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"session\", _descriptor5, this);\n    }\n    get isLoading() {\n      return this.model.subcontractors.isRunning;\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n    get filteredSubcontractors() {\n      const result = this.model.subcontractors.last.value?.filter(subcontractor => {\n        const matchString = `${subcontractor.firstName}${subcontractor.lastName}${subcontractor.email}${subcontractor.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filteredSubcontractors\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredSubcontractors\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"@glimmer/tracking\", \"@ember/object\", \"portal/routes/entity/settings/people/subcontractors/subcontractor\"], function (_exports, _asyncArrowRuntime, _controller, _service, _rsvp, _jquery, _environment, _tracking, _object, _subcontractor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/settings/people/subcontractors/subcontractor\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}', 'user.isNew'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor1, this);\n      _initializerDefineProperty(this, \"_settingsPermissionsVisible\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor11, this);\n      _defineProperty(this, \"saveUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const wasNew = Boolean(this.user.isNew);\n\n            //validate the any users exists with same email id in different type of user\n            if (wasNew) {\n              const user = yield this.store.simpleQuery('user', {\n                email: changeset.email.toLowerCase()\n              }).then(res => res[0]);\n              if (user) {\n                const userEntityAttribute = yield this.store.simpleQuery('user-entity-attribute', {\n                  user: user.id,\n                  entity: this.sessionData.entity.id\n                });\n                if (userEntityAttribute.length) return this.notifications.warning(this.intl.t('shared.notification.emailAddressAlreadyExists'));\n              }\n            }\n            const response = yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              phoneNumber: changeset.phoneNumber,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token);\n            this.router.transitionTo(`${this.model.basePath}.subcontractors.subcontractor`, response.newUserId);\n            this.notifications.success(this.intl.t('entity.settings.people.subcontractors.subcontractor.Successfully saved subcontractor'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.subcontractors.subcontractor.somethingWentWrongSavingTheSubcontractor'),\n              error\n            });\n          }\n        }\n      }), null, \"saveUser\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.userIsYou ? this.intl.t('shared.notification.areYouSureYouWantToRemoveYourselfFromThisCompany') : this.intl.t('entity.settings.people.subcontractors.subcontractor.areYouSureYouWantToDeleteThisSubcontractor'))) return;\n\n            // fetch the user attributes again so we have all the attributes\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            })]);\n\n            // destroy all the attributes for this entity\n            const destroyAttribute = attribute => {\n              // only destroy attributes for this entity\n              if (attribute.belongsTo('entity').value() === this.sessionData.entity) return attribute.destroyRecord();\n            };\n            // for some reason we need to look up the relationships using old school getters\n            yield Promise.all([Promise.all((this.user.hasMany('entityAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('projectAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('taskAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('workerAttributes').value() || []).map(destroyAttribute))]);\n\n            // if you have deleted yourself, go back to index to refresh permissions and entities\n            if (this.userIsYou) this.router.transitionTo('index');else {\n              // if you have deleted someone else, go back to the users index to reload the users list\n              this.router.transitionTo(`${this.model.basePath}.subcontractors.index`);\n              this.notifications.success('Successfully deleted subcontractor');\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.userIsYou ? this.intl.t('shared.notification.somethingWentWrongRemovingYouFromTheCompany') : this.intl.t('entity.settings.people.subcontractors.subcontractor.somethingWentWrongDeletingTheSubcontractor'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const entityAttributesToAdd = [];\n            const entityAttributesToRemove = [];\n            const workersToAdd = [];\n            if (changeset.isCompanyAdministrator) {\n              entityAttributesToAdd.push(..._subcontractor.administratorAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.administratorAttributes);\n            }\n            if (changeset.canManageEverything) {\n              entityAttributesToAdd.push(..._subcontractor.managerAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.managerAttributes);\n            }\n            if (changeset.canViewBills) {\n              entityAttributesToAdd.push(..._subcontractor.canViewBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewBillsAttributes);\n            }\n            if (changeset.canManageBills) {\n              entityAttributesToAdd.push(..._subcontractor.canManageBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageBillsAttributes);\n            }\n            if (changeset.canViewTimesheets) {\n              entityAttributesToAdd.push(..._subcontractor.canViewTimesheetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewTimesheetsAttributes);\n            }\n            if (changeset.canManageTimesheets) {\n              entityAttributesToAdd.push(..._subcontractor.canManageTimesheetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageTimesheetsAttributes);\n            }\n            if (changeset.canViewProjects) {\n              entityAttributesToAdd.push(..._subcontractor.canViewProjectsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewProjectsAttributes);\n            }\n            if (changeset.canManageProjects) {\n              entityAttributesToAdd.push(..._subcontractor.canManageProjectsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageProjectsAttributes);\n            }\n            if (changeset.canViewTasks) {\n              entityAttributesToAdd.push(..._subcontractor.canViewTasksAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewTasksAttributes);\n            }\n            if (changeset.canManageTasks) {\n              entityAttributesToAdd.push(..._subcontractor.canManageTasksAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageTasksAttributes);\n            }\n            if (changeset.canViewBudgets) {\n              entityAttributesToAdd.push(..._subcontractor.canViewBudgetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewBudgetsAttributes);\n            }\n            if (changeset.canManageBudgets) {\n              entityAttributesToAdd.push(..._subcontractor.canManageBudgetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageBudgetsAttributes);\n            }\n            if (changeset.canViewProgress) {\n              entityAttributesToAdd.push(..._subcontractor.canViewProgressAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewProgressAttributes);\n            }\n            if (changeset.canManageProgress) {\n              entityAttributesToAdd.push(..._subcontractor.canManageProgressAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageProgressAttributes);\n            }\n            if (changeset.canViewQuotes) {\n              entityAttributesToAdd.push(..._subcontractor.canViewQuotesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewQuotesAttributes);\n            }\n            if (changeset.canManageQuotes) {\n              entityAttributesToAdd.push(..._subcontractor.canManageQuotesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageQuotesAttributes);\n            }\n            if (changeset.canViewProducts) {\n              entityAttributesToAdd.push(..._subcontractor.canViewProductsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewProductsAttributes);\n            }\n            if (changeset.canManageProducts) {\n              entityAttributesToAdd.push(..._subcontractor.canManageProductsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageProductsAttributes);\n            }\n            if (changeset.canViewFileStorage) {\n              entityAttributesToAdd.push(..._subcontractor.canViewFileStorageAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewFileStorageAttributes);\n            }\n            if (changeset.canManageFileStorage) {\n              entityAttributesToAdd.push(..._subcontractor.canManageFileStorageAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageFileStorageAttributes);\n            }\n            if (changeset.canManageWorkers) {\n              entityAttributesToAdd.push(..._subcontractor.canManageWorkersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageWorkersAttributes);\n            }\n            if (changeset.canViewWorkers) {\n              entityAttributesToAdd.push(..._subcontractor.canViewWorkersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewWorkersAttributes);\n            }\n            if (changeset.canViewPayrollReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewPayrollReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewPayrollReportsAttributes);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewBudgetReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewBudgetReportsAttributes);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewBudgetLabourHourReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewBudgetLabourHourReportsAttributes);\n            }\n            if (changeset.canViewQuoteReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewQuoteReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewQuoteReportsAttributes);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewCostReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewCostReportsAttributes);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewCostLabourHourReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewCostLabourHourReportsAttributes);\n            }\n            if (changeset.canViewChargeupReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewChargeupReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewChargeupReportsAttributes);\n            }\n            if (changeset.canViewProgressReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewProgressReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewProgressReportsAttributes);\n            }\n            if (changeset.canEstimate) {\n              entityAttributesToAdd.push(..._subcontractor.canManageEstimatesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageEstimatesAttributes);\n            }\n            if (changeset.canManageEstimateSettings) {\n              entityAttributesToAdd.push(..._subcontractor.canManageEstimateSettingsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageEstimateSettingsAttributes);\n            }\n            if (changeset.canViewSchedulingReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewSchedulingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewSchedulingReportsAttributes);\n            }\n            if (changeset.canManageSchedulingReports) {\n              entityAttributesToAdd.push(..._subcontractor.canManageSchedulingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageSchedulingReportsAttributes);\n            }\n            if (changeset.canUseReportBuilderReport) {\n              entityAttributesToAdd.push(..._subcontractor.canUseReportBuilderReportAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canUseReportBuilderReportAttributes);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              entityAttributesToAdd.push(..._subcontractor.canCreateHealthAndSafetyAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canCreateHealthAndSafetyAttributes);\n            }\n            if (changeset.canManageHealthAndSafety) {\n              entityAttributesToAdd.push(..._subcontractor.canManageHealthAndSafetyAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageHealthAndSafetyAttributes);\n            }\n            if (changeset.canManageIntegrations) {\n              entityAttributesToAdd.push(..._subcontractor.canManageIntegrationsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageIntegrationsAttributes);\n            }\n            if (changeset.canViewInvoicingReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewInvoicingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewInvoicingReportsAttributes);\n            }\n\n            // workers are set every time\n            workersToAdd.push(...changeset.workers);\n            yield Promise.all([this.handleEntityAttributes([...new Set(entityAttributesToAdd)], [...new Set(entityAttributesToRemove)]), this.handleWorkers([...new Set(workersToAdd)])]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"sendPasswordResetEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            // this will have the effect of sending a password reset email\n            yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSendingTheReminderEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"sendPasswordResetEmail\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.subcontractors`,\n        pageTitle: this.intl.t('common.Subcontractors')\n      }, {\n        route: `${this.model.basePath}.subcontractors`,\n        pageTitle: this.user.isNew ? this.intl.t('entity.settings.people.subcontractors.subcontractor.New subcontractor') : this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get isRunning() {\n      return this.model.user.isRunning || this.model.userChangeset.isRunning || this.model.permissionsChangeset.isRunning || this.model.workers.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports'],\n        [this.intl.t('common.Chargeup')]: ['canViewChargeupReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Costs')]: ['canViewCostFinancialReports', 'canViewBills', 'canViewTimesheets'],\n        [this.intl.t('shared.report.Forecast breakdown')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Labour hours')]: ['canViewBudgetLabourHourReports', 'canViewCostLabourHourReports', 'canViewProgressReports'],\n        [this.intl.t('common.Position')]: ['canViewBudgetFinancialReports', 'canViewBudgetLabourHourReports', 'canViewCostFinancialReports', 'canViewCostLabourHourReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Profit margins')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Quote')]: ['canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('shared.report.Work in progress')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Invoicing')]: ['canViewInvoicingReports'],\n        [this.intl.t('common.Cost to complete')]: ['canViewQuoteReports', 'canViewProgressReports', 'canViewChargeupReports', 'canViewInvoicingReports']\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => this.permissionsChangeset[p]));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canEstimate, this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageEstimateSettings, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canManageProjects, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewProgress, this.permissionsChangeset.canViewProjects, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canViewSchedulingReports, this.permissionsChangeset.canManageSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      const workerCount = this.model.workers.last.value.toArray().filter(w => this.model.user.last.value.includesClaimsAboutWorker(w.id, 'canManageTimesheets')).length;\n      const permissionCount = [this.permissionsChangeset.canManageBills, this.permissionsChangeset.canManageTimesheets, this.permissionsChangeset.canManageNotes, this.permissionsChangeset.canViewBills, this.permissionsChangeset.canViewTimesheets, this.permissionsChangeset.canViewNotes].filter(attribute => attribute).length;\n      return permissionCount + workerCount;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canUseReportBuilderReport, this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewPayrollReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get settingsPermissionsCount() {\n      return [this.permissionsChangeset.canViewWorkers].filter(attribute => attribute).length;\n    }\n    get settingsPermissionsVisible() {\n      if (this._settingsPermissionsVisible != null) return this._settingsPermissionsVisible;\n      return this.settingsPermissionsCount > 0;\n    }\n    set settingsPermissionsVisible(value) {\n      this._settingsPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [this.permissionsChangeset.canCreateHealthAndSafety, this.permissionsChangeset.canManageHealthAndSafety].filter(attribute => attribute).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get user() {\n      return this.model.user.last.value;\n    }\n    get userIsYou() {\n      return this.user === this.sessionData.user;\n    }\n    get canEditUser() {\n      return this.user.isNew || this.userIsYou;\n    }\n    get canManageUser() {\n      return this.userIsYou || this.newFeatureFlags.includesFeatureFlags(this.user, 'canManageUsers');\n    }\n    get canManageUserPermissions() {\n      return !this.userIsYou && this.newFeatureFlags.includesFeatureFlags('canManageUsers');\n    }\n    async handleEntityAttributes(entityAttributesToAdd, _entityAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const entityAttributesToRemove = _entityAttributesToRemove.filter(ar => !entityAttributesToAdd.includes(ar));\n      const existingEntityAttributes = await this.store.simpleQuery('user-entity-attribute', {\n        user: this.user.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(entityAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingEntityAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(entityAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingEntityAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-entity-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute\n        }).save();\n      }))]);\n    }\n    async handleWorkers(workersToAdd) {\n      const existingWorkerAttributes = await this.store.simpleQuery('user-worker-attribute', {\n        user: this.user.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n\n      // remove all the old worker attributes\n      await Promise.all(existingWorkerAttributes.map(pa => pa.destroyRecord()));\n      if (workersToAdd.length) {\n        // setup the new workers\n        const [canManageTimesheets, canManageNotes] = await Promise.all([this.store.findRecord('user-attribute', 'canManageTimesheets'), this.store.findRecord('user-attribute', 'canManageNotes')]);\n\n        // create the relationship\n        await Promise.all(workersToAdd.map(worker => Promise.all([this.store.createRecord('user-worker-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute: canManageTimesheets,\n          worker\n        }).save(), this.store.createRecord('user-worker-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute: canManageNotes,\n          worker\n        }).save()])));\n      }\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"_settingsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _class2);\n  function inviteUserAjax(payload, token) {\n    const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/builda-price-subcontractor';\n    return new _rsvp.default.Promise((resolve, reject) => {\n      // eslint-disable-next-line ember/no-jquery\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: url,\n        data: JSON.stringify(Object.assign(payload, {\n          callback: _environment.default.urls.app + '/reset-password',\n          appURL: _environment.default.urls.app\n        })),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/people/users/index\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\"], function (_exports, _controller, _service, _object, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredUsers', 'model.{basePath,users.last.value}', 'searchString.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isAddingUser\", _descriptor7, this);\n    }\n    get isLoading() {\n      return this.model.users.isRunning || this.model.workers.isRunning;\n    }\n    get filteredUsers() {\n      const result = this.model.users.last.value?.filter(user => {\n        const matchString = `${user.firstName}${user.lastName}${user.email}${user.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingUser\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredUsers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"@ember/object\", \"@glimmer/tracking\", \"portal/routes/entity/settings/people/users/user\"], function (_exports, _asyncArrowRuntime, _controller, _service, _rsvp, _jquery, _environment, _object, _tracking, _user) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/settings/people/users/user\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}', 'user.isNew'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor1, this);\n      _initializerDefineProperty(this, \"_settingsPermissionsVisible\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor11, this);\n      _initializerDefineProperty(this, \"_financialReportingPermissionsVisible\", _descriptor12, this);\n      _defineProperty(this, \"saveUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n\n            // you can only modify your own user\n            if (this.userIsYou) {\n              this.user.firstName = changeset.firstName;\n              this.user.lastName = changeset.lastName;\n              this.user.email = changeset.email;\n              this.user.phoneNumber = changeset.phoneNumber;\n              yield this.user.save();\n              return;\n            }\n            const wasNew = Boolean(this.user.isNew);\n            //validate the any users exists with same email id in different type of user\n            if (wasNew) {\n              const user = yield this.store.simpleQuery('user', {\n                email: changeset.email.toLowerCase()\n              }).then(res => res[0]);\n              if (user) {\n                const userEntityAttribute = yield this.store.simpleQuery('user-entity-attribute', {\n                  user: user.id,\n                  entity: this.sessionData.entity.id\n                });\n                if (userEntityAttribute.length) return this.notifications.warning(this.intl.t('shared.notification.emailAddressAlreadyExists'));\n              }\n            }\n            let userId;\n            const response = yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              phoneNumber: changeset.phoneNumber,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token, this.newFeatureFlags.canUseBuildaPrice, this.newFeatureFlags.canUseFinancialReporting);\n            userId = response.newUserId;\n            this.router.transitionTo(`${this.model.basePath}.users.user`, userId);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved user'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong saving the user'),\n              error\n            });\n          }\n        }\n      }), null, \"saveUser\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.userIsYou ? this.intl.t('shared.notification.areYouSureYouWantToRemoveYourselfFromThisCompany') : this.intl.t('entity.settings.people.users.user.areYouSureYouWantToDeleteThisUser'))) return;\n\n            // fetch the user attributes again so we have all the attributes\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            })]);\n\n            // destroy all the attributes for this entity\n            const destroyAttribute = attribute => {\n              // only destroy attributes for this entity\n              if (attribute.belongsTo('entity').value() === this.sessionData.entity) return attribute.destroyRecord();\n            };\n            // for some reason we need to look up the relationships using old school getters\n            yield Promise.all([Promise.all((this.user.hasMany('entityAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('projectAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('taskAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('workerAttributes').value() || []).map(destroyAttribute))]);\n\n            // if you have deleted yourself, go back to index to refresh permissions and entities\n            if (this.userIsYou) this.router.transitionTo('index');else {\n              // if you have deleted someone else, go back to the users index to reload the users list\n              this.router.transitionTo(`${this.model.basePath}.users.index`);\n              this.notifications.success('Successfully deleted user');\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.userIsYou ? this.intl.t('shared.notification.somethingWentWrongRemovingYouFromTheCompany') : this.intl.t('shared.notification.Something went wrong deleting the user'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const entityAttributesToAdd = [];\n            const entityAttributesToRemove = [];\n            const workersToAdd = [];\n            if (changeset.isCompanyAdministrator) {\n              entityAttributesToAdd.push(..._user.administratorAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.administratorAttributes);\n            }\n            if (changeset.canManageEverything) {\n              entityAttributesToAdd.push(..._user.managerAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.managerAttributes);\n            }\n            if (changeset.canViewBills) {\n              entityAttributesToAdd.push(..._user.canViewBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewBillsAttributes);\n            }\n            if (changeset.canManageBills) {\n              entityAttributesToAdd.push(..._user.canManageBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageBillsAttributes);\n            }\n            if (changeset.canViewInvoices) {\n              entityAttributesToAdd.push(..._user.canViewInvoicesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewInvoicesAttributes);\n            }\n            if (changeset.canManageInvoices) {\n              entityAttributesToAdd.push(..._user.canManageInvoicesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageInvoicesAttributes);\n            }\n            if (changeset.canApproveInvoices) {\n              entityAttributesToAdd.push(..._user.canApproveInvoicesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canApproveInvoicesAttributes);\n            }\n            if (changeset.canViewPurchaseOrders) {\n              entityAttributesToAdd.push(..._user.canViewPurchaseOrdersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewPurchaseOrdersAttributes);\n            }\n            if (changeset.canManagePurchaseOrders) {\n              entityAttributesToAdd.push(..._user.canManagePurchaseOrdersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManagePurchaseOrdersAttributes);\n            }\n            if (changeset.canViewStagePayments) {\n              entityAttributesToAdd.push(..._user.canViewStagePaymentsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewStagePaymentsAttributes);\n            }\n            if (changeset.canManageStagePayments) {\n              entityAttributesToAdd.push(..._user.canManageStagePaymentsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageStagePaymentsAttributes);\n            }\n            if (changeset.canApprovePurchaseOrders) {\n              entityAttributesToAdd.push(..._user.canApprovePurchaseOrdersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canApprovePurchaseOrdersAttributes);\n            }\n            if (changeset.canViewTimesheets) {\n              entityAttributesToAdd.push(..._user.canViewTimesheetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewTimesheetsAttributes);\n            }\n            if (changeset.canManageTimesheets) {\n              entityAttributesToAdd.push(..._user.canManageTimesheetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageTimesheetsAttributes);\n            }\n            if (changeset.canViewProjects) {\n              entityAttributesToAdd.push(..._user.canViewProjectsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewProjectsAttributes);\n            }\n            if (changeset.canManageProjects) {\n              entityAttributesToAdd.push(..._user.canManageProjectsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageProjectsAttributes);\n            }\n            if (changeset.canViewTasks) {\n              entityAttributesToAdd.push(..._user.canViewTasksAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewTasksAttributes);\n            }\n            if (changeset.canManageTasks) {\n              entityAttributesToAdd.push(..._user.canManageTasksAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageTasksAttributes);\n            }\n            if (changeset.canViewBudgets) {\n              entityAttributesToAdd.push(..._user.canViewBudgetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewBudgetsAttributes);\n            }\n            if (changeset.canManageBudgets) {\n              entityAttributesToAdd.push(..._user.canManageBudgetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageBudgetsAttributes);\n            }\n            if (changeset.canViewQuotes) {\n              entityAttributesToAdd.push(..._user.canViewQuotesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewQuotesAttributes);\n            }\n            if (changeset.canViewProgress) {\n              entityAttributesToAdd.push(..._user.canViewProgressAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewProgressAttributes);\n            }\n            if (changeset.canManageProgress) {\n              entityAttributesToAdd.push(..._user.canManageProgressAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageProgressAttributes);\n            }\n            if (changeset.canManageQuotes) {\n              entityAttributesToAdd.push(..._user.canManageQuotesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageQuotesAttributes);\n            }\n            if (changeset.canViewProducts) {\n              entityAttributesToAdd.push(..._user.canViewProductsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewProductsAttributes);\n            }\n            if (changeset.canManageProducts) {\n              entityAttributesToAdd.push(..._user.canManageProductsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageProductsAttributes);\n            }\n            if (changeset.canViewFileStorage) {\n              entityAttributesToAdd.push(..._user.canViewFileStorageAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewFileStorageAttributes);\n            }\n            if (changeset.canManageFileStorage) {\n              entityAttributesToAdd.push(..._user.canManageFileStorageAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageFileStorageAttributes);\n            }\n            if (changeset.canManageWorkers) {\n              entityAttributesToAdd.push(..._user.canManageWorkersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageWorkersAttributes);\n            }\n            if (changeset.canViewWorkers) {\n              entityAttributesToAdd.push(..._user.canViewWorkersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewWorkersAttributes);\n            }\n            if (changeset.canViewPayrollReports) {\n              entityAttributesToAdd.push(..._user.canViewPayrollReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewPayrollReportsAttributes);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              entityAttributesToAdd.push(..._user.canViewBudgetReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewBudgetReportsAttributes);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              entityAttributesToAdd.push(..._user.canViewBudgetLabourHourReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewBudgetLabourHourReportsAttributes);\n            }\n            if (changeset.canViewQuoteReports) {\n              entityAttributesToAdd.push(..._user.canViewQuoteReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewQuoteReportsAttributes);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              entityAttributesToAdd.push(..._user.canViewCostReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewCostReportsAttributes);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              entityAttributesToAdd.push(..._user.canViewCostLabourHourReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewCostLabourHourReportsAttributes);\n            }\n            if (changeset.canViewChargeupReports) {\n              entityAttributesToAdd.push(..._user.canViewChargeupReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewChargeupReportsAttributes);\n            }\n            if (changeset.canViewProgressReports) {\n              entityAttributesToAdd.push(..._user.canViewProgressReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewProgressReportsAttributes);\n            }\n            if (changeset.canViewAccessReports) {\n              entityAttributesToAdd.push(..._user.canViewAccessReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewAccessReportsAttributes);\n            }\n            if (changeset.canEstimate) {\n              entityAttributesToAdd.push(..._user.canManageEstimatesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageEstimatesAttributes);\n            }\n            if (changeset.canManageEstimateSettings) {\n              entityAttributesToAdd.push(..._user.canManageEstimateSettingsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageEstimateSettingsAttributes);\n            }\n            if (changeset.canViewSchedulingReports) {\n              entityAttributesToAdd.push(..._user.canViewSchedulingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewSchedulingReportsAttributes);\n            }\n            if (changeset.canManageSchedulingReports) {\n              entityAttributesToAdd.push(..._user.canManageSchedulingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageSchedulingReportsAttributes);\n            }\n            if (changeset.canUseReportBuilderReport) {\n              entityAttributesToAdd.push(..._user.canUseReportBuilderReportAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canUseReportBuilderReportAttributes);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              entityAttributesToAdd.push(..._user.canCreateHealthAndSafetyAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canCreateHealthAndSafetyAttributes);\n            }\n            if (changeset.canManageHealthAndSafety) {\n              entityAttributesToAdd.push(..._user.canManageHealthAndSafetyAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageHealthAndSafetyAttributes);\n            }\n            if (changeset.canManageIntegrations) {\n              entityAttributesToAdd.push(..._user.canManageIntegrationsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageIntegrationsAttributes);\n            }\n            if (changeset.canViewUsers) {\n              entityAttributesToAdd.push(..._user.canViewUsersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewUsersAttributes);\n            }\n            if (changeset.canManageUsers) {\n              entityAttributesToAdd.push(..._user.canManageUsersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageUsersAttributes);\n            }\n            if (changeset.canViewFinancialReporting) {\n              entityAttributesToAdd.push(..._user.canViewFinancialReportingAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewFinancialReportingAttributes);\n            }\n            if (changeset.canManageFinancialReporting) {\n              entityAttributesToAdd.push(..._user.canManageFinancialReportingAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageFinancialReportingAttributes);\n            }\n            if (changeset.canViewInvoicingReports) {\n              entityAttributesToAdd.push(..._user.canViewInvoicingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewInvoicingReportsAttributes);\n            }\n\n            // workers are set every time\n            workersToAdd.push(...changeset.workers);\n            yield Promise.all([this.handleEntityAttributes([...new Set(entityAttributesToAdd)], [...new Set(entityAttributesToRemove)]), this.handleWorkers([...new Set(workersToAdd)])]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"sendPasswordResetEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            // this will have the effect of sending a password reset email\n            yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token, this.newFeatureFlags.canUseBuildaPrice, this.newFeatureFlags.canUseFinancialReporting);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSendingTheReminderEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"sendPasswordResetEmail\", null));\n    }\n    get permissionsDescription() {\n      if (this.newFeatureFlags.includesFeatureFlags('canUseBuildaPrice')) {\n        return this.intl.t('shared.people-editor.userPermissionsExplanation');\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseFinancialReporting')) {\n        return this.intl.t('entity.settings.people.users.user.userPermissionsAreRulesThatSayWhatAUserCanAndCannotDoInTheSystem');\n      }\n      return false;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.users`,\n        pageTitle: this.intl.t('common.Users')\n      }, {\n        route: `${this.model.basePath}.users`,\n        pageTitle: this.user.isNew ? this.intl.t('entity.settings.people.users.user.New user') : this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get isRunning() {\n      return this.model.user.isRunning || this.model.userChangeset.isRunning || this.model.permissionsChangeset.isRunning || this.model.workers.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports'],\n        [this.intl.t('common.Chargeup')]: ['canViewChargeupReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Costs')]: ['canViewCostFinancialReports', 'canViewBills', 'canViewTimesheets'],\n        [this.intl.t('shared.report.Forecast breakdown')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Labour hours')]: ['canViewBudgetLabourHourReports', 'canViewCostLabourHourReports', 'canViewProgressReports'],\n        [this.intl.t('common.Position')]: ['canViewBudgetFinancialReports', 'canViewBudgetLabourHourReports', 'canViewCostFinancialReports', 'canViewCostLabourHourReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Profit margins')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Quote')]: ['canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('shared.report.Work in progress')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Invoicing')]: ['canViewInvoicingReports'],\n        [this.intl.t('common.Cost to complete')]: ['canViewQuoteReports', 'canViewProgressReports', 'canViewChargeupReports', 'canViewInvoicingReports'],\n        ['Access']: ['canViewAccessReports']\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => this.permissionsChangeset[p]));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canEstimate, this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageEstimateSettings, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canManageProjects, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewProgress, this.permissionsChangeset.canViewProjects, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canViewSchedulingReports, this.permissionsChangeset.canManageSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      const workerCount = this.model.workers.last.value.toArray().filter(w => this.model.user.last.value.includesClaimsAboutWorker(w.id, 'canManageTimesheets')).length;\n      const permissionCount = [this.permissionsChangeset.canManageBills, this.permissionsChangeset.canManageTimesheets, this.permissionsChangeset.canManageNotes, this.permissionsChangeset.canViewBills, this.permissionsChangeset.canViewTimesheets, this.permissionsChangeset.canViewNotes, this.permissionsChangeset.canViewInvoices, this.permissionsChangeset.canManageInvoices, this.permissionsChangeset.canApproveInvoices, this.permissionsChangeset.canViewPurchaseOrders, this.permissionsChangeset.canManagePurchaseOrders, this.permissionsChangeset.canApprovePurchaseOrders, this.permissionsChangeset.canViewStagePayments, this.permissionsChangeset.canManageStagePayments].filter(attribute => attribute).length;\n      return permissionCount + workerCount;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canUseReportBuilderReport, this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewPayrollReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports, this.permissionsChangeset.canViewAccessReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get settingsPermissionsCount() {\n      return [this.permissionsChangeset.canManageWorkers, this.permissionsChangeset.canViewWorkers, this.permissionsChangeset.canManageIntegrations, this.permissionsChangeset.canViewUsers, this.permissionsChangeset.canManageUsers].filter(attribute => attribute).length;\n    }\n    get settingsPermissionsVisible() {\n      if (this._settingsPermissionsVisible != null) return this._settingsPermissionsVisible;\n      return this.settingsPermissionsCount > 0;\n    }\n    set settingsPermissionsVisible(value) {\n      this._settingsPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [this.permissionsChangeset.canCreateHealthAndSafety, this.permissionsChangeset.canManageHealthAndSafety].filter(attribute => attribute).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get financialReportingPermissionsCount() {\n      return [this.permissionsChangeset.canViewFinancialReporting, this.permissionsChangeset.canManageFinancialReporting].filter(attribute => attribute).length;\n    }\n    get financialReportingPermissionsVisible() {\n      if (this._financialReportingPermissionsVisible != null) return this._financialReportingPermissionsVisible;\n      return this.financialReportingPermissionsCount > 0;\n    }\n    set financialReportingPermissionsVisible(value) {\n      this._financialReportingPermissionsVisible = value;\n    }\n    get user() {\n      return this.model.user.last.value;\n    }\n    get userIsYou() {\n      return this.user === this.sessionData.user;\n    }\n    get canEditUser() {\n      return this.user.isNew || this.userIsYou;\n    }\n    get canManageUser() {\n      return this.userIsYou || this.newFeatureFlags.includesFeatureFlags(this.user, 'canManageUsers');\n    }\n    get canManageUserPermissions() {\n      return !this.userIsYou && this.newFeatureFlags.includesFeatureFlags('canManageUsers');\n    }\n    async handleEntityAttributes(entityAttributesToAdd, _entityAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const entityAttributesToRemove = _entityAttributesToRemove.filter(ar => !entityAttributesToAdd.includes(ar));\n      const existingEntityAttributes = await this.store.simpleQuery('user-entity-attribute', {\n        user: this.user.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(entityAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingEntityAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(entityAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingEntityAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-entity-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute\n        }).save();\n      }))]);\n    }\n    async handleWorkers(workersToAdd) {\n      const existingWorkerAttributes = await this.store.simpleQuery('user-worker-attribute', {\n        user: this.user.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n\n      // remove all the old worker attributes\n      await Promise.all(existingWorkerAttributes.map(pa => pa.destroyRecord()));\n      if (workersToAdd.length) {\n        // setup the new workers\n        const [canManageTimesheets, canManageNotes] = await Promise.all([this.store.findRecord('user-attribute', 'canManageTimesheets'), this.store.findRecord('user-attribute', 'canManageNotes')]);\n\n        // create the relationship\n        await Promise.all(workersToAdd.map(worker => Promise.all([this.store.createRecord('user-worker-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute: canManageTimesheets,\n          worker\n        }).save(), this.store.createRecord('user-worker-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute: canManageNotes,\n          worker\n        }).save()])));\n      }\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"_settingsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"_financialReportingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _class2);\n  function inviteUserAjax(payload, token, canUseBuildaPrice, canUseFinancialReporting) {\n    // TODO it would be good if we could refactor this to be generic or do it server side\n    let url;\n    if (canUseBuildaPrice) url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/builda-price';else if (canUseFinancialReporting) url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/financials';else throw new Error('No module available');\n    return new _rsvp.default.Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: url,\n        data: JSON.stringify(Object.assign(payload, {\n          callback: _environment.default.urls.app + '/reset-password',\n          appURL: _environment.default.urls.app\n        })),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredWorkers', 'model.{basePath,workers.last.value}', 'searchString.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"disabledWorkersVisible\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"session\", _descriptor6, this);\n      _defineProperty(this, \"queryParams\", ['filter']);\n      _defineProperty(this, \"copyAuthCode\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (worker) {\n          // we don't have a code to copy\n          if (!worker.authCode) return;\n          navigator.clipboard.writeText(worker.authCode);\n          // wait one second to show the \"copied\" pop up\n          yield new Promise(resolve => setTimeout(resolve, 750));\n        }\n      }), null, \"copyAuthCode\", null));\n    }\n    get isLoading() {\n      return this.model.workers.isRunning;\n    }\n    get filteredWorkers() {\n      const result = this.model.workers.last.value?.filter(worker => {\n        const matchString = `${worker.firstName}${worker.lastName}${worker.email}${worker.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"disabledWorkersVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredWorkers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredWorkers\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"jquery\", \"portal/config/environment\", \"@ember/service\", \"portal/routes/entity/settings/people/workers/worker\", \"@ember/object\", \"ember-changeset\", \"@glimmer/tracking\", \"moment\", \"portal/utils/profit-margin\", \"portal/utils/get-default-language\"], function (_exports, _asyncArrowRuntime, _controller, _jquery, _environment, _service, _worker, _object, _emberChangeset, _tracking, _moment, _profitMargin, _getDefaultLanguage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"jquery\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"portal/routes/entity/settings/people/workers/worker\",0,\"@ember/object\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"moment\",0,\"portal/utils/profit-margin\",0,\"portal/utils/get-default-language\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.worker.last.value.{fullName,id}', 'worker.isNew'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"session\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor5, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"store\", _descriptor8, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor9, this);\n      _initializerDefineProperty(this, \"backdateChargeOutRateChangeSet\", _descriptor0, this);\n      _initializerDefineProperty(this, \"backdateCostRateChangeSet\", _descriptor1, this);\n      _defineProperty(this, \"languages\", _getDefaultLanguage.languages);\n      _defineProperty(this, \"saveWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (workerChangeset) {\n          try {\n            yield workerChangeset.validate();\n            if (!workerChangeset.isValid) return;\n            const wasNew = Boolean(this.worker.isNew);\n            yield workerChangeset.save();\n\n            // let workers see everything by default\n            if (wasNew) yield this.handleEntityAttributes(_worker.workerAttributes, []);\n            if (wasNew) {\n              yield this.store.simpleQuery('worker', {\n                entity: this.sessionData.entity.id\n              });\n              this.router.transitionTo(`${this.model.basePath}.workers.worker`, this.worker.id);\n            }\n            this.notifications.success(this.intl.t('entity.settings.people.workers.worker.Successfully saved worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.Something went wrong saving the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"saveWorker\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (permissionChangeset) {\n          try {\n            yield permissionChangeset.validate();\n            if (!permissionChangeset.isValid) return;\n\n            // if you can see all he projects\n            if (permissionChangeset.get('canSeeProjectsAndTasks')) yield this.handleEntityAttributes(_worker.workerAttributes, []);else yield this.handleEntityAttributes([], _worker.workerAttributes);\n            if (permissionChangeset.get('canCreateHealthAndSafety')) yield this.handleEntityAttributes(_worker.workerHealthAndSafetyAttributes, []);else yield this.handleEntityAttributes([], _worker.workerHealthAndSafetyAttributes);\n            this.notifications.success(this.intl.t('entity.settings.people.workers.worker.Successfully saved worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.Something went wrong saving the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"deleteWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const confirmMessage = this.canDeleteWorker ? this.intl.t('entity.settings.people.workers.worker.areYouSureYouWantToDeleteTheWorker') : this.intl.t('entity.settings.people.workers.worker.areYouSureYouWantToDisableTheWorker');\n            if (!confirm(confirmMessage)) return;\n            if (this.canDeleteWorker) {\n              yield this.worker.destroyRecord();\n            } else {\n              this.worker.isActive = false;\n              yield this.handleEntityAttributes([], [..._worker.workerAttributes, ..._worker.workerHealthAndSafetyAttributes]);\n              yield this.worker.save();\n            }\n            this.router.transitionTo(`${this.model.basePath}.workers`);\n            this.notifications.success(this.canDeleteWorker ? this.intl.t('entity.settings.people.workers.worker.Successfully deleted worker') : this.intl.t('entity.settings.people.workers.worker.Successfully disabled worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.canDeleteWorker ? this.intl.t('entity.settings.people.workers.worker.Something went wrong deleting the worker') : this.intl.t('entity.settings.people.workers.worker.somethingWentWrongDisablingTheWorker'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteWorker\", null));\n      _defineProperty(this, \"enableWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            this.worker.isActive = true;\n            yield this.handleEntityAttributes(_worker.workerAttributes, []);\n            yield this.worker.save();\n            this.notifications.success(this.intl.t('entity.settings.people.workers.worker.Successfully enabled worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.Something went wrong enabling the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"enableWorker\", null));\n      _defineProperty(this, \"validateChargeOutRateContent\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue ?? oldValue;\n        if (key === 'startDate' && this.backdateChargeOutRateChangeSet.endDate && value) {\n          if (Date.parse(value) > Date.parse(this.backdateChargeOutRateChangeSet.endDate)) {\n            return this.intl.t('validation.startDateShouldBeBeforeEndDate');\n          }\n        }\n        if (key === 'endDate' && this.backdateChargeOutRateChangeSet.startDate && value) {\n          if (Date.parse(value) < Date.parse(this.backdateChargeOutRateChangeSet.startDate)) {\n            return this.intl.t('validation.endDateShouldBeAfterStartDate');\n          }\n        }\n        if (key === 'chargeOutRate') {\n          return value >= 0 || this.intl.t('validation.chargeOutRate');\n        }\n        return true;\n      });\n      _defineProperty(this, \"validateCostRateContent\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue ?? oldValue;\n        if (key === 'startDate' && this.backdateCostRateChangeSet.endDate && value) {\n          if (Date.parse(value) > Date.parse(this.backdateCostRateChangeSet.endDate)) {\n            return this.intl.t('validation.startDateShouldBeBeforeEndDate');\n          }\n        }\n        if (key === 'endDate' && this.backdateCostRateChangeSet.startDate && value) {\n          if (Date.parse(value) < Date.parse(this.backdateCostRateChangeSet.startDate)) {\n            return this.intl.t('validation.endDateShouldBeAfterStartDate');\n          }\n        }\n        if (key === 'costRate') {\n          return value >= 0 || this.intl.t('validation.costRate');\n        }\n        return true;\n      });\n      _defineProperty(this, \"backdateChargeOutRateMap\", {\n        startDate: this.validateChargeOutRateContent,\n        endDate: this.validateChargeOutRateContent,\n        chargeOutRate: this.validateChargeOutRateContent\n      });\n      _defineProperty(this, \"backdateCostRateMap\", {\n        startDate: this.validateCostRateContent,\n        endDate: this.validateCostRateContent,\n        costRate: this.validateCostRateContent\n      });\n      _defineProperty(this, \"backdateChargeOutRate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.backdateChargeOutRateChangeSet.validate();\n            if (!this.backdateChargeOutRateChangeSet.isValid) return;\n            yield this.handleEntityAttributes(_worker.workerAttributes, []);\n\n            // perform the backdate\n            const result = yield this.portalApi.authPost('/backdate-charge-out-rates', {\n              entityId: this.sessionData.entity.id,\n              chargeOutRates: [{\n                workerId: this.worker.id,\n                chargeOutRate: this.backdateChargeOutRateChangeSet.get('chargeOutRate')\n              }],\n              startDate: this.backdateChargeOutRateChangeSet.startDate ? (0, _moment.default)(this.backdateChargeOutRateChangeSet.startDate).format('YYYY-MM-DD') : undefined,\n              endDate: this.backdateChargeOutRateChangeSet.endDate ? (0, _moment.default)(this.backdateChargeOutRateChangeSet.endDate).format('YYYY-MM-DD') : undefined\n            });\n            this.backdateChargeOutRateChangeSet = null;\n            this.notifications.success(this.intl.t('shared.people-editor.workers.worker.xTimesheetsBackdated', {\n              number: result.numberOfTimesheetsUpdated,\n              timesheet: result.numberOfTimesheetsUpdated === 1 ? 'timesheet' : 'timesheets'\n            }));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.people-editor.workers.worker.somethingWentWrongBackdatingTimesheets'),\n              error\n            });\n          }\n        }\n      }), null, \"backdateChargeOutRate\", null));\n      _defineProperty(this, \"backdateCostRate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.backdateCostRateChangeSet.validate();\n            if (!this.backdateCostRateChangeSet.isValid) return;\n            yield this.handleEntityAttributes(_worker.workerAttributes, []);\n\n            // perform the backdate\n            const result = yield this.portalApi.authPost('/backdate-cost-rates', {\n              entityId: this.sessionData.entity.id,\n              costRates: [{\n                workerId: this.worker.id,\n                costRate: this.backdateCostRateChangeSet.get('costRate')\n              }],\n              startDate: this.backdateCostRateChangeSet.startDate ? (0, _moment.default)(this.backdateCostRateChangeSet.startDate).format('YYYY-MM-DD') : undefined,\n              endDate: this.backdateCostRateChangeSet.endDate ? (0, _moment.default)(this.backdateCostRateChangeSet.endDate).format('YYYY-MM-DD') : undefined\n            });\n            this.backdateCostRateChangeSet = null;\n            this.notifications.success(this.intl.t('shared.people-editor.workers.worker.xTimesheetsBackdated', {\n              number: result.numberOfTimesheetsUpdated,\n              timesheet: result.numberOfTimesheetsUpdated === 1 ? 'timesheet' : 'timesheets'\n            }));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.people-editor.workers.worker.somethingWentWrongBackdatingTimesheets'),\n              error\n            });\n          }\n        }\n      }), null, \"backdateCostRate\", null));\n      _defineProperty(this, \"resetWorkerAuthCode\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield generateAuthCodeAjax({\n              workerId: this.worker.id\n            }, this.session.data.authenticated.access_token);\n            yield this.store.findRecord('worker', this.worker.id);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.somethingWentWrongSettingWorkerLoginCode'),\n              error\n            });\n          }\n        }\n      }), null, \"resetWorkerAuthCode\", null));\n      _initializerDefineProperty(this, \"copiedAuthCode\", _descriptor10, this);\n      _defineProperty(this, \"reloadEmployees\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.accountingPlatform.getEmployees.perform(this.sessionData.entity);\n            yield this.model.accountingPlatformEmployees.perform();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.somethingWentWrongReloadingXeroEmployees'),\n              error\n            });\n          }\n        }\n      }), null, \"reloadEmployees\", null));\n      _defineProperty(this, \"reloadEarningsRates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.accountingPlatform.getEarningRates.perform(this.sessionData.entity);\n            if (this.accountingPlatform.activePlatform === 'xero') {\n              yield this.model.xeroEarningsRates.perform();\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.somethingWentWrongReloadingXeroEarningsRates'),\n              error\n            });\n          }\n        }\n      }), null, \"reloadEarningsRates\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.workers`,\n        pageTitle: this.intl.t('common.Workers')\n      }, {\n        route: `${this.model.basePath}.workers`,\n        pageTitle: this.worker.isNew ? this.intl.t('entity.settings.people.workers.worker.New worker') : this.model.worker.last.value.fullName\n      }];\n      return paths;\n    }\n    get canManageWorkers() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageWorkers');\n    }\n    get canUseWorkerType() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseWorkerType');\n    }\n    get canUsePayRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUsePayRate');\n    }\n    get canUseCostRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseCostRate');\n    }\n    get canUseWorkerCostCalculator() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseWorkerCostCalculator');\n    }\n    get canUseChargeOutRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseChargeOutRate');\n    }\n    get canUseBackdateChargeOutRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseBackdateChargeOutRate');\n    }\n    get canUseBackdateCostRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseBackdateCostRate');\n    }\n    get isRunning() {\n      return this.model.worker.isRunning || this.model.workersTimesheets.isRunning || this.model.workerChangeset.isRunning || this.model.labourCostCalculators.isRunning || this.model.profitMargin.isRunning;\n    }\n    get worker() {\n      return this.model.worker.last.value;\n    }\n    get workerTypes() {\n      return [{\n        label: 'Hourly worker',\n        value: false\n      }, {\n        label: 'Contractor',\n        value: true\n      }];\n    }\n    get canDeleteWorker() {\n      return this.model.workersTimesheets.last.value.length === 0;\n    }\n    get effectiveProfitMargin() {\n      const calculatedValue = (0, _profitMargin.calculatePercentage)(this.sessionData.entity.effectiveProfitMargin.labourPercentage.type, this.model.workerChangeset.last.value.costRate, this.model.workerChangeset.last.value.chargeOutRate);\n      return calculatedValue;\n    }\n    setDefaultChargeOutRate() {\n      if (!this.model.workerChangeset.last.value.chargeOutRate && this.model.workerChangeset.last.value.costRate) this.setDefaultEffectiveMargin();\n    }\n    setDefaultEffectiveMargin() {\n      const costRate = Number(this.model.workerChangeset.last.value.costRate);\n      const calculatedValue = (0, _profitMargin.calculateValue)(this.sessionData.entity.effectiveProfitMargin.labourPercentage.type, Number.isFinite(costRate) && costRate > 0 ? costRate : 0, this.sessionData.entity.effectiveProfitMargin.labourPercentage.value);\n      this.model.workerChangeset.last.value.set('chargeOutRate', calculatedValue);\n    }\n    initBackdateChargeOutRateChangeset() {\n      this.backdateChargeOutRateChangeSet = (0, _emberChangeset.Changeset)({\n        startDate: null,\n        endDate: new Date(),\n        chargeOutRate: this.model.workerChangeset.last.value.chargeOutRate\n      }, this.validateChargeOutRateContent, this.backdateChargeOutRateMap);\n    }\n    initBackdateCostRateChangeset() {\n      this.backdateCostRateChangeSet = (0, _emberChangeset.Changeset)({\n        startDate: null,\n        endDate: new Date(),\n        costRate: this.model.workerChangeset.last.value.costRate\n      }, this.validateCostRateContent, this.backdateCostRateMap);\n    }\n    copyAuthCode() {\n      if (!this.worker.authCode) return;\n      navigator.clipboard.writeText(this.worker.authCode);\n      this.copiedAuthCode = true;\n      setTimeout(() => this.copiedAuthCode = false, 1500);\n    }\n    async handleEntityAttributes(entityAttributesToAdd, _entityAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const entityAttributesToRemove = _entityAttributesToRemove.filter(ar => !entityAttributesToAdd.includes(ar));\n      const existingEntityAttributes = await this.store.simpleQuery('worker-entity-attribute', {\n        worker: this.worker.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(entityAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingEntityAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(entityAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingEntityAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-entity-attribute', {\n          entity: this.sessionData.entity,\n          worker: this.worker,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"backdateChargeOutRateChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"backdateCostRateChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDefaultChargeOutRate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDefaultChargeOutRate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDefaultEffectiveMargin\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDefaultEffectiveMargin\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"initBackdateChargeOutRateChangeset\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initBackdateChargeOutRateChangeset\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"initBackdateCostRateChangeset\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initBackdateCostRateChangeset\"), _class2.prototype), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"copiedAuthCode\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"copyAuthCode\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"copyAuthCode\"), _class2.prototype), _class2);\n  function generateAuthCodeAjax(payload, token) {\n    return new Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/generate-worker-code',\n        data: JSON.stringify(payload),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/profile\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"portal/utils/email-validator\", \"moment\", \"portal/utils/get-default-language\"], function (_exports, _asyncArrowRuntime, _controller, _service, _object, _tracking, _emailValidator, _moment, _getDefaultLanguage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"portal/utils/email-validator\",0,\"moment\",0,\"portal/utils/get-default-language\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"session\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor8, this);\n      _initializerDefineProperty(this, \"passwordModalVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"termsOfServiceModalVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"oldPassword\", _descriptor1, this);\n      _initializerDefineProperty(this, \"newPassword\", _descriptor10, this);\n      _initializerDefineProperty(this, \"confirmPassword\", _descriptor11, this);\n      _initializerDefineProperty(this, \"userCanManageHealthAndSafety\", _descriptor12, this);\n      _defineProperty(this, \"languages\", _getDefaultLanguage.languages);\n      _defineProperty(this, \"userValidationMap\", {\n        firstName: this.validateUserContent.bind(this),\n        lastName: this.validateUserContent.bind(this),\n        email: this.validateUserContent.bind(this),\n        language: (_key, val) => Boolean(val) || 'Please provide a valid language'\n      });\n      _defineProperty(this, \"saveUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user) {\n          yield user.validate();\n          if (user.isInvalid) return;\n          try {\n            // Applies the valid changes to the underlying Object.\n            user.execute();\n            yield user.save();\n            const hasHAndS = this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin', 'entityCanUseHealthAndSafety');\n            if (hasHAndS) yield this.addOrRemoveHAndSPerm(this.userCanManageHealthAndSafety);\n            this.notifications.success(this.intl.t('entity.settings.profile.User details saved successfully'));\n            this.intl.setLocale([user.language]);\n            _moment.default.locale(user.language.toLowerCase());\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.profile.somethingWentWrongWhileUpdatingDetails'),\n              error\n            });\n          }\n        }\n      }), null, \"saveUser\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('shared.notification.areYouSureYouWantToRemoveYourselfFromThisCompany'))) return;\n\n            // fetch the user attributes again so we have all the attributes\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            })]);\n\n            // destroy all the attributes for this entity\n            const destroyAttribute = attribute => {\n              // only destroy attributes for this entity\n              if (attribute.belongsTo('entity').value() === this.sessionData.entity) return attribute.destroyRecord();\n            };\n            yield Promise.all([Promise.all((this.user.hasMany('entityAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('projectAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('taskAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('workerAttributes').value() || []).map(destroyAttribute))]);\n            this.router.transitionTo('index');\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongRemovingYouFromTheCompany'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"changePassword\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const currentPassword = this.oldPassword;\n          const password = this.newPassword;\n          const confirmPassword = this.confirmPassword;\n          if (password !== confirmPassword) {\n            this.notifications.warning(this.intl.t('entity.settings.profile.Passwords do not match'));\n            return;\n          }\n          try {\n            const payload = {\n              data: {\n                id: this.sessionData.user.id,\n                type: 'users',\n                attributes: {\n                  password\n                }\n              },\n              meta: {\n                currentPassword\n              }\n            };\n            yield this.buildaPrice.changePassword(payload);\n            this.notifications.success(this.intl.t('entity.settings.profile.Password changed successfully'));\n            yield this.closePasswordModal.perform();\n          } catch (error) {\n            const message = error?.responseJSON?.errors?.[0]?.title;\n            if (error.status === 400 && message) {\n              this.notifications.error({\n                message,\n                error\n              });\n              return;\n            }\n            this.notifications.error({\n              message: this.intl.t('entity.settings.profile.somethingWentWrongWhileHangingPassword'),\n              error\n            });\n            this.passwordModalVisible = false;\n          }\n        }\n      }), null, \"changePassword\", null));\n      _defineProperty(this, \"closePasswordModal\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.passwordModalVisible = false;\n          this.oldPassword = null;\n          this.newPassword = null;\n          this.confirmPassword = null;\n        }\n      }), null, \"closePasswordModal\", null));\n    }\n    get isLoading() {\n      return this.model.user.isRunning || this.model.terms.isRunning;\n    }\n    get user() {\n      return this.sessionData.user;\n    }\n    initUserCanManageHealthAndSafety() {\n      this.userCanManageHealthAndSafety = this.model.user.lastSuccessful.value?.includesClaimsAboutEntity(this.sessionData.entity.id, 'canManageHealthAndSafety', 'canCreateHealthAndSafety');\n    }\n    validateUserContent(key, newVal, oldVal, _changes, _content) {\n      const value = (newVal ?? oldVal) || '';\n      if (key === 'firstName') {\n        return value.length > 1 || this.intl.t('validation.firstName');\n      }\n      if (key === 'lastName') {\n        return value.length > 0 || this.intl.t('validation.lastName');\n      }\n      if (key === 'email' && newVal) {\n        return (0, _emailValidator.default)(newVal) || this.intl.t('validation.Email');\n      }\n    }\n    async addOrRemoveHAndSPerm(userCanManageHealthAndSafety) {\n      const [[canCreateHealthAndSafety, canManageHealthAndSafety], existingEntityAttributes] = await Promise.all([this.store.query('user-attribute', {\n        filter: {\n          and: [{\n            field: '_id',\n            op: 'IN',\n            value: ['canManageHealthAndSafety', 'canCreateHealthAndSafety']\n          }]\n        },\n        sort: 'attribute'\n      }).then(r => r.toArray()), this.store.query('user-entity-attribute', {\n        filter: {\n          and: [{\n            field: 'user',\n            op: 'EQ',\n            value: this.model.user.lastSuccessful.value.id\n          }, {\n            field: 'entity',\n            op: 'EQ',\n            value: this.sessionData.entity.id\n          }, {\n            field: 'attribute',\n            op: 'IN',\n            value: ['canManageHealthAndSafety', 'canCreateHealthAndSafety']\n          }]\n        }\n      }).then(r => r.toArray())]);\n      if (userCanManageHealthAndSafety) {\n        // add the perms only if they do not already exist\n        const hasManage = existingEntityAttributes.some(attr => attr.belongsTo('attribute').id() === 'canManageHealthAndSafety');\n        const hasCreate = existingEntityAttributes.some(attr => attr.belongsTo('attribute').id() === 'canCreateHealthAndSafety');\n        if (!hasManage) {\n          await this.store.createRecord('user-entity-attribute', {\n            entity: this.sessionData.entity,\n            user: this.model.user.lastSuccessful.value,\n            attribute: canManageHealthAndSafety\n          }).save();\n        }\n        if (!hasCreate) {\n          await this.store.createRecord('user-entity-attribute', {\n            entity: this.sessionData.entity,\n            user: this.model.user.lastSuccessful.value,\n            attribute: canCreateHealthAndSafety\n          }).save();\n        }\n      } else {\n        // remove the perms\n        await Promise.all(existingEntityAttributes.map(attr => attr.destroyRecord()));\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"passwordModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"termsOfServiceModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"oldPassword\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"newPassword\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"confirmPassword\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"userCanManageHealthAndSafety\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"initUserCanManageHealthAndSafety\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initUserCanManageHealthAndSafety\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/suppliers\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/initiate-password-reset\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"jquery\", \"portal/config/environment\", \"portal/utils/email-validator\"], function (_exports, _controller, _service, _object, _jquery, _environment, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"jquery\",0,\"portal/config/environment\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    queryParams: ['email'],\n    actions: {\n      resetPassword() {\n        const email = (0, _object.get)(this, 'email');\n        if (!email) {\n          (0, _object.get)(this, 'notifications').warning('Please enter an email address.');\n          return;\n        }\n        if (!(0, _emailValidator.default)(email)) {\n          (0, _object.get)(this, 'notifications').warning('Please enter a valid email address.');\n          return;\n        }\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth/initiate-password-reset';\n        const callback = _environment.default.urls.app + '/reset-password';\n        const payload = {\n          callback,\n          email: email.toLowerCase()\n        };\n        const headers = {\n          Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n        };\n        (0, _object.set)(this, 'isResettingPassword', true);\n        return _jquery.default.ajax({\n          contentType: 'application/json',\n          method: 'POST',\n          url,\n          data: JSON.stringify(payload),\n          headers\n        }).then(() => {\n          (0, _object.set)(this, 'isResettingPassword', false);\n          (0, _object.get)(this, 'notifications').success(`Please check your inbox for a password reset link (If you do not receive the password reset email check your spam folder).`, 6000);\n        }, reason => {\n          (0, _object.set)(this, 'isResettingPassword', false);\n          if (reason.status === 400) {\n            (0, _object.get)(this, 'notifications').error(reason.responseJSON.errors[0].title);\n          } else if (reason.status === 500) {\n            (0, _object.get)(this, 'notifications').error('Sorry, a password reset email could not be sent. Please contact support or try again later.');\n          } else {\n            this.send('error', reason);\n          }\n        });\n      }\n    }\n  });\n});","define(\"portal/controllers/no-access\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _controller, _object, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"orgSelectorOpen\", _descriptor3, this);\n    }\n    signOut() {\n      this.session.invalidate();\n    }\n    changeEntity({\n      id\n    }) {\n      this.sessionData.changeEntity(id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"orgSelectorOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"signOut\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"signOut\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"changeEntity\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"changeEntity\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/reset-password\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@ember/runloop\", \"jquery\", \"portal/config/environment\"], function (_exports, _controller, _service, _object, _runloop, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"jquery\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    queryParams: ['token', 'email'],\n    tokenExpired: false,\n    actions: {\n      resetPasswordForm() {\n        const token = (0, _object.get)(this, 'token');\n        const password = (0, _object.get)(this, 'newPassword');\n        const passwordConfirmation = (0, _object.get)(this, 'confirmPassword');\n        const notifications = (0, _object.get)(this, 'notifications');\n        notifications.clearAll();\n        if (!token) {\n          notifications.error('Password could not be reset. Please click on the link in the email and try again.');\n          return;\n        }\n        if (!password) {\n          notifications.warning('Please enter a new password.');\n          return;\n        }\n        if (password !== passwordConfirmation) {\n          notifications.warning('Passwords do not match.');\n          return;\n        }\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth/reset-password';\n        const payload = {\n          password,\n          token\n        };\n        (0, _object.set)(this, 'isResettingPassword', true);\n        return _jquery.default.ajax({\n          contentType: 'application/json',\n          method: 'PATCH',\n          url,\n          data: JSON.stringify(payload)\n        }).then(data => {\n          (0, _runloop.run)(() => {\n            (0, _object.set)(this, 'isResettingPassword', false);\n            notifications.success('Your password has been reset.');\n            (0, _object.get)(this, 'session.session').authenticate('authenticator:push-session', data);\n            this.router.transitionTo('index');\n          });\n        }, reason => {\n          (0, _runloop.run)(() => {\n            (0, _object.set)(this, 'isResettingPassword', false);\n            if (reason.status === 400) {\n              notifications.error(reason.responseJSON.errors[0].title);\n              (0, _object.set)(this, 'tokenExpired', true);\n            } else {\n              this.send('error', reason);\n            }\n          });\n        });\n      },\n      handleRequestPasswordReset() {\n        (0, _object.set)(this, 'tokenExpired', false);\n        this.router.transitionTo('initiate-password-reset', {\n          queryParams: {\n            email: (0, _object.get)(this, 'email').toLowerCase() || ''\n          }\n        });\n      }\n    }\n  });\n});","define(\"portal/controllers/terms-of-service\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    actions: {\n      continue() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const user = (0, _object.get)(this, 'model.user');\n        const terms = (0, _object.get)(user, 'hasAcceptedTerms');\n        notifications.clearAll();\n        if (!terms) {\n          notifications.error('You must agree to the terms and conditions before using the Portal.');\n          return;\n        }\n        (0, _object.set)(this, 'isSubmitting', true);\n        user.save().then(() => this.router.transitionTo('index'), err => this.send('error', err)).finally(() => (0, _object.set)(this, 'isSubmitting', false));\n      }\n    }\n  });\n});","define(\"portal/data-adapter\", [\"exports\", \"@ember-data/debug/data-adapter\"], function (_exports, _dataAdapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dataAdapter.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/debug/data-adapter\"eaimeta@70e063a35619d71f\n});","define(\"portal/formats\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    time: {\n      hhmmss: {\n        hour: 'numeric',\n        minute: 'numeric',\n        second: 'numeric'\n      }\n    },\n    date: {\n      hhmmss: {\n        hour: 'numeric',\n        minute: 'numeric',\n        second: 'numeric'\n      }\n    },\n    number: {\n      compact: {\n        notation: 'compact'\n      },\n      EUR: {\n        style: 'currency',\n        currency: 'EUR'\n      },\n      USD: {\n        style: 'currency',\n        currency: 'USD'\n      },\n      NZD: {\n        style: 'currency',\n        currency: 'NZD'\n      },\n      CNY: {\n        style: 'currency',\n        currency: 'CNY'\n      },\n      AUD: {\n        style: 'currency',\n        currency: 'AUD'\n      },\n      GBP: {\n        style: 'currency',\n        currency: 'GBP'\n      }\n    }\n  };\n});","define(\"portal/helpers/-base\", [\"exports\", \"ember-moment/helpers/-base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _base.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/-base\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/and\", [\"exports\", \"ember-truth-helpers/helpers/and\"], function (_exports, _and) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _and.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/and\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/app-version\", [\"exports\", \"@ember/component/helper\", \"portal/config/environment\", \"ember-cli-app-version/utils/regexp\"], function (_exports, _helper, _environment, _regexp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.appVersion = appVersion;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"portal/config/environment\",0,\"ember-cli-app-version/utils/regexp\"eaimeta@70e063a35619d71f\n  function appVersion(_, hash = {}) {\n    const version = _environment.default.APP.version;\n    // e.g. 1.0.0-alpha.1+4jds75hf\n\n    // Allow use of 'hideSha' and 'hideVersion' For backwards compatibility\n    let versionOnly = hash.versionOnly || hash.hideSha;\n    let shaOnly = hash.shaOnly || hash.hideVersion;\n    let match = null;\n    if (versionOnly) {\n      if (hash.showExtended) {\n        match = version.match(_regexp.versionExtendedRegExp); // 1.0.0-alpha.1\n      }\n      // Fallback to just version\n      if (!match) {\n        match = version.match(_regexp.versionRegExp); // 1.0.0\n      }\n    }\n    if (shaOnly) {\n      match = version.match(_regexp.shaRegExp); // 4jds75hf\n    }\n    return match ? match[0] : version;\n  }\n  var _default = _exports.default = (0, _helper.helper)(appVersion);\n});","define(\"portal/helpers/assign\", [\"exports\", \"ember-assign-helper/helpers/assign\"], function (_exports, _assign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _assign.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-assign-helper/helpers/assign\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/bool\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function bool([param]) {\n    return !!param;\n  });\n});","define(\"portal/helpers/camel-case-words\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.camelCaseWords = camelCaseWords;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function camelCaseWords([words]) {\n    return words.split(' ').map(word => {\n      return word[0].toUpperCase() + word.slice(1);\n    }).join(' ');\n  }\n  var _default = _exports.default = (0, _helper.helper)(camelCaseWords);\n});","define(\"portal/helpers/camelize\", [\"exports\", \"ember-cli-string-helpers/helpers/camelize\"], function (_exports, _camelize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"camelize\", {\n    enumerable: true,\n    get: function () {\n      return _camelize.camelize;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _camelize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/camelize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/cancel-all\", [\"exports\", \"ember-concurrency/helpers/cancel-all\"], function (_exports, _cancelAll) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _cancelAll.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/helpers/cancel-all\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/capitalize\", [\"exports\", \"ember-cli-string-helpers/helpers/capitalize\"], function (_exports, _capitalize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"capitalize\", {\n    enumerable: true,\n    get: function () {\n      return _capitalize.capitalize;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _capitalize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/capitalize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/changeset-get\", [\"exports\", \"ember-changeset/helpers/changeset-get\"], function (_exports, _changesetGet) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _changesetGet.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset/helpers/changeset-get\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/changeset-set\", [\"exports\", \"ember-changeset/helpers/changeset-set\"], function (_exports, _changesetSet) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"changesetSet\", {\n    enumerable: true,\n    get: function () {\n      return _changesetSet.changesetSet;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _changesetSet.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset/helpers/changeset-set\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/changeset\", [\"exports\", \"ember-changeset/helpers/changeset\"], function (_exports, _changeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"changeset\", {\n    enumerable: true,\n    get: function () {\n      return _changeset.changeset;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _changeset.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset/helpers/changeset\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/chunk-callback\", [\"exports\", \"lodash\", \"portal/config/environment\", \"portal/utils/collection-to-array\"], function (_exports, _lodash, _environment, _collectionToArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = chunkCallback;\n  0; //eaimeta@70e063a35619d71f0,\"lodash\",0,\"portal/config/environment\",0,\"portal/utils/collection-to-array\"eaimeta@70e063a35619d71f\n  /**\n   * In Node 11+ a default request size limit of 81920 bytes was introduced.\n   * In requests with large arrays, you can easily exceed the limit.\n   * This function is intended to keep request size bellow this limit, by creating multiple requests.\n   * @param {array} list - the array of items to be chunked\n   * @param {number} chunkSize - the chunk size\n   * @param {function} callback - the callback to be run on each chunk\n   * @returns {promise}\n   */\n  function chunkCallback(list = [], chunkSize = _environment.default.chunkCallbackSize, callback = () => null) {\n    const chunks = _lodash.default.chunk(list, chunkSize);\n    return Promise.all(chunks.map(callback)).then(results => results.reduce((arr, item) => [...arr, ...(0, _collectionToArray.default)(item)], []));\n  }\n});","define(\"portal/helpers/classify\", [\"exports\", \"ember-cli-string-helpers/helpers/classify\"], function (_exports, _classify) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"classify\", {\n    enumerable: true,\n    get: function () {\n      return _classify.classify;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _classify.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/classify\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/convert-to-title-case\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.convertToTitleCase = convertToTitleCase;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function convertToTitleCase([str]) {\n    return str?.replace(/\\w\\S*/g, txt => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase());\n  }\n  var _default = _exports.default = (0, _helper.helper)(convertToTitleCase);\n});","define(\"portal/helpers/dasherize\", [\"exports\", \"ember-cli-string-helpers/helpers/dasherize\"], function (_exports, _dasherize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"dasherize\", {\n    enumerable: true,\n    get: function () {\n      return _dasherize.dasherize;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dasherize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/dasherize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/date-ago\", [\"exports\", \"@ember/component/helper\", \"moment\"], function (_exports, _helper, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.dateAgo = dateAgo;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"moment\"eaimeta@70e063a35619d71f\n  function dateAgo(params) {\n    const thatMoment = params[0];\n    return (0, _moment.default)(thatMoment).fromNow();\n  }\n  var _default = _exports.default = _helper.default.helper(dateAgo);\n});","define(\"portal/helpers/element\", [\"exports\", \"ember-element-helper/helpers/element\"], function (_exports, _element) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _element.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-element-helper/helpers/element\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ellipsis-characters\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.ellipsisTextCharacters = ellipsisTextCharacters;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function ellipsisTextCharacters(params) {\n    const [text = '', maxCharacters = 100] = params;\n    let truncatedText = text.substr(0, maxCharacters);\n    if (truncatedText.length !== text.length) truncatedText += '…';\n    return truncatedText;\n  }\n  var _default = _exports.default = (0, _helper.helper)(ellipsisTextCharacters);\n});","define(\"portal/helpers/ellipsis-words\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.ellipsisTextWords = ellipsisTextWords;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function ellipsisTextWords(params) {\n    const [text = '', maxWords = 30] = params;\n    const words = text.split(' ');\n    const truncatedWords = words.slice(0, maxWords);\n    let truncatedString = truncatedWords.join(' ');\n    if (truncatedWords.length !== words.length) truncatedString += '…';\n    return truncatedString;\n  }\n  var _default = _exports.default = (0, _helper.helper)(ellipsisTextWords);\n});","define(\"portal/helpers/ember-power-calendar-day-classes\", [\"exports\", \"ember-power-calendar/helpers/ember-power-calendar-day-classes\"], function (_exports, _emberPowerCalendarDayClasses) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerCalendarDayClasses.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/helpers/ember-power-calendar-day-classes\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ember-power-select-is-equal\", [\"exports\", \"ember-power-select/helpers/ember-power-select-is-equal\"], function (_exports, _emberPowerSelectIsEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsEqual.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/helpers/ember-power-select-is-equal\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ember-power-select-is-group\", [\"exports\", \"ember-power-select/helpers/ember-power-select-is-group\"], function (_exports, _emberPowerSelectIsGroup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsGroup.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/helpers/ember-power-select-is-group\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ember-power-select-is-selected-present\", [\"exports\", \"ember-power-select/helpers/ember-power-select-is-selected-present\"], function (_exports, _emberPowerSelectIsSelectedPresent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsSelectedPresent.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/helpers/ember-power-select-is-selected-present\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ensure-safe-component\", [\"exports\", \"@embroider/util\"], function (_exports, _util) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _util.EnsureSafeComponentHelper;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@embroider/util\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/eq\", [\"exports\", \"ember-truth-helpers/helpers/eq\"], function (_exports, _eq) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _eq.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/eq\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/excludes-feature-flags\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    compute(params) {\n      return this.newFeatureFlags.excludesFeatureFlags(...params);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/excludes-some-feature-flags\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    compute(params) {\n      return this.newFeatureFlags.excludesSomeFeatureFlags(...params);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/file-size-to-string\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.fileSizeToString = fileSizeToString;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function fileSizeToString(params) {\n    let bytes = params[0];\n    let si = params[1] || false;\n    let dp = params[2] || 1;\n    const thresh = si ? 1000 : 1024;\n    if (Math.abs(bytes) < thresh) {\n      return bytes + ' B';\n    }\n    const units = si ? ['KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'] : ['KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'];\n    let u = -1;\n    const r = 10 ** dp;\n    do {\n      bytes /= thresh;\n      ++u;\n    } while (Math.round(Math.abs(bytes) * r) / r >= thresh && u < units.length - 1);\n    return bytes.toFixed(dp) + ' ' + units[u];\n  }\n  var _default = _exports.default = _helper.default.helper(fileSizeToString);\n});","define(\"portal/helpers/format-date\", [\"exports\", \"ember-intl/helpers/format-date\"], function (_exports, _formatDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatDate.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-date\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/format-duration\", [\"exports\", \"@ember/component/helper\", \"portal/utils/duration-input\"], function (_exports, _helper, _durationInput) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"portal/utils/duration-input\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(_durationInput.formatDuration);\n});","define(\"portal/helpers/format-message\", [\"exports\", \"ember-intl/helpers/format-message\"], function (_exports, _formatMessage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatMessage.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-message\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/format-number\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.formatNumber = formatNumber;\n  _exports.parseNumber = parseNumber;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  const MINUS_SIGN = '\\u2212\\u2009';\n  const DASH = '\\u2013';\n  const MIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER || -9007199254740991;\n  const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;\n  function formatNumber(params, options) {\n    options = options || {};\n    var [formatAs, number, rawNumber] = standardizeInput(params);\n\n    // Defaults\n\n    // NaN\n    if (isNaN(number)) {\n      return finalize('', formatAs, number, rawNumber, options);\n    }\n\n    // Too large or small\n    if (number < MIN_SAFE_INTEGER || number > MAX_SAFE_INTEGER) {\n      return finalize('#', formatAs, number, rawNumber, options);\n    }\n    if (options.abs) {\n      number = Math.abs(number);\n    }\n\n    // Convert sigfigs option to a places option\n    const places = calcPlaces(number, formatAs, options);\n\n    // First round the number\n    const rounded = round(number, places);\n\n    // Dash zero (after rounding)\n    if (options.dashZero !== false && Number(rounded) === 0) {\n      return finalize(DASH, formatAs, rounded, rawNumber, options);\n    }\n\n    // Add zeros to meet decimal places requirement\n    const padded = pad(rounded, places);\n\n    // Add commas\n    const commaed = addCommas(padded);\n\n    // Nice minus sign and slight space\n    const formatted = formatNegativeSign(commaed);\n    return finalize(formatted, formatAs, rounded, rawNumber, options);\n  }\n  function finalize(formatted, formatAs, number, rawNumber, options) {\n    if (typeof formatted === 'string' && formatted.match(/\\d/) !== null) {\n      formatted = applyDecoration(formatted, formatAs, options.currencySymbol);\n    }\n    if (!options.flags) {\n      return formatted;\n    }\n    if (formatAs === 'percentage') {\n      number /= 100;\n    }\n    const res = {\n      formatted,\n      raw: rawNumber,\n      parsedInput: number,\n      isNaN: typeof formatted !== 'string' || formatted.match(/\\d/) === null,\n      isZero: rawNumber === 0,\n      roundsToZero: number === 0,\n      isNegative: !isNaN(number) && number < 0\n    };\n    return res;\n  }\n  function standardizeInput(input) {\n    let formatAs, value;\n    if (!Array.isArray(input) || input.length === 1) {\n      value = Array.isArray(input) ? input[0] : input;\n      formatAs = 'number';\n    } else {\n      [formatAs, value] = input;\n    }\n    formatAs = typeof formatAs === 'string' ? formatAs.toLowerCase() : 'number';\n    const rawValue = value;\n    if (typeof value !== 'string') {\n      value = value == null || typeof value === 'boolean' ? NaN : Number(value);\n    } else if (value === '-' || value === DASH) {\n      value = 0;\n    } else {\n      value = parseFloat(value.replace(MINUS_SIGN, '-').replace(/[^\\d.-]*/g, ''));\n    }\n    if (formatAs === 'percentage' && !isNaN(value)) {\n      value *= 100;\n    }\n    return [formatAs, value, rawValue];\n  }\n  function calcPlaces(number, formatAs, options) {\n    if (typeof options.places === 'number' && formatAs !== 'integer') {\n      return options.places;\n    }\n    if (typeof options.sigfigs === 'number') {\n      return options.sigfigs - Math.abs(Math.floor(number)).toString().length;\n    }\n    if (formatAs === 'integer') {\n      return 0;\n    }\n    return 2;\n  }\n  function round(number, places) {\n    const factor = Math.pow(10, places);\n    return Math.round(number * factor) / factor;\n  }\n  function pad(number, places) {\n    // Convert to string\n    let string = number.toString();\n    if (places > 0) {\n      // Add a decimal point, if one doesn't already exist\n      if (string.indexOf('.') === -1) {\n        string += '.';\n      }\n\n      // Find the decimal point\n      const pointIndex = string.indexOf('.');\n\n      // Keep adding zeros until we reach the end\n      while (string.length <= pointIndex + places) {\n        string += '0';\n      }\n    }\n    return string;\n  }\n  function addCommas(string) {\n    var chars = string.split('');\n    var pointIndex = chars.indexOf('.');\n    var left = [];\n    var right = [];\n    if (pointIndex === -1) {\n      left = chars.reverse();\n    } else {\n      left = chars.slice(0, pointIndex).reverse();\n      right = chars.slice(pointIndex + 1);\n    }\n    string = '';\n\n    // Left of decimal point\n    for (let i = 0, len = left.length; i < len; i++) {\n      if (i >= 3 && i % 3 === 0 && left[i] !== '-') {\n        string = ',' + string;\n      }\n      string = left[i] + string;\n    }\n    if (right.length) {\n      string = string + '.';\n\n      // Right of decimal point\n      for (let j = 0, len = right.length; j < len; j++) {\n        if (j >= 3 && j % 3 === 0) {\n          string = string + ',';\n        }\n        string = string + right[j];\n      }\n    }\n    return string;\n  }\n  function formatNegativeSign(string) {\n    if (string[0] === '-') {\n      string = MINUS_SIGN + string.substr(1);\n    }\n    return string;\n  }\n  function applyDecoration(string, formatAs, currencySymbol = '$') {\n    if (!string) {\n      return '';\n    }\n    switch (formatAs) {\n      case 'percentage':\n        return string + '%';\n      case 'currency':\n        return addCurrencySymbol(string, currencySymbol);\n      case 'number':\n      case 'integer':\n      default:\n        return string;\n    }\n  }\n  function addCurrencySymbol(string, symbol) {\n    // Negative values should be formatted like -$1.50 not $-1.50\n    if (string.indexOf(MINUS_SIGN) === 0) {\n      return MINUS_SIGN + (symbol || '') + string.substr(MINUS_SIGN.length);\n    } else {\n      return (symbol || '') + string;\n    }\n  }\n  function parseNumber(input) {\n    if (typeof input !== 'string') {\n      return input == null || typeof input === 'boolean' ? NaN : Number(input);\n    }\n    const string = input.trim();\n    if (string === '-' || string === DASH) {\n      return 0;\n    }\n    const isPercentage = string.match(/%$/) !== null;\n    const number = parseFloat(string.replace(MINUS_SIGN, '-').replace(/[^\\d.-]*/g, ''));\n    return isPercentage && !isNaN(number) ? number / 100 : number;\n  }\n  var _default = _exports.default = _helper.default.helper(formatNumber);\n});","define(\"portal/helpers/format-relative\", [\"exports\", \"ember-intl/helpers/format-relative\"], function (_exports, _formatRelative) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatRelative.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-relative\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/format-shortcut\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatShortcut = _exports.default = (_class = class FormatShortcut extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"os\", _descriptor, this);\n    }\n    compute([key, actionName]) {\n      // If it's a touch device without a fine pointer, don't show tooltip\n      if (!this.os.hasKeyboard) {\n        return undefined;\n      }\n      const mod = key.includes('cmd') ? `${this.os.mainModifier} + ` : '';\n      const displayKey = key.replace('cmd+', '').replace('Arrow', '');\n      return `${actionName} (${mod}${displayKey})`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"os\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/helpers/format-time\", [\"exports\", \"ember-intl/helpers/format-time\"], function (_exports, _formatTime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatTime.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-time\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/get-file-icon\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.getFileIcon = getFileIcon;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function getFileIcon(params) {\n    const fileExtension = params[0];\n    const fileMapper = {\n      image: 'file-image',\n      pdf: 'file-pdf',\n      doc: 'file-word',\n      txt: 'file-word',\n      csv: 'file-csv',\n      gz: 'file-archive',\n      rar: 'file-archive',\n      zip: 'file-archive',\n      '7z': 'file-archive'\n    };\n    return fileMapper[fileExtension] || 'file';\n  }\n  var _default = _exports.default = _helper.default.helper(getFileIcon);\n});","define(\"portal/helpers/gt\", [\"exports\", \"ember-truth-helpers/helpers/gt\"], function (_exports, _gt) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _gt.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/gt\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/gte\", [\"exports\", \"ember-truth-helpers/helpers/gte\"], function (_exports, _gte) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _gte.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/gte\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/html-safe\", [\"exports\", \"@ember/component/helper\", \"@ember/template\"], function (_exports, _helper, _template) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.htmlSafe = htmlSafe;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/template\"eaimeta@70e063a35619d71f\n  function htmlSafe(params) {\n    return (0, _template.htmlSafe)(params ?? '');\n  }\n  var _default = _exports.default = _helper.default.helper(htmlSafe);\n});","define(\"portal/helpers/humanize\", [\"exports\", \"ember-cli-string-helpers/helpers/humanize\"], function (_exports, _humanize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _humanize.default;\n    }\n  });\n  Object.defineProperty(_exports, \"humanize\", {\n    enumerable: true,\n    get: function () {\n      return _humanize.humanize;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/humanize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/if-key\", [\"exports\", \"ember-keyboard/helpers/if-key\"], function (_exports, _ifKey) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _ifKey.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-keyboard/helpers/if-key\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ignore-children\", [\"exports\", \"ember-modal-dialog/helpers/ignore-children\"], function (_exports, _ignoreChildren) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _ignoreChildren.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/helpers/ignore-children\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/inc\", [\"exports\", \"ember-composable-helpers/helpers/inc\"], function (_exports, _inc) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _inc.default;\n    }\n  });\n  Object.defineProperty(_exports, \"inc\", {\n    enumerable: true,\n    get: function () {\n      return _inc.inc;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/inc\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/includes-feature-flags\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    compute(params) {\n      return this.newFeatureFlags.includesFeatureFlags(...params);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/includes-some-feature-flags\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    compute(params) {\n      return this.newFeatureFlags.includesSomeFeatureFlags(...params);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/includes\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function includes([array, value]) {\n    if (!Array.isArray(array)) {\n      return false;\n    }\n    return array.includes(value);\n  });\n});","define(\"portal/helpers/is-active\", [\"exports\", \"ember-router-helpers/helpers/is-active.js\"], function (_exports, _isActive) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isActive.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/is-active.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-after\", [\"exports\", \"ember-moment/helpers/is-after\"], function (_exports, _isAfter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isAfter.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-after\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-array\", [\"exports\", \"ember-truth-helpers/helpers/is-array\"], function (_exports, _isArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isArray.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/is-array\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-before\", [\"exports\", \"ember-moment/helpers/is-before\"], function (_exports, _isBefore) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isBefore.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-before\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-between\", [\"exports\", \"ember-moment/helpers/is-between\"], function (_exports, _isBetween) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isBetween.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-between\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-empty\", [\"exports\", \"ember-truth-helpers/helpers/is-empty\"], function (_exports, _isEmpty) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isEmpty.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/is-empty\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-equal\", [\"exports\", \"ember-truth-helpers/helpers/is-equal\"], function (_exports, _isEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isEqual.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/is-equal\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-hash\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.isHash = isHash;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function isHash(params) {\n    return params !== null && typeof params === 'object' && !Array.isArray(params);\n  }\n  var _default = _exports.default = _helper.default.helper(isHash);\n});","define(\"portal/helpers/is-same-or-after\", [\"exports\", \"ember-moment/helpers/is-same-or-after\"], function (_exports, _isSameOrAfter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isSameOrAfter.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-same-or-after\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-same-or-before\", [\"exports\", \"ember-moment/helpers/is-same-or-before\"], function (_exports, _isSameOrBefore) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isSameOrBefore.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-same-or-before\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-same\", [\"exports\", \"ember-moment/helpers/is-same\"], function (_exports, _isSame) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isSame.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-same\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/lowercase\", [\"exports\", \"ember-cli-string-helpers/helpers/lowercase\"], function (_exports, _lowercase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _lowercase.default;\n    }\n  });\n  Object.defineProperty(_exports, \"lowercase\", {\n    enumerable: true,\n    get: function () {\n      return _lowercase.lowercase;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/lowercase\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/lt\", [\"exports\", \"ember-truth-helpers/helpers/lt\"], function (_exports, _lt) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _lt.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/lt\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/lte\", [\"exports\", \"ember-truth-helpers/helpers/lte\"], function (_exports, _lte) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _lte.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/lte\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/map-get\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function mapGet([map, key]) {\n    if (map instanceof Map) {\n      return map.get(key);\n    }\n    return undefined;\n  });\n});","define(\"portal/helpers/math\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.math = math;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function math([operand1, operator, operand2]) {\n    operand1 = parseOperand(operand1);\n    operand2 = parseOperand(operand2);\n    switch (operator) {\n      case '+':\n        return operand1 + operand2;\n      case '-':\n        return operand1 - operand2;\n      case '*':\n        return operand1 * operand2;\n      case '/':\n        return operand1 / operand2;\n      default:\n        throw new Error('Unknown operator: ' + operator);\n    }\n  }\n  function parseOperand(value) {\n    if (isNaN(value) || value === null || value === true) {\n      throw new Error('Expected operand passed to math help to be a number, got ' + value);\n    }\n    if (value !== Infinity) {\n      value = parseFloat(value, 10);\n    }\n    return value;\n  }\n  var _default = _exports.default = _helper.default.helper(math);\n});","define(\"portal/helpers/media\", [\"exports\", \"ember-responsive/helpers/media\"], function (_exports, _media) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _media.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-responsive/helpers/media\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-add\", [\"exports\", \"ember-moment/helpers/moment-add\"], function (_exports, _momentAdd) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentAdd.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-add\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-calendar\", [\"exports\", \"ember-moment/helpers/moment-calendar\"], function (_exports, _momentCalendar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentCalendar.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-calendar\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-diff\", [\"exports\", \"ember-moment/helpers/moment-diff\"], function (_exports, _momentDiff) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentDiff.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-diff\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-duration\", [\"exports\", \"ember-moment/helpers/moment-duration\"], function (_exports, _momentDuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentDuration.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-duration\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-format\", [\"exports\", \"ember-moment/helpers/moment-format\"], function (_exports, _momentFormat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentFormat.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-format\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-from-now\", [\"exports\", \"ember-moment/helpers/moment-from-now\"], function (_exports, _momentFromNow) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentFromNow.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-from-now\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-from\", [\"exports\", \"ember-moment/helpers/moment-from\"], function (_exports, _momentFrom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentFrom.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-from\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-subtract\", [\"exports\", \"ember-moment/helpers/moment-subtract\"], function (_exports, _momentSubtract) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentSubtract.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-subtract\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-to-date\", [\"exports\", \"ember-moment/helpers/moment-to-date\"], function (_exports, _momentToDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentToDate.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-to-date\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-to-now\", [\"exports\", \"ember-moment/helpers/moment-to-now\"], function (_exports, _momentToNow) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentToNow.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-to-now\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-to\", [\"exports\", \"ember-moment/helpers/moment-to\"], function (_exports, _momentTo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentTo.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-to\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment\", [\"exports\", \"ember-moment/helpers/moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _moment.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/not-eq\", [\"exports\", \"ember-truth-helpers/helpers/not-eq\"], function (_exports, _notEq) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _notEq.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/not-eq\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/not\", [\"exports\", \"ember-truth-helpers/helpers/not\"], function (_exports, _not) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _not.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/not\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/now\", [\"exports\", \"ember-moment/helpers/now\"], function (_exports, _now) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _now.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/now\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/number-format\", [\"exports\", \"@ember/service\", \"@ember/component/helper\"], function (_exports, _service, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let NumberFormat = _exports.default = (_class = class NumberFormat extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor, this);\n    }\n    compute([number], options) {\n      return this.numberFormat.format(number, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/helpers/number-to-char\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  class _default extends _helper.default {\n    compute([n]) {\n      const multiplier = Math.ceil(n / 25) || 1;\n      const index = n % 26;\n      const char = String.fromCharCode(index + 'A'.charCodeAt(0));\n      let str = '';\n      for (let i = 0; i < multiplier; i++) str += char;\n      return str;\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/helpers/object-at\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.objectAt = objectAt;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function objectAt(params /*, hash*/) {\n    const [array, index] = params;\n    if (!Array.isArray(array)) console.warn('object-at must be passed an array as its first argument');\n    if (isNaN(index)) console.warn('object-at must be passed a number as its second argument');\n    return array.objectAt(index);\n  }\n  var _default = _exports.default = _helper.default.helper(objectAt);\n});","define(\"portal/helpers/on-key\", [\"exports\", \"ember-keyboard/helpers/on-key\"], function (_exports, _onKey) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _onKey.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-keyboard/helpers/on-key\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/or\", [\"exports\", \"ember-truth-helpers/helpers/or\"], function (_exports, _or) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _or.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/or\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ordinal-for\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.ordinalFor = ordinalFor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function ordinalFor(input) {\n    const number = Number(input);\n    if (isNaN(number) || Math.abs(number) === Infinity || number < 0) {\n      return null;\n    }\n    const string = String(number);\n    const lastDigit = string.charAt(string.length - 1);\n    if (string.indexOf('.') > -1 || string.indexOf('e') > -1) {\n      return null;\n    } else if (lastDigit === '1' && string !== '11') {\n      return 'st';\n    } else if (lastDigit === '2' && string !== '12') {\n      return 'nd';\n    } else if (lastDigit === '3' && string !== '13') {\n      return 'rd';\n    } else {\n      return 'th';\n    }\n  }\n  var _default = _exports.default = _helper.default.helper(ordinalFor);\n});","define(\"portal/helpers/page-title\", [\"exports\", \"ember-page-title/helpers/page-title\"], function (_exports, _pageTitle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pageTitle.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-page-title/helpers/page-title\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/pagination-callback\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = paginationCallback;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  async function paginationCallback(callback) {\n    const fetchPages = async (accumulatedResults = [], page = 1) => {\n      try {\n        const response = await callback(page);\n        if (!response || !response.toArray || !response.meta) {\n          throw new Error('Invalid response structure: Expected { toArray(), meta }');\n        }\n        const updatedResults = [...accumulatedResults, ...response.toArray()];\n        const hasNextPage = response.meta.currentPage < response.meta.totalPages;\n        if (hasNextPage) {\n          return fetchPages(updatedResults, page + 1);\n        }\n        return updatedResults;\n      } catch (error) {\n        throw new Error(`Pagination failed on page ${page}: ${error.message}`);\n      }\n    };\n    return fetchPages();\n  }\n});","define(\"portal/helpers/perform\", [\"exports\", \"ember-concurrency/helpers/perform\"], function (_exports, _perform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _perform.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/helpers/perform\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/pipe\", [\"exports\", \"ember-composable-helpers/helpers/pipe\"], function (_exports, _pipe) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pipe.default;\n    }\n  });\n  Object.defineProperty(_exports, \"pipe\", {\n    enumerable: true,\n    get: function () {\n      return _pipe.pipe;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/pipe\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/pluralize\", [\"exports\", \"ember-inflector/helpers/pluralize\"], function (_exports, _pluralize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pluralize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-inflector/helpers/pluralize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/power-calendar-format-date\", [\"exports\", \"ember-power-calendar/helpers/power-calendar-format-date\"], function (_exports, _powerCalendarFormatDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerCalendarFormatDate.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/helpers/power-calendar-format-date\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/prevent-default\", [\"exports\", \"ember-event-helpers/helpers/prevent-default\"], function (_exports, _preventDefault) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _preventDefault.default;\n    }\n  });\n  Object.defineProperty(_exports, \"preventDefault\", {\n    enumerable: true,\n    get: function () {\n      return _preventDefault.preventDefault;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-event-helpers/helpers/prevent-default\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/profit-type-label\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // `{{profit-type-label type}}` -> \"margin\" / \"markup\"\n  // `{{profit-type-label type effective=true}}` -> \"Effective margin\" / ...\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([profitType], {\n      effective = false\n    } = {}) {\n      if (profitType === 'MARKUP') return effective ? this.intl.t('common.Effective markup') : this.intl.t('common.markup');\n      return effective ? this.intl.t('common.Effective margin') : this.intl.t('common.margin');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/project-status-label\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // Accepts the raw enum ('OPEN') or an already capitalised value ('Open'),\n  // because report cells carry the latter.\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([status]) {\n      switch (String(status ?? '').toUpperCase()) {\n        case 'OPEN':\n          return this.intl.t('common.Open');\n        case 'HELD':\n          return this.intl.t('common.Held');\n        case 'CLOSED':\n          return this.intl.t('common.Closed');\n        case 'ARCHIVED':\n          return this.intl.t('common.Archived');\n      }\n      return status;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/range\", [\"exports\", \"ember-composable-helpers/helpers/range\"], function (_exports, _range) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _range.default;\n    }\n  });\n  Object.defineProperty(_exports, \"range\", {\n    enumerable: true,\n    get: function () {\n      return _range.range;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/range\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/replace-with\", [\"exports\", \"ember-router-helpers/helpers/replace-with.js\"], function (_exports, _replaceWith) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _replaceWith.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/replace-with.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/root-url\", [\"exports\", \"ember-router-helpers/helpers/root-url.js\"], function (_exports, _rootUrl) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _rootUrl.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/root-url.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/round-number\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.round2dp = round2dp;\n  _exports.round6dp = round6dp;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function round2dp(input) {\n    return Math.round((input + Number.EPSILON) * 100) / 100;\n  }\n  function round6dp(input) {\n    return Math.round((input + Number.EPSILON) * 1000000) / 1000000;\n  }\n});","define(\"portal/helpers/route-params\", [\"exports\", \"ember-router-helpers/helpers/route-params.js\"], function (_exports, _routeParams) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _routeParams.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/route-params.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/singularize\", [\"exports\", \"ember-inflector/helpers/singularize\"], function (_exports, _singularize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _singularize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-inflector/helpers/singularize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/sort-accounts\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sortAccounts;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function sortAccounts(accounts = [], sortKey = 'sortIndex', categoryKey = 'category') {\n    const profitAndLoss = [];\n    const balanceSheet = [];\n    const other = [];\n    accounts.forEach(target => {\n      const category = (0, _object.get)(target, categoryKey);\n      switch (category) {\n        case 'profit-and-loss':\n          profitAndLoss.push(target);\n          break;\n        case 'balance-sheet':\n          balanceSheet.push(target);\n          break;\n        default:\n          other.push(target);\n      }\n    });\n    return [...profitAndLoss.sortBy(sortKey), ...balanceSheet.sortBy(sortKey), ...other.sortBy(sortKey)];\n  }\n});","define(\"portal/helpers/stop-propagation\", [\"exports\", \"ember-event-helpers/helpers/stop-propagation\"], function (_exports, _stopPropagation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _stopPropagation.default;\n    }\n  });\n  Object.defineProperty(_exports, \"stopPropagation\", {\n    enumerable: true,\n    get: function () {\n      return _stopPropagation.stopPropagation;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-event-helpers/helpers/stop-propagation\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/t\", [\"exports\", \"ember-intl/helpers/t\"], function (_exports, _t) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _t.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/t\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/task\", [\"exports\", \"ember-concurrency/helpers/task\"], function (_exports, _task) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _task.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/helpers/task\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/timesheet-status-label\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // A grouping has no status record until someone sets one; until then it\n  // reads as pending.\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([status]) {\n      return status === 'accepted' ? this.intl.t('common.Accepted') : this.intl.t('common.Pending');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/titleize\", [\"exports\", \"ember-cli-string-helpers/helpers/titleize\"], function (_exports, _titleize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _titleize.default;\n    }\n  });\n  Object.defineProperty(_exports, \"titleize\", {\n    enumerable: true,\n    get: function () {\n      return _titleize.titleize;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/titleize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/toggle-action\", [\"exports\", \"ember-composable-helpers/helpers/toggle-action\"], function (_exports, _toggleAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _toggleAction.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/toggle-action\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/toggle\", [\"exports\", \"ember-composable-helpers/helpers/toggle\"], function (_exports, _toggle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _toggle.default;\n    }\n  });\n  Object.defineProperty(_exports, \"toggle\", {\n    enumerable: true,\n    get: function () {\n      return _toggle.toggle;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/toggle\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/transition-to\", [\"exports\", \"ember-router-helpers/helpers/transition-to.js\"], function (_exports, _transitionTo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transitionTo.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/transition-to.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/trim\", [\"exports\", \"ember-cli-string-helpers/helpers/trim\"], function (_exports, _trim) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _trim.default;\n    }\n  });\n  Object.defineProperty(_exports, \"trim\", {\n    enumerable: true,\n    get: function () {\n      return _trim.trim;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/trim\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/truncate\", [\"exports\", \"ember-cli-string-helpers/helpers/truncate\"], function (_exports, _truncate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _truncate.default;\n    }\n  });\n  Object.defineProperty(_exports, \"truncate\", {\n    enumerable: true,\n    get: function () {\n      return _truncate.truncate;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/truncate\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/underscore\", [\"exports\", \"ember-cli-string-helpers/helpers/underscore\"], function (_exports, _underscore) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _underscore.default;\n    }\n  });\n  Object.defineProperty(_exports, \"underscore\", {\n    enumerable: true,\n    get: function () {\n      return _underscore.underscore;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/underscore\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/unix\", [\"exports\", \"ember-moment/helpers/unix\"], function (_exports, _unix) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _unix.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/unix\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/uppercase\", [\"exports\", \"ember-cli-string-helpers/helpers/uppercase\"], function (_exports, _uppercase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _uppercase.default;\n    }\n  });\n  Object.defineProperty(_exports, \"uppercase\", {\n    enumerable: true,\n    get: function () {\n      return _uppercase.uppercase;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/uppercase\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/url-for\", [\"exports\", \"ember-router-helpers/helpers/url-for.js\"], function (_exports, _urlFor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _urlFor.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/url-for.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/utc\", [\"exports\", \"ember-moment/helpers/utc\"], function (_exports, _utc) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _utc.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/utc\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/w\", [\"exports\", \"ember-cli-string-helpers/helpers/w\"], function (_exports, _w) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _w.default;\n    }\n  });\n  Object.defineProperty(_exports, \"w\", {\n    enumerable: true,\n    get: function () {\n      return _w.w;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/w\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/xor\", [\"exports\", \"ember-truth-helpers/helpers/xor\"], function (_exports, _xor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _xor.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/xor\"eaimeta@70e063a35619d71f\n});","define(\"portal/initializers/am5\", [\"exports\", \"portal/config/environment\", \"@amcharts/amcharts5\"], function (_exports, _environment, am5) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\",0,\"@amcharts/amcharts5\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'am5',\n    initialize: () => {\n      am5.addLicense(_environment.default.am5LicenseKey);\n    }\n  };\n});","define(\"portal/initializers/app-version\", [\"exports\", \"ember-cli-app-version/initializer-factory\", \"portal/config/environment\"], function (_exports, _initializerFactory, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-app-version/initializer-factory\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  let name, version;\n  if (_environment.default.APP) {\n    name = _environment.default.APP.name;\n    version = _environment.default.APP.version;\n  }\n  var _default = _exports.default = {\n    name: 'App Version',\n    initialize: (0, _initializerFactory.default)(name, version)\n  };\n});","define(\"portal/initializers/deprecation-handler\", [\"exports\", \"portal/utils/deprecation-filter\"], function (_exports, _deprecationFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/deprecation-filter\"eaimeta@70e063a35619d71f\n  // The filter lives in a util rather than here because the test suite installs\n  // it too, and importing an `initializers/` module from the tests tree resolves\n  // a second copy of it — leaving the one ember-load-initializers pulls from the\n  // AMD registry without its default export, which fails the whole tests bundle.\n  function initialize() {\n    (0, _deprecationFilter.installDeprecationFilter)();\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"portal/initializers/ember-cli-mirage\", [\"exports\", \"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', '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 '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('error');\n    });\n    this.route('no-access');\n    this.route('xero-callback');\n    this.route('complete-pm-auth');\n    this.route('complete-registration-cb');\n    this.route('not-found', {\n      path: '*path'\n    });\n    this.route('loading');\n  };\n  _exports.routerMap = routerMap;\n  Router.map(routerMap);\n  var _default = _exports.default = Router;\n});","define(\"portal/routes/admin\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n    }\n    async beforeModel() {\n      const usersRole = this.session?.data?.authenticated?.user?.role;\n      if (usersRole !== 'admin') return this.router.transitionTo('index');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/admin/announcements/announcement\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _object, _emberChangeset, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"ember-changeset\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const stripHtml = (html = '') => html.replace(/<[^>]*>/g, '').trim();\n  const validateContent = ({\n    key,\n    newValue,\n    content,\n    changes,\n    oldValue\n  }) => {\n    const value = newValue || oldValue;\n    switch (key) {\n      case 'title':\n        return value?.length > 3 || 'Please provide a title';\n      case 'message':\n        {\n          const textOnly = stripHtml(value);\n          return textOnly.length > 3 || 'Please provide a message';\n        }\n      case 'validFrom':\n        {\n          const validFrom = newValue || content.validFrom || (0, _moment.default)();\n          const validUntil = changes.validUntil || content.validUntil;\n          if (!validUntil) return true;\n          return (0, _moment.default)(validFrom).isSameOrBefore(validUntil) || 'valid from date must be earlier than the valid until date';\n        }\n      case 'validUntil':\n        {\n          if (!newValue) return true;\n          const validFrom = changes.validFrom || content.validFrom || (0, _moment.default)();\n          return (0, _moment.default)(newValue).isSameOrAfter(validFrom) || 'Valid until date must be after the valid from date';\n        }\n      default:\n        break;\n    }\n  };\n  const announcementValidationMap = {\n    title: validateContent,\n    message: validateContent\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"basePath\", 'admin.announcements.announcement');\n      _defineProperty(this, \"getAnnouncement\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          let announcement;\n          if (id === 'new') {\n            let validFrom = (0, _moment.default)().toDate();\n            let validUntil = (0, _moment.default)().add(30, 'days').toDate();\n            announcement = yield this.store.createRecord('system-announcement', {\n              validFrom,\n              validUntil\n            });\n          } else {\n            announcement = yield this.store.findRecord('system-announcement', id, {\n              reload: true\n            });\n          }\n          return announcement;\n        }\n      }), null, \"getAnnouncement\", null));\n      _defineProperty(this, \"getAnnouncementChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (announcement) {\n          yield announcement.last;\n          return (0, _emberChangeset.Changeset)(announcement.last.value, validateContent, announcementValidationMap);\n        }\n      }), null, \"getAnnouncementChangeset\", null));\n      _defineProperty(this, \"getEntityAttributes\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.findAll('entity-attribute').then(r => r.toArray());\n          return attributes;\n        }\n      }), null, \"getEntityAttributes\", null));\n      _defineProperty(this, \"getUserAttributes\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.findAll('user-attribute').then(r => r.toArray());\n          return attributes;\n        }\n      }), null, \"getUserAttributes\", null));\n    }\n    model({\n      announcement_id: announcementId\n    }) {\n      this.getAnnouncement.perform(announcementId);\n      this.getEntityAttributes.perform();\n      this.getUserAttributes.perform();\n      this.getAnnouncementChangeset.perform(this.getAnnouncement);\n      return {\n        announcement: this.getAnnouncement,\n        announcementChangeset: this.getAnnouncementChangeset,\n        entityAttributes: this.getEntityAttributes,\n        userAttributes: this.getUserAttributes\n      };\n    }\n    willTransition() {\n      const announcement = this.currentModel.announcement.last.value;\n      if (announcement?.isNew) announcement.destroyRecord();\n      if (announcement.hasDirtyAttributes) announcement.unloadRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/admin/announcements/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"portal/utils/search-filter\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _searchFilter, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"portal/utils/search-filter\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"pageSizes\", [10, 20, 30]);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageNumber: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        },\n        searchTerm: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getSystemAnnouncements\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (pageNumber, pageSize, sortBy, sortDirection, searchTerm) {\n          const filter = {\n            and: []\n          };\n          if (searchTerm?.length) {\n            filter.and.push((0, _searchFilter.default)(['title', 'message'], searchTerm));\n          }\n          let announcements = yield this.store.query('system-announcement', {\n            filter,\n            page: {\n              number: pageNumber || Number(1),\n              size: pageSize || this.pageSizes[0]\n            },\n            sort: sortDirection === 'desc' ? `-${sortBy}` : sortBy\n          });\n          return announcements;\n        }\n      }), null, \"getSystemAnnouncements\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageNumber = 1,\n      sortBy = 'validFrom',\n      sortDirection = 'desc',\n      searchTerm\n    }) {\n      this.getSystemAnnouncements.perform(pageNumber, pageSize, sortBy, sortDirection, searchTerm);\n      return {\n        announcements: this.getSystemAnnouncements,\n        pageSizes: this.pageSizes,\n        pageSize: Number(pageSize),\n        pageNumber: Number(pageNumber),\n        sortBy: sortBy,\n        sortDirection: sortDirection\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/admin/billing-report\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {}\n  _exports.default = _default;\n});","define(\"portal/routes/admin/demo-entity\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let AdminDemoEntityRoute = _exports.default = (_class = class AdminDemoEntityRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _defineProperty(this, \"regenerateDemoEntity\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm('Are you sure?')) return;\n            yield this.portalApiV2.authPost(`/admin/regenerate-demo-entity`);\n            this.notifications.success('Demo entity regenerated');\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong regenerating the demo entity',\n              error\n            });\n          }\n        }\n      }), null, \"regenerateDemoEntity\", null));\n    }\n    model() {\n      return {\n        regenerateDemoEntity: this.regenerateDemoEntity\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/routes/admin/entities/entity\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const validateContent = ({\n    key,\n    newValue,\n    oldValue\n  }) => {\n    const value = newValue || oldValue;\n    switch (key) {\n      case 'name':\n        return value?.length > 3 || 'Please provide a name';\n      case 'region':\n        return value?.length > 0 || 'Please provide a region';\n      case 'brand':\n        return true;\n      case 'parent':\n        return true;\n      default:\n        break;\n    }\n  };\n  const entityValidationMap = {\n    name: validateContent,\n    region: validateContent,\n    brand: validateContent,\n    parent: validateContent\n  };\n  const featuresValidator = ({\n    key,\n    _newValue,\n    _oldValue,\n    _changes,\n    _content\n  }) => {\n    switch (key) {\n      case 'canUseBuildaPrice':\n        return true;\n      case 'canUseFinancialReporting':\n        return true;\n      default:\n        break;\n    }\n  };\n  const featuresValidationMap = {\n    canUseBuildaPrice: () => null,\n    canUseFinancialReporting: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"basePath\", 'admin.entities.entity');\n      _defineProperty(this, \"getEntity\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          let entity;\n          if (id === 'new') {\n            entity = yield this.store.createRecord('entity');\n          } else {\n            entity = yield this.store.findRecord('entity', id, {\n              reload: true,\n              include: 'attributes'\n            });\n          }\n          return entity;\n        }\n      }), null, \"getEntity\", null));\n      _defineProperty(this, \"getEntities\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let entities = this.store.peekAll('entity').toArray().sortBy('name');\n          if (entities.length <= 1) {\n            entities = yield this.store.simpleQuery('entity').then(res => res.toArray().sortBy('name'));\n          }\n          return entities;\n        }\n      }), null, \"getEntities\", null));\n      _defineProperty(this, \"getEntityChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.last;\n          return (0, _emberChangeset.Changeset)(entity.last.value, validateContent, entityValidationMap);\n        }\n      }), null, \"getEntityChangeset\", null));\n      _defineProperty(this, \"getFeaturesChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.last;\n          return (0, _emberChangeset.Changeset)({\n            canUseBuildaPrice: entity.last.value.includesClaims('canUseBuildaPrice'),\n            canUseFinancialReporting: entity.last.value.includesClaims('canUseFinancialReporting'),\n            canUseDashboards: entity.last.value.includesClaims('canUseDashboards'),\n            canUseFileStorage: entity.last.value.includesClaims('canUseFileStorage'),\n            canUseHealthAndSafety: entity.last.value.includesClaims('canUseHealthAndSafety'),\n            canUseClientPortal: entity.last.value.includesClaims('canUseClientPortal'),\n            canUseClientReport: entity.last.value.includesClaims('canUseClientReport'),\n            canUseSupport: entity.last.value.includesClaims('canUseSupport'),\n            canUseProjectFinancials: entity.last.value.includesClaims('canUseProjectFinancials'),\n            canUseProjectProgress: entity.last.value.includesClaims('canUseProjectProgress'),\n            canUseCsvTaskFileUploader: entity.last.value.includesClaims('canUseCsvTaskFileUploader'),\n            canUseProducts: entity.last.value.includesClaims('canUseProducts'),\n            canUseEstimates: entity.last.value.includesClaims('canUseEstimates'),\n            canUseWIPReport: entity.last.value.includesClaims('canUseWIPReport'),\n            canUseForecastReport: entity.last.value.includesClaims('canUseForecastReport'),\n            canUseProfitMarginsReport: entity.last.value.includesClaims('canUseProfitMarginsReport'),\n            canUseLabourHoursReport: entity.last.value.includesClaims('canUseLabourHoursReport'),\n            canUseBudgetReport: entity.last.value.includesClaims('canUseBudgetReport'),\n            canUseQuoteReport: entity.last.value.includesClaims('canUseQuoteReport'),\n            canUseCostReport: entity.last.value.includesClaims('canUseCostReport'),\n            canUseChargeupReport: entity.last.value.includesClaims('canUseChargeupReport'),\n            canUsePositionReport: entity.last.value.includesClaims('canUsePositionReport'),\n            canUseTimesheets: entity.last.value.includesClaims('canUseTimesheets'),\n            canUseCrystalPayroll: entity.last.value.includesClaims('canUseCrystalPayroll'),\n            canUseSmartPayroll: entity.last.value.includesClaims('canUseSmartPayroll'),\n            canUseKeypay: entity.last.value.includesClaims('canUseKeypay'),\n            canUseNotes: entity.last.value.includesClaims('canUseNotes'),\n            canUseBills: entity.last.value.includesClaims('canUseBills'),\n            canUseStatements: entity.last.value.includesClaims('canUseStatements'),\n            canUseIPS: entity.last.value.includesClaims('canUseIPS'),\n            canUseScheduling: entity.last.value.includesClaims('canUseScheduling'),\n            canUsePlaceMakers: entity.last.value.includesClaims('canUsePlaceMakers'),\n            canUseCarters: entity.last.value.includesClaims('canUseCarters'),\n            canUsePurchaseOrders: entity.last.value.includesClaims('canUsePurchaseOrders'),\n            canUseInvoicing: entity.last.value.includesClaims('canUseInvoicing'),\n            canUseStagePayments: entity.last.value.includesClaims('canUseStagePayments'),\n            canUseInvoicingReport: entity.last.value.includesClaims('canUseInvoicingReport'),\n            canUseGeofencing: entity.last.value.includesClaims('canUseGeofencing')\n          }, featuresValidator, featuresValidationMap);\n        }\n      }), null, \"getFeaturesChangeset\", null));\n    }\n    model({\n      entity_id: entityId\n    }) {\n      this.getEntity.perform(entityId);\n      this.getEntityChangeset.perform(this.getEntity);\n      this.getEntities.perform();\n      this.getFeaturesChangeset.perform(this.getEntity);\n      return {\n        entity: this.getEntity,\n        entityChangeset: this.getEntityChangeset,\n        entities: this.getEntities,\n        featuresChangeset: this.getFeaturesChangeset\n      };\n    }\n    setupController(controller, model) {\n      super.setupController(controller, model);\n      controller.openInviteUserModal = false;\n    }\n    willTransition() {\n      const entity = this.currentModel.entity.last.value;\n      if (entity?.isNew) entity.destroyRecord();\n      if (entity.hasDirtyAttributes) entity.unloadRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/admin/entities/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"getEntities\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let entities = this.store.peekAll('entity').toArray().sortBy('name');\n          if (!entities.length <= 1) entities = yield this.store.query('entity', {\n            include: 'attributes',\n            sort: 'name'\n          }).then(res => res.toArray());\n          return entities;\n        }\n      }), null, \"getEntities\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      this.getEntities.perform();\n      return {\n        entities: this.getEntities\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/admin/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\"], function (_exports, _route, _menuRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default.extend(_menuRoute.default) {\n    get defaultRoute() {\n      return 'admin.entities.index';\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/admin/licensees/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"getEntities\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const storeEntities = this.store.peekAll('entity').toArray();\n          const needsAttributes = storeEntities.some(e => e.hasMany('attributes').value() === null);\n          const shouldQuery = storeEntities.length <= 1 || needsAttributes;\n          const entities = shouldQuery ? yield this.store.query('entity', {\n            sort: 'name',\n            include: 'attributes'\n          }).then(res => res.toArray()) : storeEntities;\n          return entities;\n        }\n      }), null, \"getEntities\", null));\n    }\n    model() {\n      this.getEntities.perform();\n      return {\n        entities: this.getEntities\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/admin/licensees/licensee\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"basePath\", 'admin.licensees.licensee');\n      _defineProperty(this, \"getLicensee\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          const licensee = yield this.store.findRecord('entity', id, {\n            reload: true,\n            include: 'attributes'\n          });\n          return licensee;\n        }\n      }), null, \"getLicensee\", null));\n      _defineProperty(this, \"getEntities\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const storeEntities = this.store.peekAll('entity').toArray();\n          const needsAttributes = storeEntities.some(e => e.hasMany('attributes').value() === null);\n          const shouldQuery = storeEntities.length <= 1 || needsAttributes;\n          const entities = shouldQuery ? yield this.store.query('entity', {\n            sort: 'name',\n            include: 'attributes'\n          }).then(res => res.toArray()) : storeEntities;\n          return entities;\n        }\n      }), null, \"getEntities\", null));\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (licenseeId) {\n          const userEntityAttribute = yield this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: licenseeId\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'canManageEntity'\n              }]\n            }\n          });\n          const userIds = userEntityAttribute.toArray().map(u => u.belongsTo('user').id());\n          return userIds.length ? yield this.store.query('user', {\n            filter: {\n              and: [{\n                field: '_id',\n                op: 'IN',\n                value: userIds\n              }]\n            },\n            sort: 'name'\n          }).then(res => res.toArray()) : [];\n        }\n      }), null, \"getUsers\", null));\n    }\n    model({\n      licensee_id: licenseeId\n    }) {\n      this.getLicensee.perform(licenseeId);\n      this.getEntities.perform();\n      this.getUsers.perform(licenseeId);\n      return {\n        licensee: this.getLicensee,\n        entities: this.getEntities,\n        users: this.getUsers\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/application\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"portal/adapters/errors\", \"portal/config/environment\", \"qs\"], function (_exports, _route, _service, _object, _errors, _environment, _qs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/object\",0,\"portal/adapters/errors\",0,\"portal/config/environment\",0,\"qs\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let ApplicationRoute = _exports.default = (_class = class ApplicationRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor3, this);\n      _initializerDefineProperty(this, \"metrics\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      this.router.on('routeDidChange', () => {\n        const page_location = window.location.href;\n        const page_title = this.router.currentRouteName || 'unknown';\n        this.metrics.trackPage({\n          page_location,\n          page_title\n        });\n      });\n    }\n    async beforeModel(...args) {\n      super.beforeModel(...args);\n      await this.session.setup();\n\n      /* ======================== Handle possible Xero authentication ======================== */\n      const queryParams = _qs.default.parse(window.location.search.substring(1)) || {};\n      const {\n        oauth_token,\n        oauth_verifier,\n        entityId,\n        xeroAuthRedirect\n      } = queryParams;\n      if (xeroAuthRedirect) {\n        if (oauth_token && oauth_verifier) {\n          try {\n            await this.xeroIntegration.finishAuthenticate(oauth_token, oauth_verifier, entityId);\n            this.notifications.success('Connected to Xero');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: 'Failed to complete Xero connection'\n            });\n          }\n        } else {\n          this.notifications.warning('Did not receive authentication from Xero');\n        }\n\n        // Make sure xero data does not stay in the URL\n        const newUrl = window.location.href.replace(/org=[^&]+&?/, '').replace(/error=[^&]+&?/, '').replace(/entityId=[^&]+&?/, '').replace(/oauth_token=[^&]+&?/, '').replace(/oauth_verifier=[^&]+&?/, '').replace(/xeroAuthRedirect=[^&]+&?/, '').replace(/error_description=[^&]+&?/, '').replace(/\\?$/, '');\n        if (newUrl !== window.location.href) window.history.replaceState(null, '', newUrl);\n      }\n    }\n\n    /**\n     * @param {Error|String} err - The error that was thrown. Or a string describing the error\n     * @returns {null}\n     */\n    error(err) {\n      const isConnectionError = err instanceof _errors.ConnectionError;\n      const adapterOperationAborted = err && (0, _object.get)(err, 'message') === 'The adapter operation was aborted';\n      const isUnauthorizedError = err && (0, _object.get)(err, 'errors.0.status') === '401';\n      if (isConnectionError || adapterOperationAborted) {\n        this.notifications.error('Connection error. The server could not be reached.');\n      } else if (!isUnauthorizedError) {\n        this.notifications.error({\n          message: 'Whoops! An unexpected error occurred.',\n          error: err\n        });\n        console.error(err.stack || err); // eslint-disable-line no-console\n      }\n    }\n    serverError(err) {\n      this.send('error', err);\n    }\n    logout() {\n      this.session.invalidate();\n    }\n    didTransition() {\n      // During testing, we want to scroll the #ember-testing pane, not the entire page\n      const target = _environment.default.APP.rootElement ? document.querySelector(_environment.default.APP.rootElement) : window;\n      // Reset scrolling position on transitions\n      target.scrollTo(0, 0);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"metrics\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"error\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"error\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"serverError\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"serverError\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"logout\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"logout\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didTransition\"), _class.prototype), _class);\n});","define(\"portal/routes/basic\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    async beforeModel(transition) {\n      await this.session.requireAuthentication(transition, 'login');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/complete-pm-auth\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"jquery\", \"portal/config/environment\"], function (_exports, _route, _service, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"jquery\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let PMOauthCallback = _exports.default = (_dec = (0, _service.inject)(), _dec2 = (0, _service.inject)(), _dec3 = (0, _service.inject)(), _class = class PMOauthCallback extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        code: {\n          refreshModel: false\n        },\n        state: {\n          refreshModel: false\n        },\n        error: {\n          refreshModel: false\n        }\n      });\n    }\n    async model(params) {\n      const {\n        code,\n        state,\n        error: errorParam\n      } = params;\n      const {\n        entityId\n      } = decodeState(state);\n      const accessToken = this.session.data.authenticated?.access_token;\n      if (errorParam) {\n        this.notifications.error({\n          message: 'Unable to complete PlaceMakers connection',\n          error: new Error('Unable to complete PM connection. Received error: ' + errorParam)\n        });\n        this.router.transitionTo('entity');\n        return;\n      }\n      if (!accessToken) {\n        this.notifications.error('Unable to complete PlaceMakers connection, it appears you are not logged in');\n        this.router.transitionTo('login');\n        return;\n      }\n      if (!entityId) {\n        this.notifications.error({\n          message: 'Unable to complete PlaceMakers connection',\n          error: new Error('Unable to complete PM connection. No entityId found')\n        });\n        this.router.transitionTo('entity');\n        return;\n      }\n      if (!code) {\n        this.notifications.error({\n          message: 'Unable to complete PlaceMakers connection',\n          error: new Error('Unable to complete PM connection. No auth code found')\n        });\n        this.router.transitionTo('entity.settings.integrations', entityId);\n        return;\n      }\n      try {\n        await submitAuthCodeAjax({\n          code,\n          entityId,\n          accessToken,\n          redirectURI: window.location.href.split('?')[0]\n        });\n        this.notifications.success('You are now connected to PlaceMakers');\n      } catch (error) {\n        this.notifications.error({\n          error,\n          message: 'Unable to complete PlaceMakers connection'\n        });\n      } finally {\n        this.router.transitionTo('entity.settings.integrations', entityId);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  /**\n   * Decodes base64 encoded JSON\n   * @param {String} b64\n   * @return {Object}\n   */\n  function decodeState(b64) {\n    return JSON.parse(atob(b64));\n  }\n  function submitAuthCodeAjax({\n    accessToken,\n    entityId,\n    code,\n    redirectURI\n  }) {\n    return new Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        method: 'POST',\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/pm-integration/pm-submit-oauth-code',\n        headers: {\n          Authorization: `Bearer ${accessToken}`,\n          'Content-Type': 'application/json'\n        },\n        data: JSON.stringify({\n          code,\n          entityId,\n          redirectURI\n        })\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/routes/complete-registration-cb\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"jquery\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _route, _service, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"jquery\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _defineProperty(this, \"serverTokenEndpoint\", `${_environment.default.urls.api}${_environment.default.urls.apiV2Path}/chargebee/redeem-registration-token-cb`);\n      _defineProperty(this, \"queryParams\", {\n        token: {\n          refreshModel: false\n        },\n        _confirmEmailCode: {\n          refreshModel: false\n        },\n        cbHostedPageId: {\n          refreshModel: false\n        }\n      });\n      _defineProperty(this, \"getRegistrationData\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (token) {\n          const url = `${this.serverTokenEndpoint}?token=${token}`;\n          let registrationData;\n          try {\n            registrationData = yield new Promise((resolve, reject) => {\n              // eslint-disable-next-line ember/no-jquery\n              _jquery.default.ajax({\n                url,\n                method: 'GET',\n                accepts: 'application/json'\n              }).then(resolve, reject);\n            });\n          } catch (error) {\n            if (error.responseJSON?.errors?.[0]) {\n              this.notifications.error({\n                error,\n                message: 'Error fetching registration data',\n                customData: [`registrationToken: ${token}`]\n              });\n              return {\n                error: error.responseJSON?.errors?.[0]\n              };\n            }\n            this.send('error', error);\n          }\n          return registrationData;\n        }\n      }), {\n        drop: true\n      }, \"getRegistrationData\", null));\n      _defineProperty(this, \"actions\", {\n        refreshRegistrationData() {\n          this.refresh();\n        }\n      });\n    }\n    model(params) {\n      if (!params.token) {\n        return {\n          registrationData: null,\n          errorMessage: 'Registration link was malformed.'\n        };\n      }\n      return {\n        registrationData: this.getRegistrationData.perform(params.token),\n        token: params.token,\n        confirmEmailCode: params._confirmEmailCode\n      };\n    }\n    setupController(controller, model) {\n      super.setupController(...arguments);\n      controller.password = '';\n      controller.passwordCheck = '';\n      if (model.confirmEmailCode) controller.confirmEmailCode = model.confirmEmailCode;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/embed\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"portal/utils/get-default-language\"], function (_exports, _route, _service, _getDefaultLanguage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"portal/utils/get-default-language\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n    }\n    async beforeModel(transition) {\n      const {\n        token = ''\n      } = this.paramsFor('embed');\n\n      // this means we're trying to access this page directly, just redirect to the error\n      if (transition.targetName === `${this.fullRouteName}.index`) this.router.transitionTo('embed.error', token);\n      const [accessToken, userId, entityId] = token.split(':');\n      if (!accessToken || !userId || !entityId) {\n        this.router.transitionTo('embed.error', token);\n        return;\n      }\n      try {\n        await this.session.authenticate('authenticator:embed', accessToken, userId, transition);\n\n        // set the currently selected entity and user in sessionData\n        this.sessionData.entity = await this.store.findRecord('entity', entityId, {\n          include: 'attributes,financialOptions,pricingConnection,eaccountsInvoiceIntegration,xeroConnection,projects'\n        });\n        this.sessionData.user = await this.store.findRecord('user', userId, {\n          include: 'entityAttributes,entityGroups,pricingRoles,projectAttributes,taskAttributes,workerAttributes'\n        });\n        const language = this.sessionData?.user?.language ?? (0, _getDefaultLanguage.getDefaultUserOrWorkerLanguage)();\n        this.intl.setLocale([language]);\n      } catch (error) {\n        this.router.transitionTo('embed.error', token);\n        return;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/embed/documents\", [\"exports\", \"portal/routes/entity/builda-price/operations/documents\"], function (_exports, _documents) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/documents\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _documents.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/operations/documents');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/operations/documents');\n      _defineProperty(this, \"basePath\", 'embed.documents');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/documents/index\", [\"exports\", \"portal/routes/entity/builda-price/operations/documents/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/documents/index\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _index.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/operations/documents/index');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/operations/documents/index');\n      _defineProperty(this, \"basePath\", 'embed.documents.index');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/documents/project-file\", [\"exports\", \"portal/routes/entity/builda-price/operations/documents/project-file\"], function (_exports, _projectFile) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/documents/project-file\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _projectFile.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/operations/documents/project-file');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/operations/documents/project-file');\n      _defineProperty(this, \"basePath\", 'embed.documents.project-file');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/documents/project-file/index\", [\"exports\", \"portal/routes/entity/builda-price/operations/documents/project-file/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/documents/project-file/index\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _index.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/operations/documents/project-file/index');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/operations/documents/project-file/index');\n      _defineProperty(this, \"basePath\", 'embed.documents.project-file.index');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/documents/project-file/task-file\", [\"exports\", \"portal/routes/entity/builda-price/operations/documents/project-file/task-file\"], function (_exports, _taskFile) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/documents/project-file/task-file\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _taskFile.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/operations/documents/project-file/task-file');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/operations/documents/project-file/task-file');\n      _defineProperty(this, \"basePath\", 'embed.documents.project-file.task-file');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/error\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({});\n});","define(\"portal/routes/embed/labour-hours\", [\"exports\", \"portal/routes/entity/builda-price/reports/company/labour-hours\"], function (_exports, _labourHours) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/reports/company/labour-hours\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _labourHours.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/reports/company/labour-hours');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/reports/company/labour-hours');\n      _defineProperty(this, \"basePath\", 'embed.labour-hours');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/notes\", [\"exports\", \"portal/routes/entity/builda-price/reports/company/notes\"], function (_exports, _notes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/reports/company/notes\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _notes.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/reports/company/notes');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/reports/company/notes');\n      _defineProperty(this, \"basePath\", 'embed.notes');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/position\", [\"exports\", \"portal/routes/entity/builda-price/reports/company/position\"], function (_exports, _position) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/reports/company/position\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _position.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/reports/company/position');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/reports/company/position');\n      _defineProperty(this, \"basePath\", 'embed.position');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/profit-margins\", [\"exports\", \"portal/routes/entity/builda-price/reports/company/profit-margins\"], function (_exports, _profitMargins) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/reports/company/profit-margins\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _profitMargins.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/reports/company/profit-margins');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/reports/company/profit-margins');\n      _defineProperty(this, \"basePath\", 'embed.profit-margins');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/timesheets\", [\"exports\", \"portal/routes/entity/builda-price/operations/incoming/timesheets\"], function (_exports, _timesheets) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/incoming/timesheets\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _timesheets.default.extend({\n    controllerName: 'entity/builda-price/operations/incoming/timesheets',\n    templateName: 'entity/builda-price/operations/incoming/timesheets',\n    basePath: 'embed'\n  });\n});","define(\"portal/routes/embed/timesheets/timesheet\", [\"exports\", \"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet\"], function (_exports, _timesheet) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _timesheet.default.extend({\n    controllerName: 'entity/builda-price/operations/incoming/timesheets/timesheet',\n    templateName: 'entity/builda-price/operations/incoming/timesheets/timesheet',\n    basePath: 'embed'\n  });\n});","define(\"portal/routes/entity-loading\", [\"exports\", \"portal/routes/entity\", \"portal/utils/loading-route-from\"], function (_exports, _entity, _loadingRouteFrom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity\",0,\"portal/utils/loading-route-from\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _loadingRouteFrom.default)(_entity.default, 'entity');\n});","define(\"portal/routes/entity\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  function isLeavingSection(from, to) {\n    // if either side is missing, treat as not leaving\n    if (!from || !to) return false;\n\n    // ignore Ember \"loading\" states\n    if (from.localName?.includes('loading') || to.localName?.includes('loading')) return false;\n\n    // if we're on an .index route, use its parent as the \"section root\"\n    const sectionRoute = from.localName === 'index' ? from.parent : from;\n\n    // check ancestry: \"to.find\" walks up the route tree\n    // if we cannot find the base route anywhere in the \"to\" ancestry, we are leaving the section\n    const stillInSection = to.find(parentRoute => parentRoute.name === sectionRoute.name);\n    return !stillInSection;\n  }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n    }\n    async beforeModel() {\n      if (this.isDestroying || this.isDestroyed) return;\n      const {\n        id\n      } = this.paramsFor('entity');\n\n      // check if the user is authenticated\n      if (this.session.isDestroying || this.session.isDestroyed) return;\n      if (!this.session.isAuthenticated) {\n        // if user is not authenticated go to login\n        return this.router.transitionTo('login');\n      }\n      await this.sessionData.reloadApp(id);\n    }\n\n    // this will prevent unsaved changes from staying around when leaving a route\n    rollbackUnsavedChanges(transition) {\n      const shouldRollback = isLeavingSection(transition.from, transition.to);\n      if (!shouldRollback) return;\n      Object.keys(this.store._modelFactoryCache).forEach(modelName => {\n        this.store.peekAll(modelName).forEach(record => {\n          if (record?.hasDirtyAttributes) {\n            record.rollbackAttributes();\n          }\n        });\n      });\n    }\n\n    // lets the zendesk widget know which route we're on so it can offer articles\n    updateHelpCenter(transition) {\n      if (transition.to.name.startsWith('entity.') && !transition.to.name.includes('loading')) {\n        this.helpCenter.setLabels(...transition.to.name.split('.'));\n      }\n    }\n    onRouteWillChange(transition) {\n      if (!transition.to || transition.isAborted) return;\n      this.rollbackUnsavedChanges(transition);\n      this.updateHelpCenter(transition);\n    }\n    activate() {\n      this._onRouteWillChange = this.onRouteWillChange.bind(this);\n      this.router.on('routeWillChange', this._onRouteWillChange);\n    }\n    deactivate() {\n      if (this._onRouteWillChange) this.router.off('routeWillChange', this._onRouteWillChange);\n    }\n    changeEntity({\n      id\n    }) {\n      this.sessionData.changeEntity(id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"changeEntity\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"changeEntity\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor3, this);\n    }\n    beforeModel() {\n      if (this.newFeatureFlags.excludesFeatureFlags('canUseBuildaPrice')) return this.router.transitionTo('entity');\n      if (this.newFeatureFlags.includesFeatureFlags('entityHasSupport')) this.helpCenter.showHelpCenter();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/dashboard/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const filter = {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          };\n          const report = {\n            name: this.intl.t('common.Dashboard'),\n            doNotThrowErrorOnNoData: true,\n            subjects: []\n          };\n          if (this.newFeatureFlags.includesFeatureFlags('canUseProjectProgressReports')) report.subjects.push({\n            index: 1,\n            width: 4,\n            height: 2,\n            name: this.intl.t('entity.builda-price.dashboard.Forecast used'),\n            elementType: 'BIG_TEXT',\n            borderStyle: 'BORDER',\n            axes: {\n              label: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.report.The amount of your forecast used')\n              }]]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'projects',\n              filter\n            },\n            metrics: [[{\n              metric: 'FINANCIAL_PROGRESS_TOTAL'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseProjectBudgetReports') && this.newFeatureFlags.includesFeatureFlags('canUseProjectQuoteReports') && this.newFeatureFlags.includesFeatureFlags('canUseProjectCostReports')) report.subjects.push({\n            index: 2,\n            width: 4,\n            height: 2,\n            name: this.intl.t('entity.builda-price.dashboard.Current position'),\n            elementType: 'MULTI_GAUGE',\n            borderStyle: 'BORDER',\n            axes: {\n              x: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Budget')\n              }, {\n                subject: {\n                  resourceName: 'projects',\n                  filter\n                },\n                metric: 'BUDGET_TOTAL'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Quote')\n              }, {\n                subject: {\n                  resourceName: 'projects',\n                  filter\n                },\n                metric: 'QUOTE_TOTAL'\n              }]]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'projects',\n              filter\n            },\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.dashboard.Actual')\n            }, {\n              metric: 'COST_TOTAL'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseProjectBudgetReports')) report.subjects.push({\n            index: 3,\n            width: 4,\n            height: 2,\n            name: this.intl.t('entity.builda-price.dashboard.Forecast position'),\n            elementType: 'MULTI_GAUGE',\n            borderStyle: 'BORDER',\n            axes: {\n              x: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Budget')\n              }, {\n                subject: {\n                  resourceName: 'projects',\n                  filter\n                },\n                metric: 'BUDGET_TOTAL'\n              }]]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'projects',\n              filter\n            },\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.dashboard.Forecast')\n            }, {\n              subject: {\n                resourceName: 'projects',\n                filter\n              },\n              metric: 'FORECAST_BUDGET'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseTimesheets')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent timesheets'),\n            index: 4,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Date')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Worker'),\n                classes: [{\n                  class: 'pe-1'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'ps-0'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Task')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.dashboard.Duration'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'timesheets',\n              filter: {\n                entity: this.sessionData.entity.id,\n                date: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'date',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'date',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.timesheets.timesheet',\n                queryParams: {\n                  date: {\n                    key: 'date'\n                  },\n                  worker: {\n                    key: 'worker'\n                  }\n                }\n              }\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'worker.firstName',\n              classes: [{\n                class: 'pe-1'\n              }]\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'worker.lastName',\n              classes: [{\n                class: 'ps-0'\n              }]\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'task.name'\n            }, {\n              metric: 'TIMESHEET_DURATION',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseBills')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent bills'),\n            index: 5,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: false,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Reference')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.From')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Issue date')\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'bills',\n              filter: {\n                entity: this.sessionData.entity.id,\n                dateCreated: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'issueDate',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'reference',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.bills.bill',\n                modelKeys: ['_id']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'issuer'\n            }, {\n              metric: 'PROPERTY',\n              key: 'issueDate'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseProjectTasks')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent tasks'),\n            index: 6,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: false,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.report.Date created')\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'tasks',\n              filter: {\n                entity: this.sessionData.entity.id,\n                dateCreated: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'dateCreated',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.projects.project.tasks.task',\n                modelKeys: ['project', '_id']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'dateCreated'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseProjects')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent projects'),\n            index: 7,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: false,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.report.Date created')\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'projects',\n              filter: {\n                entity: this.sessionData.entity.id,\n                dateCreated: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'dateCreated',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.projects.project',\n                modelKeys: ['_id']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'dateCreated'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUsePurchaseOrders')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent purchase orders'),\n            index: 8,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: false,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.report.Date created')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Status')\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'purchase-orders',\n              filter: {\n                entity: this.sessionData.entity.id,\n                dateCreated: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'dateCreated',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'purchaseOrderNumber',\n              linkTo: {\n                route: 'entity.builda-price.operations.outgoing.purchase-orders.purchase-order',\n                modelKeys: ['_id']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'dateCreated'\n            }, {\n              metric: 'PROPERTY',\n              key: 'status',\n              humanEnums: true\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseInvoices')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent invoices'),\n            index: 9,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: false,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.report.Date created')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Status')\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'invoices',\n              filter: {\n                entity: this.sessionData.entity.id,\n                dateCreated: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'dateCreated',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'invoiceNumber',\n              linkTo: {\n                route: 'entity.builda-price.operations.outgoing.invoices.invoice',\n                modelKeys: ['id']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'dateCreated'\n            }, {\n              metric: 'PROPERTY',\n              key: 'status',\n              humanEnums: true\n            }]]\n          });\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n      _defineProperty(this, \"getPmConnection\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const pmConnection = yield this.store.query('pm-connection', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            },\n            fields: {\n              'pm-connections': '_meta.isConnected'\n            }\n          });\n          return pmConnection?.[0] || null;\n        }\n      }), null, \"getPmConnection\", null));\n    }\n    model() {\n      this.getAdHocReport.perform();\n      if (this.newFeatureFlags.includesFeatureFlags('canUseIntegrations') && this.newFeatureFlags.includesFeatureFlags('canUsePlaceMakers')) {\n        this.getPmConnection.perform();\n        return {\n          entity: this.sessionData.entity,\n          dashboardReport: this.getAdHocReport,\n          pmConnection: this.getPmConnection\n        };\n      }\n      return {\n        entity: this.sessionData.entity,\n        dashboardReport: this.getAdHocReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\", \"@ember/service\"], function (_exports, _route, _menuRoute, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    get defaultRoute() {\n      // this is the same logic in the builda-price controller for tabs\n      // if you have the dashboard, go there by default\n      if (this.newFeatureFlags.includesFeatureFlags('canUseDashboardReport')) return 'entity.builda-price.dashboard';\n\n      // if you don't have the dashboard, but you can go to projects, go there\n      if (this.newFeatureFlags.includesFeatureFlags('canUseProjects') || this.newFeatureFlags.includesFeatureFlags('userIsClient')) return 'entity.builda-price.projects';\n\n      // otherwise go to the timesheets route which should be accessible by everyone\n      return 'entity.builda-price.operations.incoming.timesheets';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/documents\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/array\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _tracking, _array, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.DocumentData = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _class3, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/array\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let DocumentData = _exports.DocumentData = (_class = class DocumentData {\n    constructor(projects, tasks, attachments, documentPath) {\n      _initializerDefineProperty(this, \"projects\", _descriptor, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor2, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor3, this);\n      _initializerDefineProperty(this, \"files\", _descriptor4, this);\n      _initializerDefineProperty(this, \"documentPath\", _descriptor5, this);\n      this.projects = projects;\n      this.tasks = tasks;\n      this.attachments = attachments;\n      this.documentPath = documentPath;\n      // Assign rather than push: the search builds a DocumentData inside the\n      // tableData getter, and mutating a tracked array mid-computation is a\n      // backtracking rerender error.\n      this.files = (0, _array.A)(this._initFromData(projects, tasks, attachments));\n    }\n    _initFromData(projects, tasks, attachments) {\n      const files = [];\n      if (projects.length) projects.forEach(project => files.push(this._createFile(project)));\n      if (tasks.length) tasks.forEach(task => files.push(this._createFile(null, task)));\n      if (attachments.length) attachments.forEach(attachment => files.push(this._createFile(null, null, attachment)));\n      return files;\n    }\n    _createFile(project, task, attachment) {\n      if (project) return {\n        name: project.name,\n        breadcrumbs: project.belongsTo('entity').value().name,\n        isVisible: Boolean(project.name?.length),\n        type: 'project',\n        projectLinkModel: project.id,\n        taskLinkModel: null,\n        route: `${this.documentPath}.project-file`,\n        humanType: 'Project',\n        dateCreated: project.dateCreated,\n        size: project.allAttachments.reduce((a, c) => a + c.size, 0),\n        href: null,\n        value: project,\n        project: project\n      };\n      if (task) return {\n        name: task.name,\n        breadcrumbs: task.belongsTo('entity').value().name + ' > ' + task.breadcrumbs,\n        isVisible: Boolean(task.name?.length),\n        type: 'task',\n        projectLinkModel: task.belongsTo('project').value().id,\n        taskLinkModel: task.id,\n        route: `${this.documentPath}.project-file.task-file`,\n        humanType: 'Task',\n        dateCreated: task.dateCreated,\n        size: task.allAttachments.reduce((a, c) => a + c.size, 0),\n        href: null,\n        value: task,\n        project: task.belongsTo('project').value()\n      };\n      if (attachment) {\n        const entity = attachment.belongsTo('entity').value();\n        let breadcrumbs = entity.name;\n        const projects = attachment.hasMany('projects')?.value()?.toArray() || [];\n        const projectId = projects?.[0]?.belongsTo('project')?.id();\n        const tasks = attachment.hasMany('tasks')?.value()?.toArray() || [];\n        const taskId = tasks?.[0]?.belongsTo('task')?.id();\n        if (projectId) {\n          const project = projects?.[0]?.belongsTo('project')?.value();\n          breadcrumbs += ' > ' + project.name;\n        }\n        if (taskId) {\n          const task = tasks?.[0]?.belongsTo('task')?.value();\n          breadcrumbs += ' > ' + task.breadcrumbs + ' > ' + task.name;\n        }\n        return {\n          _name: null,\n          get name() {\n            if (!this._name) return attachment.filename;\n            return this._name;\n          },\n          set name(val) {\n            attachment.filename = val;\n            this._name = val;\n          },\n          breadcrumbs,\n          isVisible: Boolean(attachment.filename?.length),\n          type: attachment.fileType,\n          projectLinkModel: null,\n          taskLinkModel: null,\n          route: null,\n          humanType: attachment.humanType,\n          dateCreated: attachment.dateCreated,\n          size: attachment.size,\n          href: attachment.href,\n          value: attachment,\n          project: null\n        };\n      }\n    }\n    removeAttachment(file) {\n      this.files.removeObject(file);\n    }\n    addAttachments(attachments) {\n      if (attachments.length) {\n        attachments.forEach(attachment => {\n          this.files.pushObject(this._createFile(null, null, attachment));\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"projects\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"attachments\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"files\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"documentPath\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  let _class2 = _exports.default = (_class3 = class _class3 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor8, this);\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.newFeatureFlags.canManageFileStorage() || !this.newFeatureFlags.includesFeatureFlags('canManageUsers')) return [];\n          const userAttributes = yield this.store.simpleQuery('user-entity-attribute', {\n            entity: this.sessionData.entity.id,\n            attribute: 'canViewEntity'\n          });\n          if (!userAttributes.length) return [];\n          const userIds = userAttributes.map(ua => ua.belongsTo('user').id());\n          const users = yield this.store.simpleQuery('user', {\n            _id: {\n              $in: userIds\n            }\n          }, {\n            include: 'entityAttributes'\n          });\n          return users;\n        }\n      }), null, \"getUsers\", null));\n      _defineProperty(this, \"getOpenProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (activeProject) {\n          if (activeProject) {\n            return yield this.store.simpleQuery('project', {\n              _id: activeProject\n            });\n          }\n          return yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          });\n        }\n      }), null, \"getOpenProjects\", null));\n      _defineProperty(this, \"getActiveTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects) {\n          yield projects.last;\n          let filter = {\n            and: [{\n              field: 'project.status',\n              op: 'EQ',\n              value: 'OPEN'\n            }, {\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          if (projects.last.value.length === 1) filter = {\n            and: [{\n              field: 'project',\n              op: 'EQ',\n              value: projects.last.value.toArray()[0].id\n            }]\n          };\n          return yield this.store.query('task', {\n            filter\n          });\n        }\n      }), null, \"getActiveTasks\", null));\n      _defineProperty(this, \"getAttachments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects, tasks) {\n          yield projects.last;\n          yield tasks.last;\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          const allAttachments = yield this.store.query('attachment', {\n            filter,\n            include: 'entities,projects,tasks'\n          }).then(r => r.toArray());\n          return allAttachments.filter(attachment => {\n            if (attachment.hasMany('entities').ids().length > 0) return true;\n            const attachmentProjects = attachment.hasMany('projects').value()?.toArray() || [];\n            const isProjectAttachment = attachmentProjects.some(ap => projects.last.value.map(p => p.id).includes(ap.belongsTo('project').id()));\n            if (isProjectAttachment) return true;\n            const attachmentTasks = attachment.hasMany('tasks').value()?.toArray() || [];\n            const isTaskAttachment = attachmentTasks.some(at => {\n              return tasks.last.value.map(t => t.id).includes(at.belongsTo('task').id());\n            });\n            if (isTaskAttachment) return true;\n          });\n        }\n      }), null, \"getAttachments\", null));\n      _defineProperty(this, \"entityLoaded\", false);\n    }\n    willTransition(transition) {\n      if (!transition.targetName.includes('documents')) {\n        this.entityLoaded = false;\n      }\n    }\n    model() {\n      const loadModel = activeProject => {\n        if (this.entityLoaded) return;\n        if (!activeProject) this.entityLoaded = true;\n        this.getOpenProjects.perform(activeProject);\n        this.getActiveTasks.perform(this.getOpenProjects);\n        this.getAttachments.perform(this.getOpenProjects, this.getActiveTasks);\n        this.getUsers.perform();\n      };\n      return {\n        users: this.getUsers,\n        attachments: this.getAttachments,\n        projects: this.getOpenProjects,\n        tasks: this.getActiveTasks,\n        loadModel\n      };\n    }\n  }, _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class3.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class3.prototype, \"willTransition\"), _class3.prototype), _class3);\n});","define(\"portal/routes/entity/builda-price/operations/documents/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"portal/routes/entity/builda-price/operations/documents\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _documents, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"portal/routes/entity/builda-price/operations/documents\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.operations.documents.index');\n      _defineProperty(this, \"getEntityFile\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (openProjects, activeTasks, attachments) {\n          yield openProjects.last;\n          yield activeTasks.last;\n          yield attachments.last;\n          const myAttachments = attachments.last.value?.filter(attachment => (attachment.hasMany('entities')?.value()?.toArray().map(item => item.belongsTo('entity').id()) || []).length > 0)?.sortBy('dateCreated') || [];\n          return new _documents.DocumentData(openProjects.last.value?.sortBy('sortIndex') || [], [], myAttachments, this.documentPath);\n        }\n      }), null, \"getEntityFile\", null));\n    }\n    get documentPath() {\n      if (this.basePath.includes('embed')) return 'embed.documents';\n      return 'entity.builda-price.operations.documents';\n    }\n    setupController(controller, post) {\n      super.setupController(controller, post);\n      this.controllerFor(`${this.documentPath}.index`).set('searchString', '');\n    }\n    async model() {\n      const {\n        loadModel,\n        users,\n        attachments,\n        projects,\n        tasks\n      } = this.modelFor(this.documentPath);\n      loadModel();\n      this.getEntityFile.perform(projects, tasks, attachments);\n      return {\n        users,\n        file: this.getEntityFile,\n        attachments,\n        projects,\n        tasks,\n        documentPath: this.documentPath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/documents/project-file\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model({\n      project_id\n    }) {\n      return project_id;\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/operations/documents/project-file/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"portal/routes/entity/builda-price/operations/documents\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _documents, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"portal/routes/entity/builda-price/operations/documents\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.operations.documents.index');\n      _defineProperty(this, \"getFile\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects, tasks, attachments, projectId) {\n          yield tasks.last;\n          yield projects.last;\n          yield attachments.last;\n          const projectTasks = tasks.last.value.filter(task => task.belongsTo('project').value().id === projectId && ['ACTIVE', 'DRAFT_CREATED'].includes(task.status));\n          const parentTasks = projectTasks.toArray().filter(task => !task.belongsTo('parent').id());\n          const projectAttachments = attachments.last.value?.filter(attachment => (attachment.hasMany('projects')?.value()?.toArray().map(item => item.belongsTo('project').id()) || []).includes(projectId)) || [];\n          return new _documents.DocumentData([], parentTasks?.sortBy('path') || [], projectAttachments.sortBy('dateCreated') || [], this.documentPath);\n        }\n      }), null, \"getFile\", null));\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects, projectId) {\n          yield projects.last;\n          return projects.last.value.find(project => project.id === projectId);\n        }\n      }), null, \"getProject\", null));\n    }\n    get documentPath() {\n      if (this.basePath.includes('embed')) return 'embed.documents';\n      return 'entity.builda-price.operations.documents';\n    }\n    setupController(controller, post) {\n      super.setupController(controller, post);\n      let documentIndexPath = `${this.documentPath}.index`;\n      this.controllerFor(documentIndexPath).set('searchString', '');\n    }\n    model() {\n      const {\n        loadModel,\n        users,\n        attachments,\n        projects,\n        tasks\n      } = this.modelFor(this.documentPath);\n      const {\n        project_id: projectId\n      } = this.paramsFor(`${this.documentPath}.project-file`);\n      loadModel(projectId);\n      this.getFile.perform(projects, tasks, attachments, projectId);\n      this.getProject.perform(projects, projectId);\n      return {\n        users,\n        file: this.getFile,\n        project: this.getProject,\n        documentPath: this.documentPath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/documents/project-file/task-file\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"portal/routes/entity/builda-price/operations/documents\"], function (_exports, _asyncArrowRuntime, _route, _service, _documents) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"portal/routes/entity/builda-price/operations/documents\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.operations.documents.project-file.task-file');\n      _defineProperty(this, \"getFile\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects, tasks, attachments, task) {\n          yield projects.last;\n          yield tasks.last;\n          yield attachments.last;\n          yield task.last;\n          const taskAttachments = attachments.last.value.filter(attachment => {\n            const taskIds = (attachment.hasMany('tasks')?.value()?.toArray() || []).map(item => item.belongsTo('task').id());\n            return taskIds.includes(task.last.value.id);\n          });\n          const currentLevelTasks = tasks.last.value.filter(t => task.last.value.hasMany('children').value()?.map(c => c.id).includes(t.id));\n          return new _documents.DocumentData([], currentLevelTasks?.sortBy('path') || [], taskAttachments.sortBy('dateCreated') || [], this.documentPath);\n        }\n      }), null, \"getFile\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (tasks, taskId) {\n          yield tasks.last;\n          return tasks.last.value.find(task => task.id === taskId);\n        }\n      }), null, \"getTask\", null));\n    }\n    get documentPath() {\n      if (this.basePath.includes('embed')) return 'embed.documents';\n      return 'entity.builda-price.operations.documents';\n    }\n    setupController(controller, model) {\n      // reset the search string when you navigate\n      controller.set('searchString', '');\n      super.setupController(controller, model);\n    }\n    model() {\n      const {\n        loadModel,\n        users,\n        attachments,\n        projects,\n        tasks\n      } = this.modelFor(this.documentPath);\n      const {\n        project_id: projectId\n      } = this.paramsFor(`${this.documentPath}.project-file`);\n      const {\n        task_id\n      } = this.paramsFor(`${this.documentPath}.project-file.task-file`);\n      loadModel(projectId);\n      const taskIds = task_id.split(':');\n      const taskId = taskIds[taskIds.length - 1];\n      this.getTask.perform(tasks, taskId);\n      this.getFile.perform(projects, tasks, attachments, this.getTask);\n      return {\n        file: this.getFile,\n        users,\n        task: this.getTask,\n        documentPath: this.documentPath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/bills-legacy\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\", \"moment\", \"portal/utils/search-filter\"], function (_exports, _route, _object, _service, _moment, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    queryParams: {\n      sortBy: {\n        refreshModel: true\n      },\n      filterByDate: {\n        refreshModel: true\n      },\n      startDate: {\n        refreshModel: true\n      },\n      endDate: {\n        refreshModel: true\n      },\n      status: {\n        refreshModel: true\n      },\n      unallocatedOnly: {\n        refreshModel: true\n      },\n      search: {\n        refreshModel: true\n      }\n    },\n    async model({\n      sortBy,\n      filterByDate,\n      startDate,\n      endDate,\n      status,\n      unallocatedOnly,\n      search\n    }) {\n      // instead of proper pagination, manually set the maximum number of bills shown for each filter set\n      // TODO with unallocatedOnly we can't page the bills because we're post filtering - implement meta filters to fix this\n      const maxNumberOfBills = unallocatedOnly ? undefined : 600;\n      const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n      const billQuery = {\n        and: [{\n          field: 'entity',\n          op: 'EQ',\n          value: entityId\n        }]\n      };\n      if (status !== 'ALL') {\n        billQuery.and.push({\n          field: 'status',\n          op: 'EQ',\n          value: status\n        });\n      }\n      if (search) {\n        billQuery.and.push((0, _searchFilter.default)(['reference', 'billNumber', 'issuer'], search));\n      }\n      if (filterByDate) {\n        billQuery.and.push({\n          field: 'issueDate',\n          op: 'GT',\n          value: (0, _moment.default)(startDate).startOf('day').toISOString()\n        });\n        billQuery.and.push({\n          field: 'issueDate',\n          op: 'LT',\n          value: (0, _moment.default)(endDate).endOf('day').toISOString()\n        });\n      }\n      const invoicesQuery = {\n        filter: billQuery,\n        sort: sortBy,\n        include: 'items,items.project,items.task',\n        fields: {\n          'bill-items': '_meta.isMapped',\n          bills: '_meta.hasDuplicate,_meta.isInvoiced'\n        }\n      };\n      if (maxNumberOfBills) {\n        invoicesQuery.page = {\n          number: 1,\n          size: maxNumberOfBills\n        };\n      }\n      const invoices = this.store.query('bill', invoicesQuery).then(_invoices => {\n        let invoices = _invoices.toArray();\n\n        // post filter the invoices\n        if (unallocatedOnly) return invoices.filter(i => !(0, _object.get)(i, 'isMapped'));\n        return invoices;\n      });\n      const projects = this.store.query('project', {\n        filter: {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: entityId\n          }, {\n            field: 'status',\n            op: 'EQ',\n            value: 'OPEN'\n          }]\n        },\n        sort: 'sortIndex'\n      });\n      const tasks = this.store.query('task', {\n        filter: {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: entityId\n          }, {\n            field: 'status',\n            op: 'IN',\n            value: ['ACTIVE', 'DRAFT_CREATED']\n          }, {\n            field: 'project.status',\n            op: 'EQ',\n            value: 'OPEN'\n          }]\n        },\n        sort: 'path'\n      });\n      const xeroAccounts = this.store.query('gl-account', {\n        filter: {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: entityId\n          }, {\n            field: 'xeroAccountId',\n            op: 'IS_NOT_NULL',\n            value: null\n          }]\n        },\n        sort: 'code'\n      });\n      const quickbooksAccounts = this.store.query('gl-account', {\n        filter: {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: entityId\n          }, {\n            field: 'quickbooksAccountId',\n            op: 'IS_NOT_NULL',\n            value: null\n          }]\n        },\n        sort: 'code'\n      });\n      return Promise.all([invoices, projects, tasks, xeroAccounts, quickbooksAccounts, this.store.simpleQuery('invoice-auto-map-directive', {\n        entity: entityId\n      })]).then(([invoices, projects, tasks, xeroAccounts, quickbooksAccounts, directives]) => ({\n        invoices,\n        projects,\n        tasks,\n        xeroAccounts,\n        quickbooksAccounts,\n        directives,\n        maxNumberOfBills\n      }));\n    },\n    actions: {\n      invoiceAdded(invoice) {\n        (0, _object.get)(this, 'controller.model.invoices').unshiftObject(invoice);\n      },\n      refreshModel() {\n        this.refresh();\n      }\n    }\n  });\n});","define(\"portal/routes/entity/builda-price/operations/incoming/bills-legacy/bill\", [\"exports\", \"@ember/routing/route\", \"rsvp\", \"jquery\", \"@ember/object\", \"@ember/service\", \"ember-local-storage\", \"@ember/application\"], function (_exports, _route, _rsvp, _jquery, _object, _service, _emberLocalStorage, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"rsvp\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-local-storage\",0,\"@ember/application\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    persistedSettings: (0, _emberLocalStorage.storageFor)('settings'),\n    async model(params) {\n      const entity = (0, _object.get)(this, 'sessionData.entity');\n      const entityId = (0, _object.get)(entity, 'id');\n      let invoice;\n      if (params.bill_id === 'new') {\n        // Create a new invoice that belongs to the current entity and has one item\n        invoice = await this.store.createRecord('bill', {\n          entity,\n          issueDate: new Date(),\n          subcontractor: null,\n          source: 'web:manual'\n        });\n        this.store.createRecord('bill-item', {\n          bill: invoice,\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        });\n      } else {\n        invoice = await this.store.findRecord('bill', params.bill_id, {\n          include: 'attachments,items,items.project,items.task',\n          adapterOptions: {\n            fields: {\n              bills: '_meta.hasDuplicate'\n            }\n          }\n        }).catch(() => {\n          this.router.transitionTo('entity.builda-price.operations.incoming.bills-legacy');\n        });\n      }\n      const parentModel = this.modelFor('entity.builda-price.operations.incoming.bills-legacy');\n      const owner = (0, _application.getOwner)(this);\n      const billsController = owner?.lookup('controller:entity.builda-price.operations.incoming.bills-legacy');\n      const controllerInvoices = billsController ? (0, _object.get)(billsController, 'invoices') : null;\n      let invoices = controllerInvoices;\n      const getKey = invoice => `${String((0, _object.get)(invoice, 'issuer')).toLowerCase().trim()}:${String((0, _object.get)(invoice, 'billNumber')).toLowerCase().trim()}`;\n      const existingInvoiceKeys = invoices.reduce((obj, existingInvoice) => invoice !== existingInvoice // not \"this\" invoice\n      ? Object.assign(obj, {\n        [getKey(existingInvoice)]: existingInvoice\n      }) : obj, {});\n      const suppliers = await this.store.simpleQuery('contact', {\n        entity: entity.id\n      }).then(suppliers => suppliers.toArray());\n      const suppliersWithPaymentTermsHash = suppliers.reduce((suppliers, supplier) => supplier.hasValidPurchasePaymentTerm ? {\n        ...suppliers,\n        [supplier.name]: supplier\n      } : suppliers, {});\n      return _rsvp.default.hash(Object.assign({}, parentModel, {\n        invoices,\n        invoice,\n        existingInvoiceKeys,\n        suppliers,\n        suppliersWithPaymentTermsHash,\n        directives: this.store.simpleQuery('invoice-auto-map-directive', {\n          entity: entityId\n        })\n      }));\n    },\n    setupController(controller, model) {\n      this._super(...arguments);\n      (0, _object.set)(controller, 'selectedItems', (0, _object.get)(model, 'invoice').hasMany('items').value().toArray());\n      (0, _object.set)(controller, 'dirtyRels', []);\n      (0, _object.set)(controller, 'deletedItems', []);\n\n      // If the invoice is new, then the page should start in the editing mode\n      if ((0, _object.get)(model, 'invoice.isNew')) {\n        (0, _object.set)(controller, 'isEditing', true);\n        (0, _object.set)(controller, 'newInvoiceStep', 0);\n      } else {\n        (0, _object.set)(controller, 'isEditing', false);\n      }\n    },\n    actions: {\n      didTransition() {\n        (0, _jquery.default)(document).on('keypress', event => event.key === 'Enter' && (0, _object.get)(this, 'controller.isEditing') && this.controller.actions.save.call(this.controller) || event);\n      },\n      willTransition() {\n        const invoice = this.controller.get('model.invoice');\n\n        // Remove any new (unsaved) bill-items\n        (invoice.get('items').content?.toArray() || []).filter(item => item.isNew).forEach(item => {\n          item.unloadRecord();\n        });\n\n        // If the invoice itself is new, remove it too\n        if (invoice.get('isNew')) {\n          invoice.unloadRecord();\n        }\n        (0, _jquery.default)(document).off('keypress');\n      }\n    }\n  });\n});","define(\"portal/routes/entity/builda-price/operations/incoming/bills\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\"], function (_exports, _route, _service, _object, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EntityBuildaPriceOperationsIncomingBillsRoute = _exports.default = (_class = class EntityBuildaPriceOperationsIncomingBillsRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"billsData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"ips\", _descriptor4, this);\n      _defineProperty(this, \"queryParams\", {\n        status: {\n          refreshModel: true\n        },\n        search: {\n          refreshModel: true\n        },\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        sort: {\n          refreshModel: true\n        },\n        billType: {\n          refreshModel: true\n        },\n        allocationType: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSize\", 100);\n      _initializerDefineProperty(this, \"lastParams\", _descriptor5, this);\n    }\n    async beforeModel() {\n      try {\n        await this.ips.getUsage();\n      } catch {\n        // without usage IPS is not ready, so nothing of its UI renders\n      }\n    }\n    async model({\n      status,\n      search,\n      startDate,\n      endDate,\n      sort = '-dateCreated',\n      billType,\n      allocationType\n    }) {\n      const filter = {\n        and: [{\n          field: 'entity',\n          op: 'EQ',\n          value: this.sessionData.entity.id\n        }],\n        or: []\n      };\n      if (status) {\n        filter.and.push({\n          field: 'status',\n          op: 'EQ',\n          value: status\n        });\n      }\n      if (search) {\n        filter.or.push({\n          field: 'searchText',\n          op: 'ILIKE',\n          value: search\n        });\n        filter.or.push({\n          field: 'issuerContact.name',\n          op: 'ILIKE',\n          value: search\n        });\n      }\n      if (startDate) {\n        filter.and.push({\n          field: 'issueDate',\n          op: 'GT',\n          value: new Date(new Date(startDate).setHours(0, 0, 0, 0)).toISOString()\n        });\n      }\n      if (endDate) {\n        filter.and.push({\n          field: 'issueDate',\n          op: 'LT',\n          value: new Date(new Date(endDate).setHours(23, 59, 59, 999)).toISOString()\n        });\n      }\n      if (billType) {\n        filter.and.push({\n          field: 'billType',\n          op: 'EQ',\n          value: billType\n        });\n      }\n      if (allocationType) {\n        filter.and.push({\n          field: 'allocationType',\n          op: 'EQ',\n          value: allocationType\n        });\n      }\n      const fields = {\n        bills: '_meta.isInvoiced,_meta.hasDuplicate,_meta.allocationPath,_meta.purchaseOrder'\n      };\n\n      // only perform the first load when the params change\n      const params = JSON.stringify({\n        filter,\n        fields,\n        sort,\n        pageSize: this.pageSize\n      });\n      if (this.lastParams !== params) {\n        this.lastParams = params;\n        await this.billsData.loadBills.perform(filter, fields, sort, this.pageSize);\n      }\n      const model = {\n        sort,\n        filter,\n        fields,\n        pageSize: this.pageSize\n      };\n      return model;\n    }\n\n    // https://guides.emberjs.com/release/routing/query-params/\n    resetController(controller, isExiting) {\n      if (!isExiting) return;\n      controller.search = '';\n      controller.searchString = '';\n      controller.status = 'DRAFT';\n      controller.sort = '-dateCreated';\n      controller.startDate = undefined;\n      controller.endDate = undefined;\n      this.lastParams = undefined;\n    }\n    refreshModel() {\n      this.lastParams = undefined;\n      this.refresh();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"billsData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"lastParams\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return undefined;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"refreshModel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"refreshModel\"), _class.prototype), _class);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/bills/bill\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EntityBuildaPriceOperationsIncomingBillsBillRoute = _exports.default = (_class = class EntityBuildaPriceOperationsIncomingBillsBillRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n    async model({\n      bill_id\n    }) {\n      let {\n        status\n      } = this.paramsFor('entity.builda-price.operations.incoming.bills');\n      if (bill_id === 'new' || bill_id === 'new-credit-note') {\n        const bill = this.store.createRecord('bill', {\n          billType: bill_id === 'new-credit-note' ? 'CREDIT_NOTE' : 'BILL',\n          entity: this.sessionData.entity\n        });\n        return {\n          bill\n        };\n      }\n      const bill = await this.store.findRecord('bill', bill_id, {\n        include: 'issuerContact,items,purchaseOrder,items.purchaseOrderItem,attachments,items.glAccount',\n        adapterOptions: {\n          fields: {\n            bills: '_meta.hasDuplicate,_meta.allocationPath,_meta.purchaseOrder,_meta.isInvoiced',\n            'bill-items': '_meta.allocationPath,_meta.purchaseOrder',\n            'gl-accounts': 'code,name'\n          }\n        }\n      });\n      // wait for the items to load so the component can use them straight away - doesn't seem necessary but it is\n      await bill.issuerContact;\n      const items = await bill.items;\n      await bill.attachments;\n      await bill.issuerContact;\n      await bill.purchaseOrder;\n\n      // not sure what else we can do\n      await Promise.all(items.map(item => item.glAccount));\n      return {\n        bill,\n        billStatus: status\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\", \"@ember/service\"], function (_exports, _route, _menuRoute, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    get defaultRoute() {\n      if (this.newFeatureFlags.includesFeatureFlags('canUseTimesheets')) return 'entity.builda-price.operations.incoming.timesheets';\n      if (this.newFeatureFlags.includesFeatureFlags('canUseBills')) return 'entity.builda-price.operations.incoming.bills';\n      if (this.newFeatureFlags.includesFeatureFlags('canUseStatements')) return 'entity.builda-price.operations.incoming.statements';\n      return 'entity.builda-price';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/invoices/index\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {}\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/operations/incoming/invoices/invoice\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    model({\n      invoice_id: invoiceId\n    }) {\n      this.router.transitionTo('entity.builda-price.operations.incoming.bills.bill', invoiceId);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/statements\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EntityBuildaPriceOperationsIncomingStatementsRoute = _exports.default = (_class = class EntityBuildaPriceOperationsIncomingStatementsRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"ips\", _descriptor, this);\n    }\n    async beforeModel() {\n      try {\n        await this.ips.getUsage();\n      } catch {\n        // without usage IPS is not ready, so nothing of its UI renders\n      }\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      // Take a fresh token/entity snapshot on every entry, then leave `src` alone\n      // for the lifetime of the iframe.\n      controller.refreshIframeSrc();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/timesheets\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"rsvp\", \"@ember/service\", \"moment\", \"ember-local-storage\", \"@ember/object/computed\"], function (_exports, _route, _object, _rsvp, _service, _moment, _emberLocalStorage, _computed) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"rsvp\",0,\"@ember/service\",0,\"moment\",0,\"ember-local-storage\",0,\"@ember/object/computed\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    persistedSettings: (0, _emberLocalStorage.storageFor)('settings'),\n    startDate: (0, _computed.alias)('persistedSettings.timesheets:startDate'),\n    endDate: (0, _computed.alias)('persistedSettings.timesheets:endDate'),\n    basePath: 'entity.builda-price.operations.incoming',\n    async model() {\n      let endDate = (0, _object.get)(this, 'endDate');\n      let startDate = (0, _object.get)(this, 'startDate');\n      if (!endDate || !/^\\d{4}-\\d{2}-\\d{2}$/.test(endDate)) endDate = (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n      if (!startDate || !/^\\d{4}-\\d{2}-\\d{2}$/.test(startDate)) {\n        startDate = (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n      }\n      const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n\n      // Only get the workers for this entity\n      const workers = await (0, _object.get)(this, 'store').simpleQuery('worker', {\n        entity: entityId\n      }).then(workers => workers.sortBy('fullName'));\n      const timesheetNotes = (0, _object.get)(this, 'store').simpleQuery('timesheet-note', {\n        entity: entityId,\n        date: {\n          $gte: startDate,\n          $lte: endDate\n        }\n      });\n      const timesheetStatuses = (0, _object.get)(this, 'store').simpleQuery('timesheet-status', {\n        entity: entityId,\n        date: {\n          $gte: startDate,\n          $lte: endDate\n        }\n      }).then(res => res.toArray());\n      const timesheets = (0, _object.get)(this, 'store').simpleQuery('timesheet', {\n        entity: entityId,\n        date: {\n          $gte: startDate,\n          $lte: endDate\n        }\n      }, {\n        include: 'project,task'\n      }).then(res => res.toArray()).then(ts =>\n      // remove the timesheets we don't have access to see the project or tasks for\n      ts.filter(t => t.belongsTo('task').id() && t.belongsTo('project').id()));\n      return _rsvp.default.hash({\n        timesheetStatuses,\n        workers,\n        timesheets,\n        timesheetNotes: timesheetNotes.then(arr => arr.toArray()),\n        basePath: this.basePath\n      }).then(result => {\n        if ((0, _object.get)(result, 'timesheets.length')) {\n          (0, _object.set)(result, 'timesheets',\n          // TODO also sort by project.sortIndex when implmemented\n          (0, _object.get)(result, 'timesheets').sortBy('task.path'));\n        }\n        return result;\n      });\n    },\n    actions: {\n      willTransition(transition) {\n        const {\n          targetName\n        } = transition;\n        if (targetName !== this.basePath + '.timesheets.timesheet') {\n          (0, _object.set)(this, 'startDate', null);\n          (0, _object.set)(this, 'endDate', null);\n        }\n        return true;\n      },\n      addTimesheetNote(timesheetNote) {\n        (0, _object.get)(this, 'controller.model.timesheetNotes').pushObject(timesheetNote);\n      },\n      addTimesheets(newTimesheets) {\n        (0, _object.get)(this, 'controller.model.timesheets').pushObjects(newTimesheets);\n      },\n      addTimesheetStatuses(newTimesheetStatuses) {\n        (0, _object.get)(this, 'controller.model.timesheetStatuses').pushObjects(newTimesheetStatuses);\n      },\n      removeTimesheet(timesheet) {\n        (0, _object.get)(this, 'controller.model.timesheets').removeObject(timesheet);\n      },\n      refreshModel() {\n        this.refresh();\n      }\n    }\n  });\n});","define(\"portal/routes/entity/builda-price/operations/incoming/timesheets/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.operations.incoming');\n    }\n    beforeModel() {\n      // Go straight to the create new timesheet state.\n      this.router.transitionTo(this.basePath + '.timesheets.timesheet');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet-loading\", [\"exports\", \"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet\", \"portal/utils/loading-route-from\"], function (_exports, _timesheet, _loadingRouteFrom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet\",0,\"portal/utils/loading-route-from\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _loadingRouteFrom.default)(_timesheet.default, 'entity.builda-price.operations.incoming.timesheets.timesheet');\n});","define(\"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"rsvp\", \"@ember/service\", \"moment\", \"portal/mixins/scroll-route\"], function (_exports, _route, _object, _rsvp, _service, _moment, _scrollRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"rsvp\",0,\"@ember/service\",0,\"moment\",0,\"portal/mixins/scroll-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    basePath: 'entity.builda-price.operations.incoming',\n    queryParams: {\n      worker: {\n        refreshModel: true\n      },\n      date: {\n        refreshModel: true\n      }\n    },\n    model({\n      worker,\n      date\n    }) {\n      const store = (0, _object.get)(this, 'store');\n      const entity = (0, _object.get)(this, 'sessionData.entity');\n      const workers = (0, _object.get)(this.modelFor(this.basePath + '.timesheets'), 'workers');\n      const dateIsValid = date != null && (0, _moment.default)(date, 'YYYY-MM-DD').isValid();\n      const selectedWorker = workers.findBy('id', worker);\n      const workerExists = selectedWorker != null;\n      let timesheets = null;\n      let note = null;\n      let statuses = null;\n      if (workerExists && dateIsValid) {\n        const dateQuery = {\n          $eq: date\n        };\n        timesheets = (0, _object.get)(this, 'store').simpleQuery('timesheet', {\n          worker,\n          date: dateQuery\n        }, {\n          include: 'task',\n          fields: {\n            timesheets: '_meta.isInvoiced'\n          }\n        }).then(timesheets => timesheets.toArray());\n        note = (0, _object.get)(this, 'store').simpleQuery('timesheet-note', {\n          worker,\n          date: dateQuery\n        }).then(notes => notes.objectAt(0));\n        statuses = (0, _object.get)(this, 'store').simpleQuery('timesheet-status', {\n          worker,\n          date: dateQuery\n        }).then(statuses => statuses.toArray());\n      }\n      const tasks = (0, _object.get)(this, 'store').query('task', {\n        filter: {\n          and: [\n          // TODO fix it properly, this is due to how ember data is loading relationships\n          // {\n          //   field: 'timesheetStatus',\n          //   op: 'EQ',\n          //   value: 'ACTIVE',\n          // },\n          // {\n          //   field: 'status',\n          //   op: 'IN',\n          //   value: ['ACTIVE', 'DRAFT_CREATED'],\n          // },\n          {\n            field: 'project.status',\n            op: 'EQ',\n            value: 'OPEN'\n          }, {\n            field: 'entity',\n            op: 'EQ',\n            value: (0, _object.get)(entity, 'id')\n          }]\n        }\n      });\n      const projects = tasks.then(tasks => {\n        const projectIds = new Set();\n        for (const task of tasks.toArray()) {\n          const projectId = (0, _object.get)(task, 'project.id');\n          if (projectIds.has(projectId)) continue;\n          projectIds.add(projectId);\n        }\n        return (0, _object.get)(this, 'store').query('project', {\n          filter: {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: (0, _object.get)(entity, 'id')\n            }, {\n              field: 'status',\n              op: 'EQ',\n              value: 'OPEN'\n            }]\n          }\n        }).then(projects =>\n        // we only want projects with tasks\n        projects.filter(project => projectIds.has((0, _object.get)(project, 'id'))));\n      });\n      return _rsvp.default.hash({\n        worker,\n        timesheets,\n        note,\n        statuses,\n        projects,\n        tasks\n      }).then(results => {\n        // Create a note record if we have a valid worker and date but no note was found\n        if (workerExists && dateIsValid && (0, _object.get)(results, 'note') == null) {\n          const newNote = store.createRecord('timesheet-note', {\n            date,\n            worker: selectedWorker,\n            entity\n          });\n          (0, _object.set)(results, 'note', newNote);\n          this.send('addTimesheetNote', newNote);\n        }\n        (0, _object.set)(results, 'hasDateAndWorker', workerExists && dateIsValid);\n        if (results.timesheets) {\n          (0, _object.set)(results, 'timesheets', (0, _object.get)(results, 'timesheets').sortBy('project.sortIndex, task.sortIndex'));\n        }\n        return results;\n      });\n    },\n    setupController(controller) {\n      this._super(...arguments);\n      const workers = (0, _object.get)(this.modelFor(this.basePath + '.timesheets'), 'workers');\n      let activeWorkers = [];\n      if ((0, _object.get)(workers, 'length')) {\n        activeWorkers = workers.filterBy('isActive');\n      }\n      (0, _object.set)(controller, 'workers', workers);\n      (0, _object.set)(controller, 'activeWorkers', activeWorkers);\n    },\n    afterModel(model) {\n      const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n      const workerEntity = (0, _object.get)(model, 'results.worker.entity.id');\n      if (workerEntity !== entityId && workerEntity) {\n        this.router.transitionTo(this.basePath + '.timesheets');\n      }\n    },\n    actions: {\n      willTransition() {\n        this._super(...arguments);\n\n        // Remove all of the unsaved timesheets\n        const timesheets = (0, _object.get)(this, 'controller.model.timesheets');\n        if (!timesheets || !(0, _object.get)(timesheets, 'length')) return true;\n        (0, _object.get)(this, 'controller.model.timesheets').filterBy('isNew').forEach(sheet => sheet.destroyRecord());\n        return true;\n      }\n    }\n  });\n});","define(\"portal/routes/entity/builda-price/operations/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    beforeModel(transition) {\n      if (transition.targetName === this.fullRouteName) this.router.transitionTo('entity.builda-price');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\", \"@ember/service\"], function (_exports, _route, _menuRoute, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    get defaultRoute() {\n      if (this.newFeatureFlags.includesFeatureFlags('canManagePayroll')) return 'entity.builda-price.operations.outgoing.payroll';\n      if (this.newFeatureFlags.includesFeatureFlags('canUseReportBuilder')) return 'entity.builda-price.operations.outgoing.report-builder';\n      return 'entity.builda-price';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/invoices/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"portal/models/entity-invoice-option\", \"moment\", \"portal/utils/search-filter\"], function (_exports, _asyncArrowRuntime, _route, _service, _object, _entityInvoiceOption, _moment, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"portal/models/entity-invoice-option\",0,\"moment\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", {\n        searchTerm: {\n          refreshModel: true\n        },\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        },\n        invoiceType: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        },\n        contact: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"invoices\", []);\n      _defineProperty(this, \"invoiceFilter\", void 0);\n      _defineProperty(this, \"sort\", void 0);\n      _defineProperty(this, \"invoicePage\", void 0);\n      _defineProperty(this, \"getInvoices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (startDate, endDate, status, searchTerm, invoiceType, sortBy, sortDirection, contact) {\n          const invoiceFilter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          if (startDate) {\n            invoiceFilter.and.push({\n              field: 'dateCreated',\n              op: 'GE',\n              value: (0, _moment.default)(startDate).startOf('day').toISOString()\n            });\n          }\n          if (endDate) {\n            invoiceFilter.and.push({\n              field: 'dateCreated',\n              op: 'LE',\n              value: (0, _moment.default)(endDate).endOf('day').toISOString()\n            });\n          }\n          if (status && status !== 'ALL') invoiceFilter.and.push({\n            field: 'status',\n            op: 'EQ',\n            value: status\n          });\n          if (invoiceType && invoiceType !== 'ALL') invoiceFilter.and.push({\n            field: 'invoiceType',\n            op: 'EQ',\n            value: invoiceType\n          });\n          if (contact) {\n            invoiceFilter.and.push({\n              field: 'toContact.name',\n              op: 'EQ',\n              value: contact\n            });\n          }\n          if (searchTerm?.length) {\n            invoiceFilter.and.push((0, _searchFilter.default)(['toContact.name', 'invoiceNumber'], searchTerm));\n          }\n          if (JSON.stringify(invoiceFilter) !== JSON.stringify(this.invoiceFilter) || this.sort !== `${sortDirection}_${sortBy}`) {\n            this.invoicePage = undefined;\n            this.invoiceFilter = invoiceFilter;\n            this.invoices = [];\n          }\n          if (this.invoicePage && this.invoicePage?.currentPage >= this.invoicePage?.totalPages) return this.invoices;\n          const nextPageNumber = (this.invoicePage?.currentPage || 0) + 1;\n          const nextPage = yield this.store.query('invoice', {\n            filter: invoiceFilter,\n            sort: sortDirection === 'desc' ? `-${sortBy}` : sortBy,\n            include: 'items',\n            page: {\n              size: 10,\n              number: nextPageNumber\n            }\n          });\n          this.sort = `${sortDirection}_${sortBy}`;\n          this.invoicePage = nextPage.meta;\n          this.invoices = [...this.invoices, ...nextPage.toArray()];\n          return this.invoices;\n        }\n      }), {\n        restartable: true\n      }, \"getInvoices\", null));\n      _defineProperty(this, \"getInvoiceOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          let option = yield this.store.query('entity-invoice-option', {\n            filter\n          }).then(r => r?.[0]);\n          if (!option) option = _entityInvoiceOption.default.defaultOptionsRecord(this.store, this.sessionData.entity).save();\n          return option;\n        }\n      }), null, \"getInvoiceOptions\", null));\n    }\n    deactivate() {\n      this.invoices = [];\n      this.invoiceFilter = undefined;\n      this.invoicePage = undefined;\n    }\n    model({\n      startDate,\n      endDate,\n      status = 'ALL',\n      searchTerm,\n      invoiceType = 'ALL',\n      sortBy = 'dateCreated',\n      sortDirection = 'desc',\n      contact\n    }) {\n      this.getInvoices.perform(startDate, endDate, status, searchTerm, invoiceType, sortBy, sortDirection, contact);\n      this.getInvoiceOptions.perform();\n      return {\n        invoices: this.getInvoices,\n        invoiceOptions: this.getInvoiceOptions\n      };\n    }\n    resetController(controller, isExiting) {\n      if (isExiting) {\n        controller.set('invoiceChangeSet', null);\n      }\n    }\n    willTransition() {\n      const invoices = this.store.peekAll('invoice');\n      const newlyCreatedInvoice = invoices.filter(i => i.isNew);\n      if (newlyCreatedInvoice?.[0]) {\n        newlyCreatedInvoice[0].destroyRecord();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/invoices/invoice\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"ember-concurrency\", \"@glimmer/tracking\", \"@ember/object/proxy\"], function (_exports, _asyncArrowRuntime, _route, _service, _object, _emberChangeset, _emberConcurrency, _tracking, _proxy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object/proxy\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"currentInvoice\", _descriptor6, this);\n      _defineProperty(this, \"getInvoice\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceId) {\n          const invoice = yield this.store.findRecord('invoice', invoiceId, {\n            include: 'attachments,toContact,items,referencedInvoice,items.projects',\n            reload: true\n          });\n          return invoice;\n        }\n      }), null, \"getInvoice\", null));\n      _defineProperty(this, \"_validateInvoiceNumber\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceNumber) {\n          yield (0, _emberConcurrency.timeout)(1000); // delay the api call for validation\n\n          const response = yield this.buildaPrice.validateInvoiceNumber({\n            entity: this.sessionData.entity.id,\n            invoiceNumber,\n            id: this.currentInvoice.id\n          });\n          return response;\n        }\n      }), {\n        restartable: true\n      }, \"_validateInvoiceNumber\", null));\n      _defineProperty(this, \"invoiceValidationMap\", {\n        invoiceNumber: this.validateInvoiceNumber,\n        toContact: this.validateToContact,\n        totalPrice: this.validateTotalPrice\n      });\n      _defineProperty(this, \"invoiceValidator\", async ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue || oldValue;\n        if (key === 'invoiceNumber') {\n          return await this.validateInvoiceNumber(value, newValue);\n        }\n        if (key === 'toContact') {\n          return this.validateToContact(newValue, oldValue);\n        }\n        if (key === 'totalPrice') {\n          return this.validateTotalPrice();\n        }\n        return true;\n      });\n      _defineProperty(this, \"createInvoiceChangeSet\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoice) {\n          yield invoice.last;\n          this.currentInvoice = invoice.last.value;\n          return (0, _emberChangeset.Changeset)(this.currentInvoice, this.invoiceValidator, this.invoiceValidationMap);\n        }\n      }), null, \"createInvoiceChangeSet\", null));\n      _defineProperty(this, \"getInvoiceItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoice) {\n          yield invoice.last;\n          const invoiceId = invoice.last.value.id;\n          const invoiceItems = this.store.peekAll('invoice-item').filter(item => {\n            return item.safeBelongsToValue('invoice')?.id === invoiceId;\n          }).sortBy('sortIndex');\n          return invoiceItems.toArray();\n        }\n      }), null, \"getInvoiceItems\", null));\n      _defineProperty(this, \"getSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const suppliers = yield this.store.query('contact', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            }\n          }).then(r => r?.toArray());\n          return suppliers;\n        }\n      }), null, \"getSuppliers\", null));\n      _defineProperty(this, \"getInvoicePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceItems) {\n          yield invoiceItems.last;\n          let canManageInvoices = this.newFeatureFlags.includesFeatureFlags('canManageInvoices');\n          let canApproveInvoices = this.newFeatureFlags.includesFeatureFlags('canApproveInvoices');\n          let canUseFileStorage = this.newFeatureFlags.includesFeatureFlags('canUseFileStorage');\n          let canManageFileStorage = this.newFeatureFlags.includesFeatureFlags('canManageFileStorage');\n          if (!canManageInvoices || !canApproveInvoices || !canUseFileStorage || !canManageFileStorage) {\n            const projectIds = [...new Set(invoiceItems.last.value.map(item => item.hasMany('projects').value()?.map(i => i.belongsTo('project').id())).flat().filter(Boolean))];\n            if (projectIds.length) {\n              if (!canManageInvoices) {\n                canManageInvoices = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canManageInvoices'));\n              }\n              if (!canApproveInvoices) {\n                canApproveInvoices = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canApproveInvoices'));\n              }\n              if (!canUseFileStorage) {\n                canUseFileStorage = projectIds.every(id => this.sessionData.user?.includesSomeClaimsAboutProject(id, 'canViewFileStorage', 'canMangeFileStorage'));\n              }\n              if (!canManageFileStorage) {\n                canManageFileStorage = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canManageFileStorage'));\n              }\n            }\n          }\n          return {\n            canManageInvoices,\n            canApproveInvoices,\n            canUseFileStorage,\n            canManageFileStorage\n          };\n        }\n      }), null, \"getInvoicePermissions\", null));\n      _defineProperty(this, \"getInvoiceOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let option = yield this.store.simpleQuery('entity-invoice-option', {\n            entity: this.sessionData.entity.id\n          }).then(r => r?.[0]);\n          return option;\n        }\n      }), null, \"getInvoiceOptions\", null));\n      _defineProperty(this, \"getRelatedInvoices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoice) {\n          yield invoice.last;\n          const relatedInvoices = yield this.store.query('invoice', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'referencedInvoice',\n                op: 'EQ',\n                value: invoice.last.value.id\n              }]\n            }\n          }).then(r => r?.toArray());\n          return relatedInvoices;\n        }\n      }), null, \"getRelatedInvoices\", null));\n    }\n    async validateInvoiceNumber(value, newValue) {\n      try {\n        const {\n          isUnique,\n          nextInvoiceNumber\n        } = await this._validateInvoiceNumber.perform(value);\n        if (!isUnique) return `${this.intl.t('validation.Invoice number already exists, use')} ${nextInvoiceNumber ? nextInvoiceNumber : this.intl.t('shared.purchase-order.a different one')}`;\n        return newValue && newValue.length > 0 && isUnique || this.intl.t('validation.Please provide a invoice number');\n      } catch (e) {\n        if (!(0, _emberConcurrency.didCancel)(e)) {\n          throw Error('Error validating invoice number');\n        }\n      }\n    }\n    validateToContact(newValue, oldValue) {\n      const hasExistedValue = newValue !== undefined && Boolean(oldValue.get('name'));\n      let hasNewValue = false;\n      if (newValue instanceof _proxy.default || newValue?.name) {\n        hasNewValue = Boolean(newValue.get('name'));\n      }\n      return hasExistedValue || hasNewValue || this.intl.t('validation.Please select a contact');\n    }\n    validateTotalPrice() {\n      return this.controller?.invoiceTotalError || true;\n    }\n    model({\n      invoice_id: invoiceId\n    }) {\n      this.getInvoice.perform(invoiceId);\n      this.getInvoiceItems.perform(this.getInvoice);\n      this.getInvoiceOptions.perform();\n      this.createInvoiceChangeSet.perform(this.getInvoice);\n      this.getInvoicePermissions.perform(this.getInvoiceItems);\n      this.getSuppliers.perform();\n      this.getRelatedInvoices.perform(this.getInvoice);\n      return {\n        suppliers: this.getSuppliers,\n        invoice: this.getInvoice,\n        invoiceItems: this.getInvoiceItems,\n        invoiceOption: this.getInvoiceOptions,\n        invoiceChangeSet: this.createInvoiceChangeSet,\n        invoicePermissions: this.getInvoicePermissions,\n        relatedInvoices: this.getRelatedInvoices\n      };\n    }\n    willTransition(transition) {\n      const isPOChangeSetDirty = this.controller?.invoiceChangeSet?.isDirty;\n      const invoiceItems = this.store.peekAll('invoice-item');\n      const itemsWithDirtyAttributes = invoiceItems.filter(item => item?.isNew || item?.hasDirtyAttributes);\n      if (isPOChangeSetDirty || itemsWithDirtyAttributes.length) {\n        if (!confirm('You have unsaved changes that will be lost if you decide to leave, do you want continue?')) {\n          transition.abort();\n        } else {\n          itemsWithDirtyAttributes.map(item => item.unloadRecord());\n          this.controller._invoiceItems = null;\n          this.controller?.invoiceChangeSet?.rollback();\n        }\n      } else {\n        this.controller._invoiceItems = null;\n      }\n    }\n    resetController(controller) {\n      // always close the edit modals when leaving the route\n      controller.currentInvoiceItem = undefined;\n      controller.isDeletingInvoice = false;\n      controller.isCreatingCreditNote = false;\n      controller.isEditingInvoice = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"currentInvoice\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/payroll\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"rsvp\", \"moment\", \"portal/helpers/chunk-callback\", \"portal/config/environment\", \"@ember/object\"], function (_exports, _route, _service, _rsvp, _moment, _chunkCallback, _environment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"rsvp\",0,\"moment\",0,\"portal/helpers/chunk-callback\",0,\"portal/config/environment\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    basePath: 'entity.builda-price.operations.outgoing',\n    queryParams: {\n      endDate: {\n        refreshModel: true\n      },\n      startDate: {\n        refreshModel: true\n      }\n    },\n    beforeModel() {\n      const payrollPath = this.basePath + '.payroll';\n      const {\n        startDate,\n        endDate\n      } = this.paramsFor(payrollPath);\n      if (!startDate || !endDate) {\n        // Report defaults to 2 week ending today.\n        const startDate = (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n        const endDate = (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n        this.router.replaceWith(payrollPath, {\n          queryParams: {\n            startDate,\n            endDate\n          }\n        });\n      }\n    },\n    async model({\n      startDate,\n      endDate\n    }) {\n      const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n      const workers = this.store.simpleQuery('worker', {\n        entity: entityId,\n        isContractor: false\n      }).then(workers => workers.sortBy('firstName'));\n      const {\n        timesheetStatuses = [],\n        timesheets = [],\n        timesheetNotes = []\n      } = await workers.then(workers => {\n        if (!(0, _object.get)(workers, 'length')) return _rsvp.default.resolve({});\n        const workerIds = workers.mapBy('id');\n        return _rsvp.default.hash({\n          timesheetStatuses: (0, _chunkCallback.default)(workerIds, _environment.default.chunkCallbackSize, workerIds => this.store.simpleQuery('timesheet-status', {\n            worker: {\n              $in: workerIds\n            },\n            date: {\n              $gte: startDate,\n              $lte: endDate\n            }\n          })),\n          timesheets: (0, _chunkCallback.default)(workerIds, _environment.default.chunkCallbackSize, workerIds => this.store.simpleQuery('timesheet', {\n            worker: {\n              $in: workerIds\n            },\n            date: {\n              $gte: startDate,\n              $lte: endDate\n            }\n          }).then(timesheets => timesheets.toArray()).then(timesheets => timesheets.filter(\n          // remove the timesheets we don't have access to see the project or tasks for\n          t => {\n            return Boolean(t.belongsTo('project').id() && t.belongsTo('task').id());\n          }))),\n          timesheetNotes: (0, _chunkCallback.default)(workerIds, _environment.default.chunkCallbackSize, workerIds => this.store.simpleQuery('timesheet-note', {\n            worker: {\n              $in: workerIds\n            },\n            date: {\n              $gte: startDate,\n              $lte: endDate\n            }\n          }))\n        });\n      });\n      const timesheetProjectIds = timesheets.mapBy('project.id').uniq().filter(id => id);\n      const projects = timesheetProjectIds.length ? this.store.simpleQuery('project', {\n        _id: {\n          $in: timesheetProjectIds\n        }\n      }) : [];\n      const timesheetTaskIds = timesheets.mapBy('task.id').uniq().filter(id => id);\n      const tasks = timesheetProjectIds.length ? (0, _chunkCallback.default)(timesheetProjectIds, _environment.default.chunkCallbackSize, ids =>\n      // get all the project tasks into the store for the breadcrumbs\n      this.store.simpleQuery('task', {\n        project: {\n          $in: ids\n        }\n      })).then(tasks =>\n      // only keep the tasks with direct timesheets for the page\n      tasks.filter(t => timesheetTaskIds.includes((0, _object.get)(t, 'id')))) : [];\n      return _rsvp.default.hash({\n        workers,\n        timesheetStatuses,\n        timesheetNotes,\n        projects,\n        timesheets,\n        tasks,\n        basePath: this.basePath,\n        refresh: () => this.refresh()\n      });\n    },\n    actions: {\n      willTransition() {\n        this._super(...arguments);\n\n        // Set all the currentChargeOutRate attributes back to null to avoid leaking state\n        const workers = (0, _object.get)(this, 'controller.model.workers');\n        if (workers) workers.forEach(w => (0, _object.set)(w, 'currentChargeOutRate', null));\n      }\n    }\n  });\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/purchase-orders\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"getTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects) {\n          yield projects.last;\n          const tasks = yield this.store.query('task', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project.status',\n                op: 'IN',\n                value: ['OPEN', 'HELD']\n              }]\n            },\n            sort: 'path',\n            include: 'children'\n          }).then(tasks => tasks.toArray());\n          return tasks;\n        }\n      }), null, \"getTasks\", null));\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.query('project', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'status',\n                op: 'IN',\n                value: ['OPEN', 'HELD']\n              }]\n            },\n            sort: 'sortIndex'\n          }).then(projects => projects.toArray());\n          return projects;\n        }\n      }), null, \"getProjects\", null));\n    }\n    model() {\n      this.getProjects.perform();\n      this.getTasks.perform(this.getProjects);\n      return {\n        projects: this.getProjects,\n        tasks: this.getTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/purchase-orders/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\", \"@ember/object\", \"portal/models/purchase-order-option\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment, _object, _purchaseOrderOption) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@ember/object\",0,\"portal/models/purchase-order-option\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", {\n        searchTerm: {\n          refreshModel: true\n        },\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getPurchaseOrders\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (startDate, endDate, status, searchTerm) {\n          const purchaseOrderQuery = {\n            entity: this.sessionData.entity.id\n          };\n          if (status && status !== 'ALL') purchaseOrderQuery.status = status;\n          purchaseOrderQuery.dateCreated = {\n            $gte: (0, _moment.default)(startDate).startOf('day').toISOString(),\n            $lte: (0, _moment.default)(endDate).endOf('day').toISOString()\n          };\n          if (searchTerm) purchaseOrderQuery.purchaseOrderNumber = {\n            $like: searchTerm\n          };\n          const purchaseOrders = yield this.store.simpleQuery('purchase-order', purchaseOrderQuery, {\n            include: 'items'\n          });\n          return purchaseOrders.toArray();\n        }\n      }), null, \"getPurchaseOrders\", null));\n      _defineProperty(this, \"getPurchaseOrderOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let option = yield this.store.simpleQuery('purchase-order-option', {\n            entity: this.sessionData.entity.id\n          }).then(r => r?.[0]);\n          if (!option) option = _purchaseOrderOption.default.defaultOptionsRecord(this.store, this.sessionData.entity).save();\n          return option;\n        }\n      }), null, \"getPurchaseOrderOptions\", null));\n    }\n    model({\n      startDate,\n      endDate,\n      status = 'ALL',\n      searchTerm\n    }) {\n      const purchaseOrderRoute = 'entity.builda-price.operations.outgoing.purchase-orders';\n      const {\n        projects\n      } = this.modelFor(purchaseOrderRoute);\n      this.getPurchaseOrders.perform(startDate, endDate, status, searchTerm);\n      this.getPurchaseOrderOptions.perform();\n      return {\n        purchaseOrders: this.getPurchaseOrders,\n        purchaseOrderOptions: this.getPurchaseOrderOptions,\n        projects\n      };\n    }\n    willTransition() {\n      const purchaseOrders = this.store.peekAll('purchase-order');\n      const newlyCreatedPurchaseOrder = purchaseOrders.filter(i => i.isNew);\n      if (newlyCreatedPurchaseOrder?.[0]) {\n        newlyCreatedPurchaseOrder?.[0].destroyRecord();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/purchase-orders/purchase-order\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"ember-concurrency\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _route, _service, _object, _emberChangeset, _emberConcurrency, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"currentPurchaseOrder\", _descriptor6, this);\n      _defineProperty(this, \"getPurchaseOrder\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderId) {\n          const purchaseOrder = yield this.store.findRecord('purchase-order', purchaseOrderId, {\n            include: 'attachments.attachment,supplier'\n          });\n          return purchaseOrder;\n        }\n      }), null, \"getPurchaseOrder\", null));\n      _defineProperty(this, \"validatePurchaseOrderNumber\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderNumber) {\n          yield (0, _emberConcurrency.timeout)(1000); // delay the api call for validation\n\n          const response = yield this.buildaPrice.validatePurchaseOrderNumber({\n            entity: this.sessionData.entity.id,\n            purchaseOrderNumber,\n            _id: this.currentPurchaseOrder.id\n          });\n          return response;\n        }\n      }), {\n        restartable: true\n      }, \"validatePurchaseOrderNumber\", null));\n      _defineProperty(this, \"purchaseOrderValidator\", async ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue || oldValue;\n        if (key === 'purchaseOrderNumber') {\n          try {\n            const {\n              isUnique,\n              nextPoNumber\n            } = await this.validatePurchaseOrderNumber.perform(value);\n            if (!isUnique) return `${this.intl.t('validation.purchaseOrderNumberAlreadyExists')} ${nextPoNumber ? nextPoNumber : this.intl.t('shared.purchase-order.a different one')}`;\n            return newValue && newValue.length > 0 && isUnique || this.intl.t('validation.Please provide a purchase order number');\n          } catch (e) {\n            if (!(0, _emberConcurrency.didCancel)(e)) {\n              throw Error('Error validating purchase order number');\n            }\n          }\n        } else {\n          return true;\n        }\n      });\n      _defineProperty(this, \"createPurchaseOrderChangeSet\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrder) {\n          yield purchaseOrder.last;\n          this.currentPurchaseOrder = purchaseOrder.last.value;\n          return (0, _emberChangeset.Changeset)(purchaseOrder.last.value, this.purchaseOrderValidator);\n        }\n      }), null, \"createPurchaseOrderChangeSet\", null));\n      _defineProperty(this, \"getPurchaseOrderItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderId) {\n          const purchaseOrderItems = yield this.store.simpleQuery('purchase-order-item', {\n            entity: this.sessionData.entity.id,\n            purchaseOrder: purchaseOrderId\n          });\n          return purchaseOrderItems.sortBy('sortIndex');\n        }\n      }), null, \"getPurchaseOrderItems\", null));\n      _defineProperty(this, \"getPurchaseOrderPermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderItems) {\n          yield purchaseOrderItems.last;\n          let canManagePurchaseOrders = this.newFeatureFlags.includesFeatureFlags('canManagePurchaseOrders');\n          let canApprovePurchaseOrders = this.newFeatureFlags.includesFeatureFlags('canApprovePurchaseOrders');\n          let canUseFileStorage = this.newFeatureFlags.includesFeatureFlags('canUseFileStorage');\n          let canManageFileStorage = this.newFeatureFlags.includesFeatureFlags('canManageFileStorage');\n          if (!canManagePurchaseOrders || !canApprovePurchaseOrders || !canUseFileStorage || !canManageFileStorage) {\n            const tasks = yield Promise.all(purchaseOrderItems.last.value.map(item => {\n              return item ? item.belongsTo('task').load() : null;\n            }));\n            const validTasks = tasks.filter(task => task !== null);\n            const projects = yield Promise.all(validTasks.map(task => task.belongsTo('project').load()));\n            const projectIds = [...new Set(projects.map(project => project.id))];\n            if (projectIds.length) {\n              if (!canManagePurchaseOrders) {\n                canManagePurchaseOrders = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canManagePurchaseOrders'));\n              }\n              if (!canApprovePurchaseOrders) {\n                canApprovePurchaseOrders = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canApprovePurchaseOrders'));\n              }\n              if (!canUseFileStorage) {\n                canUseFileStorage = projectIds.every(id => this.sessionData.user?.includesSomeClaimsAboutProject(id, 'canViewFileStorage', 'canMangeFileStorage'));\n              }\n              if (!canManageFileStorage) {\n                canManageFileStorage = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canManageFileStorage'));\n              }\n            }\n          }\n          return {\n            canManagePurchaseOrders,\n            canApprovePurchaseOrders,\n            canUseFileStorage,\n            canManageFileStorage\n          };\n        }\n      }), null, \"getPurchaseOrderPermissions\", null));\n      _defineProperty(this, \"getPurchaseOrderOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let option = yield this.store.simpleQuery('purchase-order-option', {\n            entity: this.sessionData.entity.id\n          }).then(r => r?.[0]);\n          return option;\n        }\n      }), null, \"getPurchaseOrderOptions\", null));\n    }\n    model({\n      purchase_order_id: purchaseOrderId\n    }) {\n      const purchaseOrderRoute = 'entity.builda-price.operations.outgoing.purchase-orders';\n      const {\n        projects,\n        tasks\n      } = this.modelFor(purchaseOrderRoute);\n      this.getPurchaseOrder.perform(purchaseOrderId);\n      this.getPurchaseOrderItems.perform(purchaseOrderId);\n      this.getPurchaseOrderOptions.perform();\n      this.createPurchaseOrderChangeSet.perform(this.getPurchaseOrder);\n      this.getPurchaseOrderPermissions.perform(this.getPurchaseOrderItems);\n      return {\n        projects,\n        tasks,\n        purchaseOrder: this.getPurchaseOrder,\n        purchaseOrderItems: this.getPurchaseOrderItems,\n        purchaseOrderOption: this.getPurchaseOrderOptions,\n        purchaseOrderChangeSet: this.createPurchaseOrderChangeSet,\n        purchaseOrderPermissions: this.getPurchaseOrderPermissions\n      };\n    }\n    willTransition(transition) {\n      const isPOChangeSetDirty = this.controller?.purchaseOrderChangeSet?.isDirty;\n      const purchaseOrderItems = this.store.peekAll('purchase-order-item');\n      const itemsWithDirtyAttributes = purchaseOrderItems.filter(item => item?.isNew || item?.hasDirtyAttributes);\n      if (isPOChangeSetDirty || itemsWithDirtyAttributes.length) {\n        if (!confirm(this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.youHaveUnsavedChangesThatWillBeLostIfYouDecideToLeaveDoYouWantContinue'))) {\n          transition.abort();\n        } else {\n          itemsWithDirtyAttributes.map(item => item.unloadRecord());\n          this.controller._purchaseOrderItems = null;\n          this.controller?.purchaseOrderChangeSet?.rollback();\n        }\n      } else {\n        this.controller._purchaseOrderItems = null;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"currentPurchaseOrder\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/report-builder/csv\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    model() {\n      // this transitions to the parent route if you refresh the model - pretty vague\n      this.router.transitionTo('entity.builda-price.operations.outgoing.report-builder.index');\n    }\n    serialize() {\n      return {\n        csv_data: 'csv'\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/report-builder/excel\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    model() {\n      // this transitions to the parent route if you refresh the model - pretty vague\n      this.router.transitionTo('entity.builda-price.operations.outgoing.report-builder.index');\n    }\n    serialize() {\n      return {\n        excel_data: 'excel'\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/report-builder/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/object\", \"@ember/object/computed\", \"portal/utils/computed\", \"@ember/service\", \"portal/helpers/chunk-callback\", \"moment\", \"lodash\", \"portal/config/environment\", \"portal/utils/report-builder-mark-as-reported\"], function (_exports, _asyncArrowRuntime, _route, _object, _computed, _computed2, _service, _chunkCallback, _moment, _lodash, _environment, _reportBuilderMarkAsReported) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.WorkerGroup = _exports.InvoiceGroup = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"portal/utils/computed\",0,\"@ember/service\",0,\"portal/helpers/chunk-callback\",0,\"ember-concurrency\",0,\"moment\",0,\"lodash\",0,\"portal/config/environment\",0,\"portal/utils/report-builder-mark-as-reported\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const InvoiceGroup = _exports.InvoiceGroup = _object.default.extend({\n    invoice: null,\n    items: null,\n    itemsVisible: false,\n    allSelected: (0, _object.computed)('items.@each.selected', function () {\n      return (0, _object.get)(this, 'items').every(item => (0, _object.get)(item, 'selected'));\n    }),\n    partSelected: (0, _object.computed)('allSelected', 'items.@each.selected', function () {\n      return !(0, _object.get)(this, 'allSelected') && (0, _object.get)(this, 'items').some(item => (0, _object.get)(item, 'selected'));\n    }),\n    nReported: (0, _object.computed)('items.@each.reported', function () {\n      return (0, _object.get)(this, 'items').reduce((total, item) => (0, _object.get)(item, 'reported') ? total + 1 : total, 0);\n    }),\n    allReported: (0, _object.computed)('items.length', 'nReported', function () {\n      return (0, _object.get)(this, 'nReported') === (0, _object.get)(this, 'items.length');\n    }),\n    totalPrice: (0, _computed2.sumBy)('items', 'totalPrice'),\n    selectedTotalPrice: (0, _object.computed)('items.@each.selected', function () {\n      return this.items.reduce((total, item) => item.selected ? total + item.totalPrice : total, 0);\n    })\n  });\n  const WorkerGroup = _exports.WorkerGroup = _object.default.extend({\n    project: null,\n    tasks: null,\n    worker: null,\n    timesheets: null,\n    itemsVisible: false,\n    currentChargeOutRate: (0, _computed.alias)('worker.currentChargeOutRate'),\n    allSelected: (0, _object.computed)('timesheets.@each.selected', function () {\n      return (0, _object.get)(this, 'timesheets').every(item => (0, _object.get)(item, 'selected'));\n    }),\n    partSelected: (0, _object.computed)('allSelected', 'timesheets.@each.selected', function () {\n      return !(0, _object.get)(this, 'allSelected') && (0, _object.get)(this, 'timesheets').some(item => (0, _object.get)(item, 'selected'));\n    }),\n    nReported: (0, _object.computed)('timesheets.@each.reported', function () {\n      return (0, _object.get)(this, 'timesheets').reduce((total, sheet) => (0, _object.get)(sheet, 'reported') ? total + 1 : total, 0);\n    }),\n    allReported: (0, _object.computed)('nReported', 'timesheets.length', function () {\n      return (0, _object.get)(this, 'nReported') === (0, _object.get)(this, 'timesheets.length');\n    }),\n    timesheetTotals: (0, _object.computed)('project', 'tasks.@each.id', 'timesheets', 'worker.currentChargeOutRate', function () {\n      const worker = (0, _object.get)(this, 'worker');\n      const project = (0, _object.get)(this, 'project');\n      const tasks = (0, _object.get)(this, 'tasks');\n      const timesheets = (0, _object.get)(this, 'timesheets');\n      const query = {\n        project\n      };\n      if (tasks) query.tasks = tasks;\n      return worker.calculateWorkForProject(query, timesheets);\n    }),\n    selectedTimesheets: (0, _object.computed)('timesheets.@each.selected', function () {\n      return (0, _object.get)(this, 'timesheets').filter(timesheet => (0, _object.get)(timesheet, 'selected'));\n    })\n  });\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        endDate: {\n          refreshModel: true\n        },\n        startDate: {\n          refreshModel: true\n        },\n        selectedProjectId: {\n          refreshModel: true\n        },\n        filterByDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"fetchProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id\n          });\n          const sortedProjects = projects.sortBy('sortIndex').toArray();\n          return sortedProjects;\n        }\n      }), null, \"fetchProjects\", null));\n      _defineProperty(this, \"fetchTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedProjectId) {\n          if (!selectedProjectId) return [];\n          const tasks = yield this.store.query('task', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: selectedProjectId\n              }]\n            },\n            sort: 'path',\n            include: 'children'\n          }).then(tasks => tasks.toArray());\n          return tasks;\n        }\n      }), null, \"fetchTasks\", null));\n      _defineProperty(this, \"fetchWorkerJobAllocations\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedProjectId) {\n          if (!selectedProjectId) return [];\n          const workerJobAllocations = yield this.store.simpleQuery('worker-job-allocation', {\n            project: selectedProjectId,\n            entity: this.sessionData.entity.id\n          });\n          return workerJobAllocations;\n        }\n      }), null, \"fetchWorkerJobAllocations\", null));\n      _defineProperty(this, \"fetchTimesheets\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* ({\n          selectedProjectId,\n          selectedTaskIds,\n          startDate,\n          endDate,\n          filterByDate\n        }) {\n          // return an empty array if project is not selected\n          if (!selectedProjectId) return [];\n\n          // Fetch all the timesheets that match the report criteria\n          const timesheetsQuery = {\n            project: selectedProjectId\n          };\n          // only add the date filter if we are filtering by date\n          if (filterByDate) {\n            timesheetsQuery.date = {\n              $gte: startDate,\n              $lte: endDate\n            };\n          }\n          let timesheets = [];\n          if (selectedTaskIds?.length) {\n            timesheets = yield (0, _chunkCallback.default)(selectedTaskIds, _environment.default.chunkCallbackSize, ids => {\n              return this.store.simpleQuery('timesheet', {\n                ...timesheetsQuery,\n                task: {\n                  $in: ids\n                }\n              }, {\n                include: 'worker'\n              });\n            });\n            timesheets = timesheets.sortBy('date');\n            return timesheets;\n          }\n          timesheets = yield this.store.simpleQuery('timesheet', timesheetsQuery, {\n            include: 'worker'\n          });\n          timesheets = timesheets.sortBy('date');\n          return timesheets;\n        }\n      }), null, \"fetchTimesheets\", null));\n      _defineProperty(this, \"fetchInvoicesAndItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* ({\n          selectedProjectId,\n          selectedTaskIds,\n          startDate,\n          endDate,\n          filterByDate\n        }, _projectTasks) {\n          // return an empty array if project is not selected\n          if (!selectedProjectId) return {\n            invoices: [],\n            invoiceItems: []\n          };\n\n          // only add the date filter if we are filtering by date\n          const invoiceItemQuery = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }],\n            or: []\n          };\n          if (filterByDate) {\n            invoiceItemQuery.and.push({\n              field: 'bill.issueDate',\n              op: 'GE',\n              value: (0, _moment.default)(startDate).startOf('day').toISOString()\n            });\n            invoiceItemQuery.and.push({\n              field: 'bill.issueDate',\n              op: 'LE',\n              value: (0, _moment.default)(endDate).endOf('day').toISOString()\n            });\n          }\n          if (selectedTaskIds?.length) {\n            const invoiceItems = yield (0, _chunkCallback.default)(selectedTaskIds, _environment.default.chunkCallbackSize, ids => {\n              const filter = JSON.parse(JSON.stringify(invoiceItemQuery));\n              filter.and.push({\n                field: 'task',\n                op: 'IN',\n                value: ids\n              });\n              return this.store.query('bill-item', {\n                filter: filter,\n                include: 'bill,bill.attachments'\n              });\n            }).then(r => r.toArray());\n            const invoices = this.store.peekAll('bill')?.toArray().filter(item => item.belongsTo('entity').id() === this.sessionData.entity.id);\n            return {\n              invoices,\n              invoiceItems\n            };\n          }\n          if (selectedProjectId) {\n            invoiceItemQuery.or.push({\n              field: 'project',\n              op: 'EQ',\n              value: selectedProjectId\n            });\n            invoiceItemQuery.or.push({\n              field: 'task.project',\n              op: 'EQ',\n              value: selectedProjectId\n            });\n          }\n          const invoiceItems = yield this.store.query('bill-item', {\n            filter: invoiceItemQuery,\n            include: 'bill,bill.attachments',\n            fields: {\n              'bill-items': '_meta.isMapped'\n            }\n          }).then(r => r.toArray());\n          const invoices = this.store.peekAll('bill')?.toArray().filter(item => item.belongsTo('entity').id() === this.sessionData.entity.id);\n          return {\n            invoices,\n            invoiceItems\n          };\n        }\n      }), null, \"fetchInvoicesAndItems\", null));\n    }\n    init() {\n      super.init(...arguments);\n      this.router.on('routeWillChange', transition => {\n        const isToReportBuilder = transition.to?.name === 'entity.build-price.reports.report-builder.index';\n        const isFromExportRoute = ['entity.build-price.reports.report-builder.pdf', 'entity.build-price.reports.report-builder.csv', 'entity.build-price.reports.report-builder.excel'].includes(transition.from?.name);\n        if (isToReportBuilder && !isFromExportRoute && this.controller != null) {\n          this.controller.resetPageOverrides();\n        }\n      });\n    }\n    createWorkerGroups({\n      timesheets,\n      projects,\n      tasks,\n      workerProjectAllocations,\n      selectedProjectId,\n      selectedTaskIds\n    }) {\n      const workersTimesheets = _lodash.default.groupBy(timesheets, sheet => sheet.belongsTo('worker').id());\n      return Object.keys(workersTimesheets).reduce((arr, workerId) => {\n        const worker = workersTimesheets[workerId][0].belongsTo('worker').value();\n        const timesheets = workersTimesheets[workerId];\n        const workerProjectAllocation = workerProjectAllocations.findBy('worker.id', workerId);\n\n        // TODO this is not nice\n        if (workerProjectAllocation) {\n          (0, _object.set)(worker, 'currentChargeOutRate', workerProjectAllocation.chargeOutRate);\n        } else {\n          (0, _object.set)(worker, 'currentChargeOutRate', worker.chargeOutRate);\n        }\n        return arr.concat(WorkerGroup.create({\n          worker,\n          timesheets,\n          project: projects.findBy('id', selectedProjectId),\n          tasks: selectedTaskIds?.length ? tasks.filter(t => selectedTaskIds.includes(t.id)) : null\n        }));\n      }, []);\n    }\n    createInvoiceGroups(invoices, invoiceItems) {\n      // Group the relevant items by invoice, ready to be added to their respective invoices\n      const groupedItems = _lodash.default.groupBy(invoiceItems, item => item.belongsTo('bill').id());\n      const invoiceWrappers = invoices.reduce((arr, invoice) => {\n        const items = groupedItems[invoice.id];\n        // Only include invoices with relevant items\n        if (items) {\n          return arr.concat(InvoiceGroup.create({\n            invoice,\n            items\n          }));\n        } else {\n          return arr;\n        }\n      }, []);\n      return invoiceWrappers.sortBy('invoice.issuer', 'invoice.issueDate');\n    }\n    clearExportedSelectedResources() {\n      const pdfController = this.controllerFor('entity.builda-price.operations.outgoing.report-builder.pdf');\n      const csvController = this.controllerFor('entity.builda-price.operations.outgoing.report-builder.csv');\n      const excelController = this.controllerFor('entity.builda-price.operations.outgoing.report-builder.excel');\n      if (pdfController?.downloaded || csvController?.downloaded || excelController?.downloaded) {\n        (0, _reportBuilderMarkAsReported.clearSelectedResources)(this.controller.reportData);\n        pdfController.set('downloaded', false);\n        csvController.set('downloaded', false);\n        excelController.set('downloaded', false);\n      }\n    }\n    async model({\n      startDate,\n      endDate,\n      selectedProjectId,\n      filterByDate\n    }) {\n      this.clearExportedSelectedResources();\n      const selectedTaskIds = this.controller?.selectedTaskIds || [];\n      const [projects, tasks] = await Promise.all([this.fetchProjects.perform(), this.fetchTasks.perform(selectedProjectId)]);\n      const [workerProjectAllocations, timesheets, {\n        invoices,\n        invoiceItems\n      }] = await Promise.all([this.fetchWorkerJobAllocations.perform(selectedProjectId), this.fetchTimesheets.perform({\n        selectedProjectId,\n        selectedTaskIds,\n        startDate,\n        endDate,\n        filterByDate\n      }), this.fetchInvoicesAndItems.perform({\n        selectedProjectId,\n        selectedTaskIds,\n        startDate,\n        endDate,\n        filterByDate\n      }, tasks)]);\n      const workerGroups = this.createWorkerGroups({\n        timesheets,\n        projects,\n        tasks,\n        workerProjectAllocations,\n        selectedProjectId,\n        selectedTaskIds\n      }); // eslint-disable-line max-len\n\n      const invoiceGroups = this.createInvoiceGroups(invoices, invoiceItems);\n      const invoiceGroupTypes = _lodash.default.groupBy(invoiceGroups, group => group.invoice.allocationType);\n      const materialInvoices = invoiceGroupTypes['MATERIALS'] || [];\n      const labourInvoices = invoiceGroupTypes['LABOUR'] || [];\n      const subcontractorInvoices = invoiceGroupTypes['SUBCONTRACTORS'] || [];\n      return {\n        projects,\n        tasks,\n        workers: workerGroups,\n        timesheets,\n        materialInvoices,\n        labourInvoices,\n        subcontractorInvoices,\n        refresh: () => this.refresh()\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/report-builder/pdf\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let PDFRoute = _exports.default = (_class = class PDFRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    model() {\n      // this transitions to the parent route if you refresh the model - pretty vague\n      this.router.transitionTo('entity.builda-price.operations.outgoing.report-builder.index');\n    }\n    serialize() {\n      return {\n        pdf_data: 'pdf'\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/routes/entity/builda-price/operations/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageIndex: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        },\n        searchTerm: {\n          refreshModel: true\n        },\n        supplier: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [25, 50, 100, 500, 1000]);\n      _defineProperty(this, \"getProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (pageSize, pageIndex, sortBy, sortDirection, supplier, searchTerm) {\n          const filters = {\n            and: [{\n              field: 'entity',\n              operator: 'EQ',\n              value: this.sessionData.entity.id\n            }],\n            or: []\n          };\n          if (supplier?.length) filters.and.push({\n            field: 'supplierName',\n            operator: 'EQ',\n            value: supplier\n          });\n          if (searchTerm?.length) {\n            filters.or.push({\n              field: 'description',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n            filters.or.push({\n              field: 'sku',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n          }\n          let orderBy;\n          switch (sortBy) {\n            case 'Product':\n              orderBy = 'description';\n              break;\n            case 'Supplier':\n              orderBy = 'supplierName';\n              break;\n            case 'SKU':\n              orderBy = 'sku';\n              break;\n            case 'Unit':\n              orderBy = 'unit';\n              break;\n            case 'Unit price':\n              orderBy = 'unitPrice';\n              break;\n            default:\n              break;\n          }\n          const entityProducts = yield this.store.query('entity-product', {\n            filter: filters,\n            orderBy: orderBy || 'dateCreated',\n            orderByDirection: sortDirection || 'desc',\n            pageSize,\n            page: pageIndex\n          });\n          return entityProducts;\n        }\n      }), null, \"getProducts\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageIndex = 1,\n      sortBy = 'dateCreated',\n      sortDirection = 'desc',\n      supplier,\n      searchTerm\n    }) {\n      this.getProducts.perform(Number(pageSize), Number(pageIndex), sortBy, sortDirection, supplier, searchTerm);\n      return {\n        entity: this.sessionData.entity,\n        products: this.getProducts,\n        pageSize: Number(pageSize),\n        pageIndex: Number(pageIndex),\n        sortBy,\n        sortDirection,\n        searchTerm,\n        supplier,\n        pageSizes: this.pageSizes\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {}\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/projects/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", {\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (status) {\n          const projectQuery = {\n            entity: this.sessionData.entity.id\n          };\n          if (status !== 'ALL') projectQuery.status = status;\n          const projects = yield this.store.simpleQuery('project', projectQuery);\n          return projects.sortBy('sortIndex').toArray();\n        }\n      }), null, \"getProjects\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model({\n      status = 'OPEN'\n    }) {\n      return {\n        projects: this.getProjects.perform(status)\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          try {\n            const project = yield this.store.findRecord('project', projectId, {\n              reload: true,\n              adapterOptions: {\n                fields: {\n                  projects: '_meta.canDelete'\n                }\n              }\n            });\n            return project;\n          } catch (_) {\n            // this means we either don't have access to the project or the project doesn't exist\n            // go back to the projects list\n            this.router.transitionTo('entity.builda-price.projects');\n          }\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getOpenProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          });\n          return projects.sortBy('sortIndex').toArray();\n        }\n      }), null, \"getOpenProjects\", null));\n    }\n    model({\n      project_id: projectId\n    }) {\n      this.getProject.perform(projectId);\n      this.getOpenProjects.perform();\n      return {\n        project: this.getProject,\n        openProjects: this.getOpenProjects\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/documents\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"getAttachments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          // if you can manage the files for this project use the project relationship\n          // this way the front end will update when adding new attachments\n          if (this.newFeatureFlags.canManageFileStorage(project.last.value)) {\n            yield project.last.value.loadAttachments();\n            return project.last.value.myAttachments;\n          }\n          // we cant use the project relationship because it is not filtered by ac, make the request manually\n          const filter = {\n            and: [{\n              field: 'project',\n              op: 'EQ',\n              value: project.last.value.id\n            }]\n          };\n          const attachments = yield this.store.query('link-attachment-to-project', {\n            filter,\n            include: 'attachment',\n            sort: 'dateCreated'\n          }).then(r => r.map(a => a.belongsTo('attachment').value()));\n          return attachments;\n        }\n      }), null, \"getAttachments\", null));\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          if (!this.newFeatureFlags.canManageFileStorage(project.last.value) || !this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canManageUsers')) return [];\n          const userAttributes = yield this.store.simpleQuery('user-entity-attribute', {\n            entity: this.sessionData.entity.id,\n            attribute: 'canViewEntity'\n          });\n          if (!userAttributes.length) return [];\n          const userIds = userAttributes.map(ua => ua.belongsTo('user').id());\n          const users = yield this.store.simpleQuery('user', {\n            _id: {\n              $in: userIds\n            }\n          }, {\n            include: 'entityAttributes'\n          });\n          return users;\n        }\n      }), null, \"getUsers\", null));\n    }\n    async model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getAttachments.perform(project);\n      this.getUsers.perform(project);\n      return {\n        project,\n        attachments: this.getAttachments,\n        users: this.getUsers\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/estimates/estimate\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"engineData\", _descriptor, this);\n      _initializerDefineProperty(this, \"pricing\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n    }\n    async getEstimate(estimateId) {\n      const estimate = await this.store.findRecord('estimate', estimateId);\n      return estimate;\n    }\n    deactivate() {\n      if (this.newFeatureFlags.includesFeatureFlags('entityHasSupport')) this.helpCenter.showHelpCenter();\n    }\n\n    // this has to be a promise prevent the builda-price-client-addon from loading\n    async model({\n      estimate_id: estimateId\n    }) {\n      if (this.newFeatureFlags.includesFeatureFlags('entityHasSupport')) this.helpCenter.hideHelpCenter();\n      const estimate = await this.getEstimate(estimateId);\n      this.engineData.sessionId = await this.pricing.getSessionId();\n      this.engineData.jobId = estimate.pricingJobId;\n      return {\n        estimate\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"engineData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"pricing\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/estimates/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"pricing\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        filter: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getEstimates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* ({\n          projectId,\n          filter\n        }) {\n          const projectQuery = {\n            entity: this.sessionData.entity.id,\n            project: projectId\n          };\n          if (filter !== 'all') projectQuery.status = filter;\n          const estimates = yield this.store.simpleQuery('estimate', projectQuery);\n          return estimates.toArray();\n        }\n      }), null, \"getEstimates\", null));\n      _defineProperty(this, \"getUnlinkedEstimates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const unlinkedEstimates = yield this.pricing.getUnlinkedEstimates();\n          return unlinkedEstimates;\n        }\n      }), null, \"getUnlinkedEstimates\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model({\n      filter = 'all'\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project_id: projectId\n      } = this.paramsFor(projectRoute);\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getEstimates.perform({\n        projectId,\n        filter\n      });\n      this.getUnlinkedEstimates.perform(projectId);\n      return {\n        project,\n        estimates: this.getEstimates,\n        unlinkedEstimates: this.getUnlinkedEstimates\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"pricing\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/financials\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"loadProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId, {\n            reload: true\n          });\n          return project;\n        }\n      }), null, \"loadProject\", null));\n      _defineProperty(this, \"loadBudget\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          yield this.loadTasks;\n          yield project.last.value.loadBudget();\n        }\n      }), null, \"loadBudget\", null));\n      _defineProperty(this, \"loadQuote\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          yield this.loadTasks;\n          yield project.last.value.loadQuote();\n        }\n      }), null, \"loadQuote\", null));\n      _defineProperty(this, \"loadTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          yield project.last.value.loadTaskChanges();\n        }\n      }), null, \"loadTasks\", null));\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project_id: projectId\n      } = this.paramsFor(projectRoute);\n\n      // reload the project incase the financials have changed\n      this.loadProject.perform(projectId);\n      this.loadTasks.perform(this.loadProject);\n      this.loadBudget.perform(this.loadProject);\n      this.loadQuote.perform(this.loadProject);\n      return {\n        project: this.loadProject,\n        loadBudget: this.loadBudget,\n        loadQuote: this.loadQuote\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/health-and-safety\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"ossEngineData\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n    async model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = await this.modelFor(projectRoute);\n      await project.last;\n\n      // set project Id\n      this.ossEngineData.setProjectId(project.last.value.id);\n\n      // set access token\n      this.ossEngineData.setAccessToken(this.sessionData.session.data.authenticated.access_token);\n      // set user object\n      this.ossEngineData.setUser(this.sessionData.user);\n      return {\n        project\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"ossEngineData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _route, _menuRoute, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\",0,\"@glimmer/tracking\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      // this is similar logic to the project route sidebar\n      _initializerDefineProperty(this, \"defaultRoute\", _descriptor2, this);\n    }\n    // yes, the default route returns you to the projects page\n    async beforeModel() {\n      const project = await this.modelFor('entity.builda-price.projects.project').project.last;\n      if (this.newFeatureFlags.includesFeatureFlags(project, 'canUseTasks')) {\n        // if you can manage tasks for this project go to the tasks screen\n        this.defaultRoute = 'entity.builda-price.projects.project.tasks';\n      } else if (this.newFeatureFlags.includesFeatureFlags(project, 'canUseProjects')) {\n        this.defaultRoute = 'entity.builda-price.projects.project.settings';\n      } else if (this.newFeatureFlags.includesFeatureFlags(project, 'canUseEstimates')) {\n        // if you can manage estimates for this project go to the estimates screen\n        this.defaultRoute = 'entity.builda-price.projects.project.estimates';\n      } else {\n        // otherwise you have no business in this project so return to the projects route\n        this.defaultRoute = 'entity.builda-price.projects';\n      }\n    }\n    model() {\n      return this.modelFor('entity.builda-price.reports.projects.project');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"defaultRoute\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'entity.builda-price.projects';\n    }\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      return {\n        project\n      };\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/projects/project/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProjectsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewClientReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewProjectsAttributes = _exports.canViewProjectsAttributes = ['canViewProjects'];\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewTaskBudgets'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewTaskProgress'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewTaskQuotes'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const canViewClientReportsAttributes = _exports.canViewClientReportsAttributes = ['canViewClientReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      case 'canViewClientReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canViewBudgets: () => true,\n    canViewQuotes: () => true,\n    canViewInvoicingReports: () => true,\n    canViewClientReports: () => true\n  };\n  class TaskTypeContainer {\n    constructor(name, attr) {\n      this.name = name;\n      this.attr = attr;\n    }\n  }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (client, project, attributes, taskVisibilityOptions) {\n          yield client.last;\n          yield project.last;\n          yield attributes.last;\n          yield taskVisibilityOptions.last;\n          const projectAttributes = client.last.value.hasMany('projectAttributes').value()?.toArray() || [];\n          const currentProjectAttributeIds = projectAttributes.filter(pa => pa.belongsTo('project').id() === project.last.value.id).map(pa => pa.belongsTo('attribute').id());\n          const selectedTaskAttributes = taskVisibilityOptions.last.value.filter(tva => currentProjectAttributeIds.includes(tva.attr.id));\n          return (0, _emberChangeset.Changeset)({\n            taskAttributes: selectedTaskAttributes,\n            canViewBudgetFinancialReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewChargeupReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewProgressReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewSchedulingReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewTasksAttributes),\n            canViewInvoicingReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewInvoicingReportsAttributes),\n            canViewClientReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewClientReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getClient\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const client = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return client;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the client'));\n            this.router.transitionTo(`${this.basePath}.users`);\n          }\n        }\n      }), null, \"getClient\", null));\n      _defineProperty(this, \"getAttributes\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.findAll('user-attribute');\n          return attributes.toArray().reduce((acc, a) => ({\n            ...acc,\n            [a.id]: a\n          }), {});\n        }\n      }), null, \"getAttributes\", null));\n      _defineProperty(this, \"getTaskVisibilityOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (attributes) {\n          yield attributes.last;\n          const {\n            canViewTaskTasks,\n            canViewSumsTasks,\n            canViewSubcontractorTasks,\n            canViewPlantTasks,\n            canViewMilestoneTasks,\n            canViewInternalTasks,\n            canViewBuildersWorkTasks\n          } = attributes.last.value;\n          return [new TaskTypeContainer('General', canViewTaskTasks), new TaskTypeContainer(`Builder's Work`, canViewBuildersWorkTasks), new TaskTypeContainer('Sums', canViewSumsTasks), new TaskTypeContainer(`Subcontractors`, canViewSubcontractorTasks), new TaskTypeContainer('Plant', canViewPlantTasks), new TaskTypeContainer('Internal', canViewInternalTasks), new TaskTypeContainer('Milestone', canViewMilestoneTasks)];\n        }\n      }), null, \"getTaskVisibilityOptions\", null));\n    }\n    model({\n      client_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getClient.perform(id);\n      this.getAttributes.perform();\n      this.getTaskVisibilityOptions.perform(this.getAttributes);\n      this.getPermissionsChangeset.perform(this.getClient, project, this.getAttributes, this.getTaskVisibilityOptions);\n      return {\n        project,\n        basePath: this.basePath,\n        client: this.getClient,\n        permissionsChangeset: this.getPermissionsChangeset,\n        taskVisibilityOptions: this.getTaskVisibilityOptions,\n        attributes: this.getAttributes\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/clients/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"projectClientPermissions\", ['hasClientRole']);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getClients\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          if (!this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseClientPortal', 'canUseUsers')) return [];\n          yield project.last;\n          const [userProjectAttributes, userClientEntityAttributes] = yield Promise.all([this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: project.last.value.id\n              }, {\n                field: 'attribute',\n                op: 'IN',\n                value: this.projectClientPermissions\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasClientRole'\n              }]\n            },\n            include: 'user'\n          })]);\n          const users = userClientEntityAttributes.map(uca => uca.belongsTo('user').value());\n          return users.sortBy('firstName').reduce((group, user) => {\n            const hasProject = userProjectAttributes.toArray().some(upa => upa.belongsTo('user').id() === user.id);\n            (hasProject ? group.projectClients : group.unassignedClients).push(user);\n            return group;\n          }, {\n            projectClients: [],\n            unassignedClients: []\n          });\n        }\n      }), null, \"getClients\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getClients.perform(project);\n      return {\n        project,\n        clients: this.getClients,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      const project = await this.modelFor('entity.builda-price.projects.project').project.last;\n      // we can default to this route if user has access to users\n      if (this.newFeatureFlags.includesFeatureFlags(project.value, 'canUseBuildaPrice', 'canUseUsers')) {\n        this.router.transitionTo('entity.builda-price.projects.project.people.users');\n      } else if (this.newFeatureFlags.includesFeatureFlags(project.value, 'canUseBuildaPrice', 'canUseWorkers')) {\n        this.router.transitionTo('entity.builda-price.projects.project.people.workers');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/subcontractors/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"projectSubcontractorPermissions\", ['hasSubcontractorRole']);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getSubcontractors\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const [userProjectAttributes, userSubcontractorEntityAttributes] = yield Promise.all([this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: project.last.value.id\n              }, {\n                field: 'attribute',\n                op: 'IN',\n                value: this.projectSubcontractorPermissions\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasSubcontractorRole'\n              }]\n            },\n            include: 'user'\n          })]);\n          const users = userSubcontractorEntityAttributes.map(usa => usa.belongsTo('user').value());\n          return users.sortBy('firstName').reduce((group, user) => {\n            const hasProject = userProjectAttributes.toArray().some(upa => upa.belongsTo('user').id() === user.id);\n            (hasProject ? group.projectSubcontractors : group.unassignedSubcontractors).push(user);\n            return group;\n          }, {\n            projectSubcontractors: [],\n            unassignedSubcontractors: []\n          });\n        }\n      }), null, \"getSubcontractors\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getSubcontractors.perform(project);\n      return {\n        project,\n        subcontractors: this.getSubcontractors,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProjectsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManageProjectsAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageHealthAndSafetyAttributes = _exports.canManageFileStorageAttributes = _exports.canManageEstimatesAttributes = _exports.canManageBudgetsAttributes = _exports.canCreateHealthAndSafetyAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewProjectsAttributes = _exports.canViewProjectsAttributes = ['canViewProjects'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageProjectBudgetVersions', 'canManageTaskBudgets'];\n  const canManageEstimatesAttributes = _exports.canManageEstimatesAttributes = ['canManageEstimates'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canManageProjectsAttributes = _exports.canManageProjectsAttributes = ['canManageProjects'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageProjectQuoteVersions', 'canManageTaskQuotes'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageProjectProgressVersions', 'canManageTaskProgress'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageProjectSchedulingVersions', 'canManageTaskScheduling', 'canManageSchedulingReports', 'canManageProgressReports'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewProjectBudgetVersions', 'canViewTaskBudgets'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewProjectProgressVersions', 'canViewTaskProgress'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewProjectQuoteVersions', 'canViewTaskQuotes'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canCreateHealthAndSafetyAttributes = _exports.canCreateHealthAndSafetyAttributes = ['canCreateHealthAndSafety'];\n  const canManageHealthAndSafetyAttributes = _exports.canManageHealthAndSafetyAttributes = ['canManageHealthAndSafety'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canManageBudgets':\n        return true;\n      case 'canManageEstimates':\n        return true;\n      case 'canManageFileStorage':\n        return true;\n      case 'canManageProducts':\n        return true;\n      case 'canManageProjects':\n        return true;\n      case 'canManageQuotes':\n        return true;\n      case 'canManageSchedulingReports':\n        return true;\n      case 'canManageTasks':\n        return true;\n      case 'canManageTimesheets':\n        return true;\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canManageProgress':\n        return true;\n      case 'canViewProgress':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewFileStorage':\n        return true;\n      case 'canViewProducts':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canCreateHealthAndSafety':\n        return true;\n      case 'canManageHealthAndSafety':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canManageBudgets: () => true,\n    canManageEstimates: () => true,\n    canManageFileStorage: () => true,\n    canManageProducts: () => true,\n    canManageProjects: () => true,\n    canManageQuotes: () => true,\n    canManageSchedulingReports: () => true,\n    canManageTasks: () => true,\n    canManageTimesheets: () => true,\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewBudgets: () => true,\n    canViewProgress: () => true,\n    canManageProgress: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewFileStorage: () => true,\n    canViewProducts: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewQuotes: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canCreateHealthAndSafety: () => null,\n    canManageHealthAndSafety: () => null,\n    canViewInvoicingReports: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getSubcontractor\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const subcontractor = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return subcontractor;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.somethingWentWrongFindingTheSubcontractor'));\n            this.router.transitionTo(`${this.basePath}.users`);\n          }\n        }\n      }), null, \"getSubcontractor\", null));\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (subcontractor, project) {\n          yield subcontractor.last;\n          yield project.last;\n          return (0, _emberChangeset.Changeset)({\n            canManageBudgets: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageBudgetsAttributes),\n            canManageEstimates: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageEstimatesAttributes),\n            canManageFileStorage: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageFileStorageAttributes),\n            canManageProducts: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProductsAttributes),\n            canManageProjects: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProjectsAttributes),\n            canManageQuotes: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageQuotesAttributes),\n            canManageSchedulingReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageSchedulingReportsAttributes),\n            canManageTasks: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageTasksAttributes),\n            canManageTimesheets: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageTimesheetsAttributes),\n            canViewBudgetFinancialReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewBudgets: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetsAttributes),\n            canViewProgress: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProgressAttributes),\n            canManageProgress: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProgressAttributes),\n            canViewChargeupReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewFileStorage: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewFileStorageAttributes),\n            canViewProducts: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProductsAttributes),\n            canViewProgressReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewQuotes: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewQuotesAttributes),\n            canViewSchedulingReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewTasksAttributes),\n            canCreateHealthAndSafety: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canCreateHealthAndSafetyAttributes),\n            canManageHealthAndSafety: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageHealthAndSafetyAttributes),\n            canViewInvoicingReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewInvoicingReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n    }\n    model({\n      subcontractor_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getSubcontractor.perform(id);\n      this.getPermissionsChangeset.perform(this.getSubcontractor, project);\n      return {\n        project,\n        basePath: this.basePath,\n        subcontractor: this.getSubcontractor,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/users/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const [userEntityAttributes, userProjectAttributes, userClientEntityAttributes, userSubcontractorEntityAttributes] = yield Promise.all([this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'canViewEntity'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: project.last.value.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasClientRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasSubcontractorRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          })]);\n          let allUsers = userEntityAttributes.map(uea => uea.belongsTo('user').value());\n          const clientIds = userClientEntityAttributes.map(uea => uea.belongsTo('user').id());\n          const subcontractorIds = userSubcontractorEntityAttributes.map(uea => uea.belongsTo('user').id());\n\n          // filter clients and subcontractors from users list\n          const users = allUsers.filter(user => !clientIds.includes(user.id) && !subcontractorIds.includes(user.id));\n          return users.sortBy('firstName').reduce((group, user) => {\n            const hasProject = userProjectAttributes.toArray().some(upa => upa.belongsTo('user').id() === user.id);\n            (hasProject ? group.projectUsers : group.unassignedUsers).push(user);\n            return group;\n          }, {\n            projectUsers: [],\n            unassignedUsers: []\n          });\n        }\n      }), null, \"getUsers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getUsers.perform(project);\n      return {\n        project,\n        users: this.getUsers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewStagePaymentsAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewPurchaseOrdersAttributes = _exports.canViewProjectsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewInvoicesAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canViewAccessReportsAttributes = _exports.canViewAccessReports = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageStagePaymentsAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManagePurchaseOrdersAttributes = _exports.canManageProjectsAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageInvoicesAttributes = _exports.canManageHealthAndSafetyAttributes = _exports.canManageFileStorageAttributes = _exports.canManageEstimatesAttributes = _exports.canManageBudgetsAttributes = _exports.canCreateHealthAndSafetyAttributes = _exports.canApprovePurchaseOrdersAttributes = _exports.canApproveInvoicesAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewProjectsAttributes = _exports.canViewProjectsAttributes = ['canViewProjects'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageProjectBudgetVersions', 'canManageTaskBudgets'];\n  const canManageEstimatesAttributes = _exports.canManageEstimatesAttributes = ['canManageEstimates'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canManageProjectsAttributes = _exports.canManageProjectsAttributes = ['canManageProjects'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageProjectQuoteVersions', 'canManageTaskQuotes'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageProjectSchedulingVersions', 'canManageTaskScheduling', 'canManageSchedulingReports', 'canManageProgressReports'];\n  const canViewAccessReportsAttributes = _exports.canViewAccessReportsAttributes = ['canViewAccessReports'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewProjectBudgetVersions', 'canViewTaskBudgets'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewProjectProgressVersions', 'canViewTaskProgress'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageProjectProgressVersions', 'canManageTaskProgress'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewProjectQuoteVersions', 'canViewTaskQuotes'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canCreateHealthAndSafetyAttributes = _exports.canCreateHealthAndSafetyAttributes = ['canCreateHealthAndSafety'];\n  const canManageHealthAndSafetyAttributes = _exports.canManageHealthAndSafetyAttributes = ['canManageHealthAndSafety'];\n  const canViewInvoicesAttributes = _exports.canViewInvoicesAttributes = ['canViewInvoices'];\n  const canManageInvoicesAttributes = _exports.canManageInvoicesAttributes = ['canManageInvoices'];\n  const canApproveInvoicesAttributes = _exports.canApproveInvoicesAttributes = ['canApproveInvoices'];\n  const canViewPurchaseOrdersAttributes = _exports.canViewPurchaseOrdersAttributes = ['canViewPurchaseOrders'];\n  const canManagePurchaseOrdersAttributes = _exports.canManagePurchaseOrdersAttributes = ['canManagePurchaseOrders'];\n  const canApprovePurchaseOrdersAttributes = _exports.canApprovePurchaseOrdersAttributes = ['canApprovePurchaseOrders'];\n  const canViewStagePaymentsAttributes = _exports.canViewStagePaymentsAttributes = ['canViewStagePayments'];\n  const canManageStagePaymentsAttributes = _exports.canManageStagePaymentsAttributes = ['canManageStagePayments'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const canViewAccessReports = _exports.canViewAccessReports = ['canViewAccessReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canManageBudgets':\n        return true;\n      case 'canManageEstimates':\n        return true;\n      case 'canManageFileStorage':\n        return true;\n      case 'canManageProducts':\n        return true;\n      case 'canManageProjects':\n        return true;\n      case 'canManageQuotes':\n        return true;\n      case 'canManageSchedulingReports':\n        return true;\n      case 'canViewAccessReports':\n        return true;\n      case 'canManageTasks':\n        return true;\n      case 'canManageTimesheets':\n        return true;\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canViewProgress':\n        return true;\n      case 'canManageProgress':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewFileStorage':\n        return true;\n      case 'canViewProducts':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canCreateHealthAndSafety':\n        return true;\n      case 'canManageHealthAndSafety':\n        return true;\n      case 'canViewInvoices':\n        return true;\n      case 'canManageInvoices':\n        return true;\n      case 'canApproveInvoices':\n        return true;\n      case 'canViewPurchaseOrders':\n        return true;\n      case 'canManagePurchaseOrders':\n        return true;\n      case 'canApprovePurchaseOrders':\n        return true;\n      case 'canViewStagePayments':\n        return true;\n      case 'canManageStagePayments':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canManageBudgets: () => true,\n    canManageEstimates: () => true,\n    canManageFileStorage: () => true,\n    canManageProducts: () => true,\n    canManageProjects: () => true,\n    canManageQuotes: () => true,\n    canManageSchedulingReports: () => true,\n    canViewAccessReports: () => true,\n    canManageTasks: () => true,\n    canManageTimesheets: () => true,\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewBudgets: () => true,\n    canViewProgress: () => true,\n    canManageProgress: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewFileStorage: () => true,\n    canViewProducts: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewQuotes: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canCreateHealthAndSafety: () => null,\n    canManageHealthAndSafety: () => null,\n    canViewInvoices: () => null,\n    canManageInvoices: () => null,\n    canApproveInvoices: () => null,\n    canViewPurchaseOrders: () => null,\n    canManagePurchaseOrders: () => null,\n    canApprovePurchaseOrders: () => null,\n    canViewStagePayments: () => null,\n    canManageStagePayments: () => null,\n    canViewInvoicingReports: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user, project) {\n          yield user.last;\n          yield project.last;\n          return (0, _emberChangeset.Changeset)({\n            canManageBudgets: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageBudgetsAttributes),\n            canManageEstimates: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageEstimatesAttributes),\n            canManageFileStorage: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageFileStorageAttributes),\n            canManageProducts: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProductsAttributes),\n            canManageProjects: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProjectsAttributes),\n            canManageQuotes: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageQuotesAttributes),\n            canManageSchedulingReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageSchedulingReportsAttributes),\n            canViewAccessReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewAccessReportsAttributes),\n            canManageTasks: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageTasksAttributes),\n            canManageTimesheets: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageTimesheetsAttributes),\n            canViewBudgetFinancialReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewBudgets: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetsAttributes),\n            canViewProgress: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProgressAttributes),\n            canManageProgress: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProgressAttributes),\n            canViewChargeupReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewFileStorage: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewFileStorageAttributes),\n            canViewProducts: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProductsAttributes),\n            canViewProgressReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewQuotes: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewQuotesAttributes),\n            canViewSchedulingReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewTasksAttributes),\n            canCreateHealthAndSafety: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canCreateHealthAndSafetyAttributes),\n            canManageHealthAndSafety: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageHealthAndSafetyAttributes),\n            canViewInvoices: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewInvoicesAttributes),\n            canManageInvoices: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageInvoicesAttributes),\n            canApproveInvoices: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canApproveInvoicesAttributes),\n            canViewPurchaseOrders: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewPurchaseOrdersAttributes),\n            canManagePurchaseOrders: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManagePurchaseOrdersAttributes),\n            canApprovePurchaseOrders: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canApprovePurchaseOrdersAttributes),\n            canViewStagePayments: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewStagePaymentsAttributes),\n            canManageStagePayments: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageStagePaymentsAttributes),\n            canViewInvoicingReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewInvoicingReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const user = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return user;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the user'));\n            this.router.transitionTo(`${this.basePath}.users`);\n          }\n        }\n      }), null, \"getUser\", null));\n    }\n    model({\n      user_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getUser.perform(id);\n      this.getPermissionsChangeset.perform(this.getUser, project);\n      return {\n        project,\n        basePath: this.basePath,\n        user: this.getUser,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.workerAttributes = _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const workerAttributes = _exports.workerAttributes = ['canViewProjects'];\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          const workers = yield this.store.query('worker', {\n            filter,\n            include: 'projectAttributes',\n            sort: 'firstName'\n          });\n          return workers.reduce((workers, worker) => {\n            const hasProject = worker.includesClaimsAboutProject(project.last.value.id, ...workerAttributes);\n            if (hasProject) workers.projectWorkers.push(worker);\n            // only add active workers to unassigned list\n            else if (worker.isActive) workers.unassignedWorkers.push(worker);\n            return workers;\n          }, {\n            unassignedWorkers: [],\n            projectWorkers: []\n          });\n        }\n      }), null, \"getWorkers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getWorkers.perform(project);\n      return {\n        project,\n        workers: this.getWorkers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTaskAttributes = _exports.canCreateHealthAndSafetyAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canCreateHealthAndSafetyAttributes = _exports.canCreateHealthAndSafetyAttributes = ['canCreateHealthAndSafety'];\n  const canViewTaskAttributes = _exports.canViewTaskAttributes = ['canViewTasks'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canCreateHealthAndSafety':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canCreateHealthAndSafety: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const worker = yield this.store.findRecord('worker', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('worker-entity-attribute', {\n              worker: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('worker-project-attribute', {\n              worker: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return worker;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the worker'));\n            this.router.transitionTo(`${this.basePath}.workers`);\n          }\n        }\n      }), null, \"getWorker\", null));\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (worker, project) {\n          yield worker.last;\n          yield project.last;\n          return (0, _emberChangeset.Changeset)({\n            canCreateHealthAndSafety: worker.last.value.includesClaimsAboutProject(project.last.value.id, ...canCreateHealthAndSafetyAttributes),\n            canViewTasks: worker.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewTaskAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n    }\n    model({\n      worker_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getWorker.perform(id);\n      this.getPermissionsChangeset.perform(this.getWorker, project);\n      return {\n        project,\n        basePath: this.basePath,\n        worker: this.getWorker,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/prices\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {}\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/projects/project/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageIndex: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        },\n        searchTerm: {\n          refreshModel: true\n        },\n        supplier: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [25, 50, 100, 500, 1000]);\n      _defineProperty(this, \"getProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, pageSize, pageIndex, sortBy, sortDirection, supplier, searchTerm) {\n          yield project.last;\n          const filters = {\n            and: [{\n              field: 'project',\n              operator: 'EQ',\n              value: project.last.value.id\n            }, {\n              field: 'entity',\n              operator: 'EQ',\n              value: project.last.value.belongsTo('entity').id()\n            }],\n            or: []\n          };\n          if (supplier?.length) filters.and.push({\n            field: 'supplierName',\n            operator: 'EQ',\n            value: supplier\n          });\n          if (searchTerm?.length) {\n            filters.or.push({\n              field: 'description',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n            filters.or.push({\n              field: 'sku',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n          }\n          let orderBy;\n          switch (sortBy) {\n            case 'Product':\n              orderBy = 'description';\n              break;\n            case 'Supplier':\n              orderBy = 'supplierName';\n              break;\n            case 'SKU':\n              orderBy = 'sku';\n              break;\n            case 'Unit':\n              orderBy = 'unit';\n              break;\n            case 'Unit price':\n              orderBy = 'unitPrice';\n              break;\n            default:\n              break;\n          }\n          const projectProducts = yield this.store.query('project-product', {\n            filter: filters,\n            orderBy: orderBy || 'dateCreated',\n            orderByDirection: sortDirection || 'desc',\n            pageSize,\n            page: pageIndex\n          });\n          return projectProducts;\n        }\n      }), null, \"getProducts\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageIndex = 1,\n      sortBy = 'dateCreated',\n      sortDirection = 'desc',\n      supplier,\n      searchTerm\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getProducts.perform(project, Number(pageSize), Number(pageIndex), sortBy, sortDirection, supplier, searchTerm);\n      return {\n        project,\n        products: this.getProducts,\n        pageSize: Number(pageSize),\n        pageIndex: Number(pageIndex),\n        sortBy,\n        sortDirection,\n        searchTerm,\n        pageSizes: this.pageSizes,\n        supplier\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/progress\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/object\", \"@ember/routing/route\", \"@ember/service\", \"@glimmer/tracking\", \"portal/helpers/chunk-callback\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _object, _route, _service, _tracking, _chunkCallback, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.TaskContainer = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _class3, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/object\",0,\"@ember/routing/route\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"portal/helpers/chunk-callback\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let TaskContainer = _exports.TaskContainer = (_dec = (0, _object.computed)('_progress', 'children.@each.isDirty'), _class = class TaskContainer {\n    currencyFormatter(value) {\n      return this.numberFormat.format(value, {\n        style: 'currency',\n        dashZero: false\n      });\n    }\n    get budgetTotal() {\n      return this.task.budget.total;\n    }\n    get budgetManHours() {\n      return this.task.budgetManHours;\n    }\n    get isComplete() {\n      if (this.children?.length) return this.children.every(child => child.isComplete);\n      if (this._isComplete != null) return this._isComplete;\n      return this.task.isComplete;\n    }\n    set isComplete(value) {\n      const isComplete = Boolean(value);\n      if (this.children?.length) {\n        this.children.forEach(child => {\n          child.isComplete = isComplete;\n        });\n      }\n      this._isComplete = isComplete;\n\n      // when something is complete is must be 100%\n      if (isComplete) this.progress = 1;\n    }\n    get isPartiallyComplete() {\n      if (!this.children?.length) return false;\n      if (this.isComplete) return false;\n      return this.children.some(child => child.isComplete || child.isPartiallyComplete);\n    }\n    get isDraft() {\n      if (this.task.draftProgressChange || this.isDirty) return true;\n      return false;\n    }\n    get manHoursActual() {\n      return this.progressDirect?.attributes?.actualManHours || 0;\n    }\n    get latestVersionForecastManHours() {\n      return this.task.progressDirect.forecastManHours || 0;\n    }\n    get latestVersionProgress() {\n      return this.progressDirect?.attributes?.progress || 0;\n    }\n    get currentDraftForecastManHours() {\n      return this.task.draftProgressChange?.forecastManHours || this.latestVersionForecastManHours;\n    }\n    get currentDraftProgress() {\n      return this.task.draftProgressChange?.progress || this.latestVersionProgress;\n    }\n    get isDifferentFromLastVersion() {\n      const diffMargin = 0.01; // 1%\n      return Math.abs(this.progress - this.latestVersionProgress) > diffMargin;\n    }\n    get isDirty() {\n      if (this.children?.length) return this.children.some(child => child.isDirty);\n      return this._progress != null;\n    }\n    set progress(value) {\n      const progress = Number(value);\n\n      // you can not have a complete task that is not 100%\n      if (progress !== 1) this.isComplete = false;\n      if (this.children?.length) {\n        this.children.forEach(child => {\n          child.progress = progress;\n        });\n        return;\n      }\n      (0, _object.set)(this, '_progress', progress);\n    }\n    get progress() {\n      if (this.children?.length) {\n        let childrenForecastManHours = 0;\n        this.children.forEach(child => {\n          childrenForecastManHours += child.progress * child.forecastManHours;\n        });\n        const childrenForecastedProgress = Math.min(childrenForecastManHours / this.forecastManHours || 0, 1);\n        if (childrenForecastedProgress !== 0) return childrenForecastedProgress;\n\n        // in this scenario we take the average percentage (there is no data to weight it on)\n        return this.children.reduce((totalProgress, child) => totalProgress += child.progress, 0) / this.children.length;\n      }\n      if (this._progress != null) return this._progress;\n      return this.currentDraftProgress;\n    }\n    get forecastManHours() {\n      if (this.children?.length) {\n        let childrenForecastManHours = 0;\n        this.children.forEach(child => {\n          childrenForecastManHours += child.forecastManHours;\n        });\n        if (childrenForecastManHours === Infinity) return 0;\n        return childrenForecastManHours;\n      }\n      let forecastManHours;\n      if (this.progress != null) {\n        // if we have a progress of 100% and no actual, the forecast is 0\n        if (this.progress === 1 && this.manHoursActual === 0) return 0;\n\n        // calculate the forecast from the progress and actual\n        forecastManHours = this.manHoursActual / this.progress || 0;\n\n        // if you don't have a forecast figure assume the budget is correct\n        if (!forecastManHours) forecastManHours = this.budgetManHours;\n      } else {\n        forecastManHours = Math.max(this.manHoursActual, this.currentDraftForecastManHours);\n      }\n      if (forecastManHours === Infinity) return 0;\n      return forecastManHours;\n    }\n    get hasMissingCosts() {\n      if (this.children?.length || !this.isDraft || !this.isComplete) {\n        return false;\n      }\n      const costTotal = this.costTotal?.attributes || {\n        materials: 0,\n        subcontractors: 0,\n        invoiceLabour: 0,\n        timesheetLabour: 0\n      };\n      const calculateVariance = (budget, cost) => {\n        if (cost === 0) {\n          return budget ? 1 : 0;\n        }\n        if (budget === 0) {\n          return 0;\n        }\n        return (cost - budget) / budget;\n      };\n      const calculateRemainingBudget = (budget, cost) => Math.max(budget - cost, 0);\n      const labourCost = costTotal.invoiceLabour + costTotal.timesheetLabour;\n      const labourVariance = calculateVariance(this.task.budgetLabour, labourCost);\n      const remainingLabourBudget = calculateRemainingBudget(this.task.budgetLabour, labourCost);\n      const materialsVariance = calculateVariance(this.task.budgetMaterials, costTotal.materials);\n      const remainingMaterialsBudget = calculateRemainingBudget(this.task.budgetMaterials, costTotal.materials);\n      const subcontractorsVariance = calculateVariance(this.task.budgetSubcontractors, costTotal.subcontractors);\n      const remainingSubcontractorsBudget = calculateRemainingBudget(this.task.budgetSubcontractors, costTotal.subcontractors);\n      const remainingSumsBudget = this.task.budgetSums;\n      const varianceMargin = -0.5;\n      let messages = [];\n      if (labourVariance <= varianceMargin) {\n        messages.push(`${this.currencyFormatter(remainingLabourBudget)} ${this.intl.t('common.labour')}`);\n      }\n      if (materialsVariance <= varianceMargin) {\n        messages.push(`${this.currencyFormatter(remainingMaterialsBudget)} ${this.intl.t('common.materials')}`);\n      }\n      if (subcontractorsVariance <= varianceMargin) {\n        messages.push(`${this.currencyFormatter(remainingSubcontractorsBudget)} ${this.intl.t('common.subcontractors')}`);\n      }\n      if (remainingSumsBudget) {\n        messages.push(`${this.currencyFormatter(remainingSumsBudget)} ${this.intl.t('common.sums')}`);\n      }\n      if (messages.length) {\n        const title = this.intl.t('entity.builda-price.projects.project.progress.theFollowingRemainingBudgetsWillNotBeIncludedInTheForecast') + ': ';\n        return title + messages.join(', ') + '.';\n      }\n      return false;\n    }\n    get hasChildrenMissingCosts() {\n      if (!this.children?.length) return false;\n      return this.children.some(child => child.hasMissingCosts || child.hasChildrenMissingCosts);\n    }\n    get hasProgressWithBudgetAndNoActual() {\n      if (this.children?.length) return false;\n      if (this.isComplete) return false;\n      const hasBudget = Boolean(this.budgetTotal);\n      const hasProgress = Boolean(this.progress);\n      const hasManHours = Boolean(this.manHoursActual);\n      if (hasBudget && hasProgress && !hasManHours) return this.intl.t('entity.builda-price.projects.project.progress.theProgressYouEnterHereWillShowDifferentlyInReportsBecauseThereAreNoTimesheetsForThisBudgetedTask');\n      return false;\n    }\n    get hasChildrenProgressWithBudgetAndNoActual() {\n      if (!this.children?.length) return false;\n      return this.children.some(child => child.hasProgressWithBudgetAndNoActual || child.hasChildrenProgressWithBudgetAndNoActual);\n    }\n    get hasVersionDiff() {\n      if (this.hasDiff) return false;\n      if (this.children?.length) return false;\n      if (!this.latestVersionProgress) return false;\n      const diffMargin = 0.01; // 1%\n      const versionProgress = this.task.currentProgressChange?.progress || 0;\n      if (Math.abs(versionProgress - this.latestVersionProgress) > diffMargin) {\n        const lastProgress = Math.round((this.task.currentProgressChange?.progress || 0) * 100);\n        const latestProgress = Math.round(this.latestVersionProgress * 100);\n        if (!lastProgress) return `${this.intl.t('entity.builda-price.projects.project.progress.theProgressHasBeenCalculatedFromYourBudgetAndTimesheetsAs')} ${latestProgress}%.`;\n        let sentences = [this.intl.t('entity.builda-price.projects.project.progress.thisProgressHasChangedFromWhatItWasPreviously')];\n        if (lastProgress === latestProgress) {\n          sentences.push(`${this.intl.t('entity.builda-price.projects.project.progress.The last saved progress was')} ${lastProgress}%.`);\n        } else {\n          sentences.push(this.intl.t('entity.builda-price.projects.project.progress.theLastSavedProgressWasLastprogressAndWithTheAdditionOfTimesheetsTheForecastedProgressIsNowLatestprogress', {\n            latestProgress,\n            lastProgress\n          }));\n        }\n        return sentences.join(' ');\n      }\n      return false;\n    }\n    get hasChildVersionDiff() {\n      if (!this.children?.length) return false;\n      return this.children.some(child => child.hasVersionDiff || child.hasChildVersionDiff);\n    }\n    get hasNoManHours() {\n      if (this.children?.length) return false;\n      return !this.manHoursActual;\n    }\n    get hasNoChildManHours() {\n      if (!this.children?.length) return false;\n      return this.children.every(child => child.hasNoManHours || child.hasNoChildManHours);\n    }\n    get hasChildDiff() {\n      if (!this.children?.length) return false;\n      return this.children.some(child => child.hasDiff || child.hasChildDiff);\n    }\n    get hasDiff() {\n      if (this.children?.length) return false;\n      if (!this.latestVersionProgress) return false;\n      const diffMargin = 0.01; // 1%\n      if (Math.abs(this.progress - this.latestVersionProgress) > diffMargin) {\n        const lastProgress = Math.round((this.task.currentProgressChange?.progress || 0) * 100);\n        const latestProgress = Math.round(this.latestVersionProgress * 100);\n        if (!lastProgress) return `${this.intl.t('entity.builda-price.projects.project.progress.theProgressCalculatedUsingYourBudgetAndTimesheetsWas')} ${latestProgress}%.`;\n        let sentences = [this.intl.t('entity.builda-price.projects.project.progress.thisProgressHasChangedFromWhatItWasPreviously')];\n        if (lastProgress === latestProgress) {\n          sentences.push(`${this.intl.t('entity.builda-price.projects.project.progress.The last saved progress was')} ${lastProgress}%.`);\n        } else {\n          sentences.push(this.intl.t('entity.builda-price.projects.project.progress.theLastSavedProgressWasLastprogressAndWithTheAdditionOfTimesheetsTheForecastedProgressIsNowLatestprogress', {\n            latestProgress,\n            lastProgress\n          }));\n        }\n        return sentences.join(' ');\n      }\n      return false;\n    }\n    constructor(intl, numberFormat, task, isDirect, costTotals, progressDirects) {\n      _defineProperty(this, \"task\", void 0);\n      _defineProperty(this, \"intl\", void 0);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor, this);\n      _initializerDefineProperty(this, \"children\", _descriptor2, this);\n      _initializerDefineProperty(this, \"expanded\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isDirect\", _descriptor4, this);\n      _initializerDefineProperty(this, \"costTotal\", _descriptor5, this);\n      _initializerDefineProperty(this, \"progressDirect\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_isComplete\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_progress\", _descriptor8, this);\n      this.task = task;\n      this.isDirect = isDirect;\n      this.numberFormat = numberFormat;\n      this.intl = intl;\n      this.costTotal = costTotals.find(item => item.id === task.id);\n      this.progressDirect = progressDirects.find(item => item.id === task.id);\n      if (task.activeChildren.length && !isDirect) {\n        (0, _object.set)(this, 'children', task.activeChildren.sortBy('path').map(c => new TaskContainer(intl, numberFormat, c, false, costTotals, progressDirects)));\n        this.children.unshift(new TaskContainer(intl, numberFormat, task, true, costTotals, progressDirects));\n      }\n    }\n    toJSON() {\n      return {\n        task: {\n          id: this.task.id,\n          project: this.task.belongsTo('project').id()\n        },\n        progress: this.progress,\n        forecastManHours: this.forecastManHours,\n        actualManHours: this.manHoursActual,\n        children: this.children?.filter(t => t.task.canManageTaskProgress)\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"numberFormat\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"expanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isDirect\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"costTotal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"progressDirect\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"_isComplete\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"isDirty\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"isDirty\"), _class.prototype), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"_progress\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class);\n  let _class2 = _exports.default = (_class3 = class _class3 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor9, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor0, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor1, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor10, this);\n      _initializerDefineProperty(this, \"store\", _descriptor11, this);\n      _defineProperty(this, \"getProgressList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const actions = [];\n          actions.push(project.last.value.loadBudget());\n          const draftProgressChangeSetId = project.last.value.draftProgressChangeSet.get('id');\n          if (draftProgressChangeSetId) {\n            actions.push(this.store.simpleQuery('progress-change', {\n              changeSet: draftProgressChangeSetId\n            }));\n          }\n          const progressVersionValueId = project.last.value.currentProgressVersion.get('id');\n          if (progressVersionValueId) {\n            actions.push(this.store.simpleQuery('progress-version-value', {\n              version: progressVersionValueId\n            }));\n          }\n          const tasks = yield this.store.simpleQuery('task', {\n            project: project.last.value.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          });\n          const taskIds = tasks.map(i => i.id);\n          let costTotals = [];\n          let progressDirects = [];\n          if (taskIds) {\n            [costTotals, progressDirects] = yield Promise.all([(0, _chunkCallback.default)(taskIds, _environment.default.chunkCallbackSize, ids => {\n              return this.buildaPrice.taskCostTotals({\n                filter: {\n                  simple: {\n                    _id: {\n                      $in: ids\n                    }\n                  }\n                }\n              }).then(res => res.data);\n            }).then(results => results.flat()), (0, _chunkCallback.default)(taskIds, _environment.default.chunkCallbackSize, ids => {\n              return this.buildaPrice.taskProgressDirects({\n                filter: {\n                  simple: {\n                    _id: {\n                      $in: ids\n                    }\n                  }\n                }\n              }).then(res => res.data);\n            }).then(results => results.flat())]);\n          }\n          return (tasks || []).filter(task => !task.belongsTo('parent').value()).sortBy('path').map(task => new TaskContainer(this.intl, this.numberFormat, task, false, costTotals, progressDirects));\n        }\n      }), null, \"getProgressList\", null));\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getProgressList.perform(project);\n      return {\n        progressList: this.getProgressList,\n        project\n      };\n    }\n  }, _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class3.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class3.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class3);\n});","define(\"portal/routes/entity/builda-price/projects/project/settings\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/object\", \"ember-changeset\", \"@ember/service\", \"moment\", \"portal/utils/email-validator\"], function (_exports, _asyncArrowRuntime, _route, _object, _emberChangeset, _service, _moment, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"ember-changeset\",0,\"@ember/service\",0,\"moment\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _defineProperty(this, \"projectClientPermissions\", ['hasClientRole']);\n      _defineProperty(this, \"loadProjectProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const projectRecord = project.last.value;\n          if (!this.newFeatureFlags.includesFeatureFlags(projectRecord, 'canManageProfitMargin')) {\n            return;\n          }\n          yield projectRecord.loadProfitMargins();\n          const currentProfitMargin = yield projectRecord.profitMargin;\n          if (!currentProfitMargin) {\n            const entity = yield projectRecord.entity;\n            projectRecord.profitMargin = this.store.createRecord('profit-margin', {\n              entity: entity\n            });\n          }\n        }\n      }), null, \"loadProjectProfitMargin\", null));\n      _defineProperty(this, \"createProjectChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, profitMargin) {\n          yield project.last;\n          yield profitMargin.last;\n          return (0, _emberChangeset.Changeset)(project.last.value, this.projectValidator.bind(this));\n        }\n      }), null, \"createProjectChangeset\", null));\n      _defineProperty(this, \"createProfitMarginChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, profitMargin) {\n          yield project.last;\n          if (!this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canManageProfitMargin')) return;\n          yield profitMargin.last;\n          return (0, _emberChangeset.Changeset)(project.last.value.belongsTo('profitMargin').value(), this.profitMarginValidator.bind(this));\n        }\n      }), null, \"createProfitMarginChangeset\", null));\n      _defineProperty(this, \"loadGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const accounts = yield this.accountingPlatform.loadActivePlatformGlAccounts.perform();\n          return accounts?.toArray();\n        }\n      }), null, \"loadGlAccounts\", null));\n      _defineProperty(this, \"loadXeroTrackingOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const trackingOptions = yield this.store.simpleQuery('xero-tracking-option', {\n            entity: this.sessionData.entity.id,\n            status: 'ACTIVE'\n          }, {\n            reload: true\n          });\n          return trackingOptions.sortBy('trackingOptionName');\n        }\n      }), null, \"loadXeroTrackingOptions\", null));\n    }\n    projectValidator({\n      key,\n      newValue,\n      content,\n      changes\n    }) {\n      if (key === 'name') return newValue.length > 3 || this.intl.t('validation.Please provide a name');\n      if (key === 'status') return Boolean(newValue) || this.intl.t('validation.Please provide a status');\n      if (key === 'contactEmail') return !newValue.length || (0, _emailValidator.default)(newValue) || this.intl.t('validation.Email');\n      if (key === 'startDate') {\n        const startDate = newValue || content.startDate;\n        if (!startDate) return this.intl.t('validation.Start date');\n        const completionDate = changes.completionDate || content.completionDate;\n        if (!completionDate) return true;\n        return (0, _moment.default)(newValue).isSameOrBefore(completionDate) || this.intl.t('validation.startDateMustBeEarlierThanTheCompletionDate');\n      }\n      if (key === 'completionDate') {\n        // completionDate is not required\n        if (!newValue) return true;\n        const startDate = changes.startDate || content.startDate;\n        if (!startDate) return true;\n        return (0, _moment.default)(newValue).isSameOrAfter(startDate) || this.intl.t('validation.completionDateMustBeAfterTheStartDate');\n      }\n      if (key === 'rad') {\n        if (newValue > 500) return this.intl.t('entity.builda-price.projects.project.settings.pleaseProvideARadiusNoLargerThan500m');\n        if (newValue < 100) return this.intl.t('entity.builda-price.projects.project.settings.pleaseProvideARadiusNoSmallerThan100m');\n        return true;\n      }\n    }\n    profitMarginValidator({\n      key,\n      newValue,\n      oldValue,\n      changes,\n      content\n    }) {\n      if (key === 'profitType') {\n        return Boolean(newValue || oldValue) || this.intl.t('validation.profitType');\n      }\n\n      // check for the currently selected profit type\n      let profitType = changes.profitType || content.profitType;\n      const percentage = newValue || oldValue;\n      if (key !== 'profitType' && typeof percentage !== 'number') return true;\n      if (profitType === 'MARGIN') {\n        // null is valid\n        if (percentage === null) return true;\n        return percentage < 1 || this.intl.t('validation.Please input a value less than 100');\n      }\n      return true;\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.loadProjectProfitMargin.perform(project);\n      this.createProjectChangeset.perform(project, this.loadProjectProfitMargin);\n      this.createProfitMarginChangeset.perform(project, this.loadProjectProfitMargin);\n      this.loadGlAccounts.perform();\n      if (this.xeroIntegration.ready) {\n        this.loadXeroTrackingOptions.perform();\n      }\n      return {\n        project,\n        loadProjectProfitMargin: this.loadProjectProfitMargin,\n        projectChangeset: this.createProjectChangeset,\n        profitMarginChangeset: this.createProfitMarginChangeset,\n        glAccounts: this.loadGlAccounts,\n        xeroTrackingOptions: this.loadXeroTrackingOptions\n      };\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.clearAddressSuggestions();\n    }\n    willTransition() {\n      const profitMargin = this.currentModel.project.last.value?.safeBelongsToValue('profitMargin');\n      if (profitMargin?.isNew) {\n        // Detach the placeholder so it cannot later serialize with a null id.\n        this.currentModel.project.last.value.profitMargin = null;\n        profitMargin.destroyRecord();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/stage-payments\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageNumber: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [25, 50, 75, 100, 125, 150, 200]);\n      _defineProperty(this, \"getStagePayments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, pageNumber, pageSize, _sortBy, sortDirection, status) {\n          yield project.last;\n          const sortMap = new Map([['Name', 'name'], ['Due date', 'dueDate'], ['Value', 'value'], ['Status', 'status'], ['dateCreated', 'dateCreated'], ['Stage number', 'stageNumber']]);\n          const filter = {\n            and: [{\n              field: 'project',\n              op: 'EQ',\n              value: project.last.value.id\n            }, {\n              field: 'entity',\n              op: 'EQ',\n              value: project.last.value.belongsTo('entity').id()\n            }]\n          };\n          if (status !== 'ALL') filter.and.push({\n            field: 'status',\n            op: 'EQ',\n            value: status\n          });\n          const sortBy = _sortBy && _sortBy.split(',').map(item => {\n            const normalizedKey = item.replace('-', '');\n            const value = sortMap.get(normalizedKey);\n            return item.includes('-') ? `-${value}` : value;\n          }).filter(Boolean).join(',');\n          const stagePayments = yield this.store.query('stage-payment', {\n            filter,\n            include: 'questions,tasks.task',\n            sort: Array.isArray(sortBy) ? sortBy.map(item => sortDirection === 'desc' ? `-${item}` : item).join(',') : sortDirection === 'desc' ? `-${sortBy}` : sortBy,\n            page: {\n              number: pageNumber || Number(1),\n              size: pageSize || this.pageSizes[0]\n            }\n          });\n          return stagePayments;\n        }\n      }), null, \"getStagePayments\", null));\n      _defineProperty(this, \"getProgressVersionValues\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, stagePayments) {\n          yield project.last;\n          yield stagePayments.last;\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: project.last.value.belongsTo('entity').id()\n            }, {\n              field: 'version',\n              op: 'EQ',\n              value: project.last.value.belongsTo('currentProgressVersion').id()\n            }]\n          };\n          const progressVersionValues = yield this.store.query('progress-version-value', {\n            filter\n          });\n          return progressVersionValues;\n        }\n      }), null, \"getProgressVersionValues\", null));\n      _defineProperty(this, \"getStagePaymentsValues\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const values = yield this.buildaPrice.stagePaymentsValues(project.last.value.id);\n          return values;\n        }\n      }), null, \"getStagePaymentsValues\", null));\n      _defineProperty(this, \"loadProjectStagePaymentOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          yield project.last.value.loadStagePaymentOptions();\n          if (!project.last.value.belongsTo('stagePaymentOption').value()) {\n            project.last.value.stagePaymentOption = this.store.createRecord('stage-payment-option', {\n              entity: this.sessionData.entity\n            });\n          }\n        }\n      }), null, \"loadProjectStagePaymentOptions\", null));\n      _defineProperty(this, \"getStageRelatedInvoices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (stagePayments) {\n          yield stagePayments.last;\n          const stages = stagePayments.last.value.mapBy('id');\n          if (!stages.length) return [];\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'stagePayment',\n              op: 'IN',\n              value: stages\n            }]\n          };\n          const invoices = yield this.store.query('invoice', {\n            filter,\n            sort: '-dateCreated'\n          }).then(res => res.toArray());\n          return invoices;\n        }\n      }), null, \"getStageRelatedInvoices\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageNumber = 1,\n      sortBy,\n      sortDirection = 'asc',\n      status = 'ALL'\n    }) {\n      sortBy = [sortBy, 'Stage number'].filter(Boolean).join(',');\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getStagePayments.perform(project, pageNumber, pageSize, sortBy, sortDirection, status);\n      this.getProgressVersionValues.perform(project, this.getStagePayments);\n      this.getStagePaymentsValues.perform(project);\n      this.loadProjectStagePaymentOptions.perform(project);\n      this.getStageRelatedInvoices.perform(this.getStagePayments);\n      return {\n        stagePayments: this.getStagePayments,\n        project,\n        pageSize: Number(pageSize),\n        pageNumber: Number(pageNumber),\n        pageSizes: this.pageSizes,\n        progressVersionValues: this.getProgressVersionValues,\n        sortBy: sortBy,\n        sortDirection: sortDirection,\n        status: status,\n        stagePaymentsValues: this.getStagePaymentsValues,\n        stagePaymentOptions: this.loadProjectStagePaymentOptions,\n        invoices: this.getStageRelatedInvoices\n      };\n    }\n    setupController(controller, model) {\n      super.setupController(controller, model);\n      controller.selectedStages = new Set();\n    }\n    willTransition() {\n      const stagePaymentOption = this.currentModel.project.last.value?.belongsTo('stagePaymentOption').value();\n      if (stagePaymentOption?.isNew) stagePaymentOption.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _route, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.TaskContainer = void 0;\n  var _class, _descriptor, _descriptor2, _class3, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let TaskContainer = _exports.TaskContainer = (_class = class TaskContainer {\n    constructor(task) {\n      _defineProperty(this, \"task\", void 0);\n      _initializerDefineProperty(this, \"children\", _descriptor, this);\n      _initializerDefineProperty(this, \"expanded\", _descriptor2, this);\n      this.task = task;\n      if (task.activeChildren.length) {\n        this.children = task.activeChildren.sortBy('path').map(c => new TaskContainer(c));\n      }\n    }\n    toJSON() {\n      return {\n        task: {\n          id: this.task.id,\n          status: this.task.status,\n          path: this.task.path,\n          project: this.task.belongsTo('project').id(),\n          timesheetStatus: this.task.timesheetStatus,\n          parent: this.task.belongsTo('parent').id(),\n          entity: this.task.belongsTo('entity').id()\n        },\n        children: this.children?.toArray()\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"expanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n  function removeDeletedTasks(list) {\n    return list.reduce((list, c) => {\n      // this assumes that when you delete a parent all the children are deleted\n      // if this changes, this code will need to change as well\n      if (\n      // we are unloading records from store as part of delete process,\n      // only way we can check task is deleted to check there store for its presence by using peekRecord\n      !this.store.peekRecord('task', c.task.id) || ['DRAFT_DELETED', 'DELETED'].includes(c.task.status)) return list;\n      if (c.children) c.children = removeDeletedTasks.bind(this)(c.children);\n      return [...list, c];\n    }, []);\n  }\n\n  /**\n   * Copies each matching container's expanded state from the previous tree into a\n   * newly built tree. Tasks are matched recursively by ID, so the state survives\n   * refreshes even when the TaskContainer instances have been replaced.\n   *\n   * Example:\n   *   taskList:         [{ task: { id: '1' }, expanded: false }]\n   *   previousTaskList: [{ task: { id: '1' }, expanded: true }]\n   *   result:           [{ task: { id: '1' }, expanded: true }]\n   */\n  function mergeTreeState(taskList = [], previousTaskList = []) {\n    const previousContainers = new Map();\n    const addPreviousContainers = (containers = []) => {\n      containers.forEach(container => {\n        previousContainers.set(container.task.id, container);\n        if (container.children?.length) addPreviousContainers(container.children);\n      });\n    };\n    const applyPreviousState = (containers = []) => {\n      containers.forEach(container => {\n        const previousContainer = previousContainers.get(container.task.id);\n        if (previousContainer) container.expanded = previousContainer.expanded;\n        if (container.children?.length) applyPreviousState(container.children);\n      });\n    };\n    addPreviousContainers(previousTaskList);\n    applyPreviousState(taskList);\n    return taskList;\n  }\n  let _class2 = _exports.default = (_class3 = class _class3 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId, {\n            reload: true,\n            adapterOptions: {\n              fields: {\n                projects: '_meta.canDelete'\n              }\n            }\n          });\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getTaskList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const tasks = yield this.store.query('task', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: projectId\n              }]\n            },\n            fields: {\n              tasks: '_meta.hasBudget,_meta.hasQuote,_meta.hasProducts,_meta.hasAttachments'\n            }\n          });\n          const parentTasks = tasks.toArray().filter(task => !task.belongsTo('parent').id() && ['ACTIVE', 'DRAFT_CREATED'].includes(task.status)).sortBy('path');\n          return parentTasks.map(task => new TaskContainer(task));\n        }\n      }), null, \"getTaskList\", null));\n      _defineProperty(this, \"lastProjectId\", null);\n    }\n    // this runs after the model\n    setupController(controller, model) {\n      super.setupController(...arguments);\n\n      // if we are not in the same project dump the task list state\n      if (this.lastProjectId !== model.projectId) {\n        controller.taskList = undefined;\n        this.lastProjectId = model.projectId;\n        return;\n      }\n      this.lastProjectId = model.projectId;\n      // This is intended to keep the state of the page when navigating back to it\n      // for example, when deleting a task, after the delete you are navigated back.\n      // You want to keep the state inside the TaskContainer classes (e.g \"expanded\")\n\n      const previousTaskList = controller._taskList || this.getTaskList.lastSuccessful?.value;\n      if (previousTaskList) {\n        // the task list might have changed since we last loaded, so merge UI\n        // state back by task id instead of relying on array positions.\n        const controllerTasks = removeDeletedTasks.bind(this)(previousTaskList);\n        model.taskList.last.then(() => {\n          controller.taskList = mergeTreeState(model.taskList.last.value, controllerTasks);\n        });\n      }\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project_id: projectId\n      } = this.paramsFor(projectRoute);\n\n      // reload the project incase the financials have changed\n      this.getProject.perform(projectId);\n      this.getTaskList.perform(projectId);\n      return {\n        projectId,\n        project: this.getProject,\n        taskList: this.getTaskList,\n        refresh: () => this.refresh()\n      };\n    }\n  }, _descriptor3 = _applyDecoratedDescriptor(_class3.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class3.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class3.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class3);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId, project) {\n          yield project.last;\n          const [task] = yield Promise.all([this.store.findRecord('task', taskId, {\n            adapterOptions: {\n              fields: {\n                tasks: '_meta.taskHasDependencies,_meta.hasBudget,_meta.hasQuote,_meta.hasProducts,_meta.hasAttachments'\n              }\n            }\n          }),\n          // we need to load all the parent tasks for the breadcrumbs\n          // we need to load all the children tasks for the budget and quote\n          project.last.value.reloadTasks()]);\n          return task;\n        }\n      }), null, \"getTask\", null));\n    }\n    model({\n      task_id: taskId\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getTask.perform(taskId, project);\n      return {\n        task: this.getTask\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/documents\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"getAttachments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n\n          // if you can manage the files for this task use the task relationship\n          // this way the front end will update when adding new attachments\n          if (this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canManageFileStorage')) {\n            yield task.last.value.loadAttachments();\n            return task.last.value.myAttachments;\n          }\n\n          // we cant use the task relationship because it is not filtered by ac, make the request manually\n          const filter = {\n            and: [{\n              field: 'task',\n              op: 'EQ',\n              value: task.last.value.id\n            }]\n          };\n          const attachments = yield this.store.query('link-attachment-to-task', {\n            filter,\n            include: 'attachment',\n            sort: 'dateCreated'\n          }).then(r => r.map(a => a.belongsTo('attachment').value()));\n          return attachments;\n        }\n      }), null, \"getAttachments\", null));\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          if (!this.newFeatureFlags.canManageFileStorage(task.last.value) || !this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canManageUsers')) return [];\n          const userAttributes = yield this.store.simpleQuery('user-entity-attribute', {\n            entity: this.sessionData.entity.id,\n            attribute: 'canViewEntity'\n          });\n          if (!userAttributes.length) return [];\n          const userIds = userAttributes.map(ua => ua.belongsTo('user').id());\n          const users = yield this.store.simpleQuery('user', {\n            _id: {\n              $in: userIds\n            }\n          }, {\n            include: 'entityAttributes'\n          });\n          return users;\n        }\n      }), null, \"getUsers\", null));\n    }\n    async model() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getAttachments.perform(task);\n      this.getUsers.perform(task);\n      return {\n        task,\n        attachments: this.getAttachments,\n        users: this.getUsers\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/financials\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _defineProperty(this, \"loadBudget\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          yield task.last.value.loadBudget();\n        }\n      }), null, \"loadBudget\", null));\n      _defineProperty(this, \"loadQuote\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          yield task.last.value.loadQuote();\n        }\n      }), null, \"loadQuote\", null));\n      _defineProperty(this, \"loadProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          yield task.last.value.loadProducts();\n        }\n      }), null, \"loadProducts\", null));\n      _defineProperty(this, \"loadProfitMargins\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          if (!this.canManageProfitMargin) return;\n          yield task.last.value.loadProfitMargins();\n        }\n      }), null, \"loadProfitMargins\", null));\n    }\n    get canManageProfitMargin() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageTasks');\n    }\n    model() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.loadBudget.perform(task);\n      this.loadQuote.perform(task);\n      this.loadProfitMargins.perform(task);\n      this.loadProducts.perform(task);\n      return {\n        task,\n        loadBudget: this.loadBudget,\n        loadQuote: this.loadQuote,\n        loadProfitMargins: this.loadProfitMargins\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      await task.last;\n      if (this.newFeatureFlags.includesSomeFeatureFlags(task.last.value, 'canUseTaskBudgets', 'canUseTaskQuotes')) {\n        this.router.transitionTo('entity.builda-price.projects.project.tasks.task.financials');\n      } else {\n        this.router.transitionTo('entity.builda-price.projects.project.tasks.task.settings');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      return {\n        task\n      };\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewClientReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewTaskBudgets'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewTaskQuotes'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewTaskProgress'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const canViewClientReportsAttributes = _exports.canViewClientReportsAttributes = ['canViewClientReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewFileStorage':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewProgress':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      case 'canViewClientReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canManageBudgets: () => true,\n    canManageFileStorage: () => true,\n    canManageTasks: () => true,\n    canManageQuotes: () => true,\n    canManageSchedulingReports: () => true,\n    canManageTimesheets: () => true,\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewBudgets: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewFileStorage: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewQuotes: () => true,\n    canViewProgress: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canViewInvoicingReports: () => true,\n    canViewClientReports: () => true\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (client, task) {\n          yield client.last;\n          yield task.last;\n          return (0, _emberChangeset.Changeset)({\n            canViewBudgets: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetsAttributes),\n            canViewQuotes: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuotesAttributes),\n            canViewProgress: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressAttributes),\n            canViewFileStorage: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewFileStorageAttributes),\n            canViewBudgetFinancialReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewChargeupReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewProgressReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewSchedulingReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewTasksAttributes),\n            canViewInvoicingReports: client.last.value.includesClaimsAboutProject(task.last.value.id, ...canViewInvoicingReportsAttributes),\n            canViewClientReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewClientReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getClient\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const client = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return client;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the client'));\n            this.router.transitionTo(`${this.basePath}.clients`);\n          }\n        }\n      }), null, \"getClient\", null));\n    }\n    model({\n      client_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const taskRoute = 'entity.builda-price.projects.project.tasks.task';\n      const {\n        task\n      } = this.modelFor(taskRoute);\n      this.getClient.perform(id);\n      this.getPermissionsChangeset.perform(this.getClient, task);\n      return {\n        project,\n        task,\n        basePath: this.basePath,\n        client: this.getClient,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"taskClientPermissions\", ['hasClientRole']);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getClients\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const [userProjectAttributes, userTaskAttributes] = yield Promise.all([this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasClientRole'\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: task.last.value.belongsTo('project').id()\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-task-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'task',\n                op: 'EQ',\n                value: task.last.value.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasClientRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          })]);\n          let users = userProjectAttributes.map(uea => uea.belongsTo('user').value());\n          return users.sortBy('firstName').reduce((group, client) => {\n            const hasTask = userTaskAttributes.toArray().some(upa => upa.belongsTo('user').id() === client.id);\n            (hasTask ? group.taskClients : group.unassignedClients).push(client);\n            return group;\n          }, {\n            taskClients: [],\n            unassignedClients: []\n          });\n        }\n      }), null, \"getClients\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getClients.perform(task);\n      return {\n        task,\n        project,\n        clients: this.getClients,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      // we can default to this route if user has access to users\n      if (this.newFeatureFlags.includesFeatureFlags(task.value, 'canUseBuildaPrice', 'canUseUsers')) {\n        this.router.transitionTo('entity.builda-price.projects.project.tasks.task.people.users');\n      } else if (this.newFeatureFlags.includesFeatureFlags(task.value, 'canUseBuildaPrice', 'canUseWorkers')) {\n        this.router.transitionTo('entity.builda-price.projects.project.tasks.task.people.workers');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getSubcontractors\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const [userProjectAttributes, userTaskAttributes] = yield Promise.all([this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasSubcontractorRole'\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: task.last.value.belongsTo('project').id()\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-task-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'task',\n                op: 'EQ',\n                value: task.last.value.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasSubcontractorRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          })]);\n          let users = userProjectAttributes.map(uea => uea.belongsTo('user').value());\n          return users.sortBy('firstName').reduce((group, user) => {\n            const hasTask = userTaskAttributes.toArray().some(upa => upa.belongsTo('user').id() === user.id);\n            (hasTask ? group.taskSubcontractors : group.unassignedSubcontractors).push(user);\n            return group;\n          }, {\n            taskSubcontractors: [],\n            unassignedSubcontractors: []\n          });\n        }\n      }), null, \"getSubcontractors\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getSubcontractors.perform(task);\n      return {\n        task,\n        project,\n        subcontractors: this.getSubcontractors,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManageProjectsAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageFileStorageAttributes = _exports.canManageEstimatesAttributes = _exports.canManageBudgetsAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageTaskBudgets'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageTaskQuotes'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageTaskProgress'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageTaskScheduling', 'canManageProgressReports'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewTaskBudgets'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewTaskQuotes'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewTaskProgress'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canManageEstimatesAttributes = _exports.canManageEstimatesAttributes = ['canManageEstimates'];\n  const canManageProjectsAttributes = _exports.canManageProjectsAttributes = ['canManageProjects'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canManageBudgets':\n        return true;\n      case 'canManageFileStorage':\n        return true;\n      case 'canManageProducts':\n        return true;\n      case 'canManageTasks':\n        return true;\n      case 'canManageQuotes':\n        return true;\n      case 'canManageProgress':\n        return true;\n      case 'canManageScheduling':\n        return true;\n      case 'canManageTimesheets':\n        return true;\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewFileStorage':\n        return true;\n      case 'canViewProducts':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewProgress':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canManageBudgets: () => true,\n    canManageFileStorage: () => true,\n    canManageProducts: () => true,\n    canManageTasks: () => true,\n    canManageQuotes: () => true,\n    canManageProgress: () => true,\n    canManageSchedulingReports: () => true,\n    canManageTimesheets: () => true,\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewBudgets: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewFileStorage: () => true,\n    canViewProducts: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewQuotes: () => true,\n    canViewProgress: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canViewInvoicingReports: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"getSubcontractor\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const subcontractor = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return subcontractor;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.somethingWentWrongFindingTheSubcontractor'));\n            this.router.transitionTo(`${this.basePath}.subcontractors`);\n          }\n        }\n      }), null, \"getSubcontractor\", null));\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (subcontractor, task) {\n          yield subcontractor.last;\n          yield task.last;\n          return (0, _emberChangeset.Changeset)({\n            canManageBudgets: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageBudgetsAttributes),\n            canManageFileStorage: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageFileStorageAttributes),\n            canManageProducts: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageProductsAttributes),\n            canManageTasks: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageTasksAttributes),\n            canManageQuotes: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageQuotesAttributes),\n            canManageProgress: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageProgressAttributes),\n            canManageSchedulingReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageSchedulingReportsAttributes),\n            canManageTimesheets: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageTimesheetsAttributes),\n            canViewBudgetFinancialReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewBudgets: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetsAttributes),\n            canViewChargeupReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewFileStorage: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewFileStorageAttributes),\n            canViewProducts: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProductsAttributes),\n            canViewProgressReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewQuotes: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuotesAttributes),\n            canViewProgress: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressAttributes),\n            canViewSchedulingReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewTasksAttributes),\n            canViewInvoicingReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewInvoicingReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n    }\n    model({\n      subcontractor_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const taskRoute = 'entity.builda-price.projects.project.tasks.task';\n      const {\n        task\n      } = this.modelFor(taskRoute);\n      this.getSubcontractor.perform(id);\n      this.getPermissionsChangeset.perform(this.getSubcontractor, task);\n      return {\n        project,\n        task,\n        basePath: this.basePath,\n        subcontractor: this.getSubcontractor,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/users/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const [userClientEntityAttributes, userProjectAttributes, userTaskAttributes, userSubcontractorAttributes] = yield Promise.all([this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasClientRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: task.last.value.belongsTo('project').id()\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'canViewProjects'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-task-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'task',\n                op: 'EQ',\n                value: task.last.value.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasSubcontractorRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          })]);\n          let allUsers = userProjectAttributes.map(uea => uea.belongsTo('user').value());\n          const clientIds = userClientEntityAttributes.map(uea => uea.belongsTo('user').id());\n          const subcontractorIds = userSubcontractorAttributes.map(uea => uea.belongsTo('user').id());\n\n          // filter clients from users list\n          const users = allUsers.filter(user => !clientIds.includes(user.id) && !subcontractorIds.includes(user.id));\n          return users.sortBy('firstName').reduce((group, user) => {\n            const hasTask = userTaskAttributes.toArray().some(upa => upa.belongsTo('user').id() === user.id);\n            (hasTask ? group.taskUsers : group.unassignedUsers).push(user);\n            return group;\n          }, {\n            taskUsers: [],\n            unassignedUsers: []\n          });\n        }\n      }), null, \"getUsers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getUsers.perform(task);\n      return {\n        task,\n        project,\n        users: this.getUsers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageFileStorageAttributes = _exports.canManageBudgetsAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageTaskBudgets'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageTaskQuotes'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageTaskProgress'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageTaskScheduling', 'canManageProgressReports'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewTaskBudgets'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewTaskQuotes'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewTaskProgress'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canManageBudgets':\n        return true;\n      case 'canManageFileStorage':\n        return true;\n      case 'canManageProducts':\n        return true;\n      case 'canManageTasks':\n        return true;\n      case 'canManageQuotes':\n        return true;\n      case 'canManageProgress':\n        return true;\n      case 'canManageScheduling':\n        return true;\n      case 'canManageTimesheets':\n        return true;\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewFileStorage':\n        return true;\n      case 'canViewProducts':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewProgress':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canManageBudgets: () => true,\n    canManageFileStorage: () => true,\n    canManageProducts: () => true,\n    canManageTasks: () => true,\n    canManageProgress: () => true,\n    canManageQuotes: () => true,\n    canManageSchedulingReports: () => true,\n    canManageTimesheets: () => true,\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewBudgets: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewFileStorage: () => true,\n    canViewProducts: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewQuotes: () => true,\n    canViewProgress: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canViewInvoicingReports: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user, task) {\n          yield user.last;\n          yield task.last;\n          return (0, _emberChangeset.Changeset)({\n            canManageBudgets: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageBudgetsAttributes),\n            canManageFileStorage: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageFileStorageAttributes),\n            canManageProducts: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageProductsAttributes),\n            canManageTasks: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageTasksAttributes),\n            canManageQuotes: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageQuotesAttributes),\n            canManageProgress: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageProgressAttributes),\n            canManageSchedulingReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageSchedulingReportsAttributes),\n            canManageTimesheets: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageTimesheetsAttributes),\n            canViewBudgetFinancialReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewBudgets: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetsAttributes),\n            canViewChargeupReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewFileStorage: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewFileStorageAttributes),\n            canViewProducts: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProductsAttributes),\n            canViewProgressReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewQuotes: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuotesAttributes),\n            canViewProgress: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressAttributes),\n            canViewSchedulingReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewTasksAttributes),\n            canViewInvoicingReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewInvoicingReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const user = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return user;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the user'));\n            this.router.transitionTo(`${this.basePath}.users`);\n          }\n        }\n      }), null, \"getUser\", null));\n    }\n    model({\n      user_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const taskRoute = 'entity.builda-price.projects.project.tasks.task';\n      const {\n        task\n      } = this.modelFor(taskRoute);\n      this.getUser.perform(id);\n      this.getPermissionsChangeset.perform(this.getUser, task);\n      return {\n        project,\n        task,\n        basePath: this.basePath,\n        user: this.getUser,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.workerTaskAttributes = _exports.workerProjectAttributes = _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const workerTaskAttributes = _exports.workerTaskAttributes = ['canViewTasks'];\n  const workerProjectAttributes = _exports.workerProjectAttributes = ['canViewProjects'];\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const workerProjectAttributes = yield this.store.simpleQuery('worker-project-attribute', {\n            project: task.last.value.belongsTo('project').id(),\n            entity: this.sessionData.entity.id,\n            attribute: 'canViewProjects'\n          });\n          let workerIds = workerProjectAttributes.map(wpa => wpa.belongsTo('worker').id());\n          const workers = workerIds.length ? yield this.store.simpleQuery('worker', {\n            _id: {\n              $in: workerIds\n            }\n          }, {\n            include: 'taskAttributes'\n          }).then(ws => ws.sortBy('firstName')) : [];\n          return workers.reduce((workers, worker) => {\n            const hasTask = worker.includesClaimsAboutTask(task.last.value.id, ...workerTaskAttributes);\n            if (hasTask) workers.taskWorkers.push(worker);\n            // only add active workers to unassigned list\n            else if (worker.isActive) workers.unassignedWorkers.push(worker);\n            return workers;\n          }, {\n            unassignedWorkers: [],\n            taskWorkers: []\n          });\n        }\n      }), null, \"getWorkers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getWorkers.perform(task);\n      return {\n        task,\n        workers: this.getWorkers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const worker = yield this.store.findRecord('worker', id);\n\n            // fetch workers's attributes\n            yield Promise.all([this.store.simpleQuery('worker-entity-attribute', {\n              worker: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('worker-project-attribute', {\n              worker: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('worker-task-attribute', {\n              worker: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return worker;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the worker'));\n            this.router.transitionTo(`${this.basePath}.workers`);\n          }\n        }\n      }), null, \"getWorker\", null));\n    }\n    model({\n      worker_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const taskRoute = 'entity.builda-price.projects.project.tasks.task';\n      const {\n        task\n      } = this.modelFor(taskRoute);\n      this.getWorker.perform(id);\n      return {\n        project,\n        task,\n        basePath: this.basePath,\n        worker: this.getWorker\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageIndex: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        },\n        searchTerm: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [10, 25, 50, 100]);\n      _defineProperty(this, \"getProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task, pageSize, pageIndex, sortBy, sortDirection, searchTerm) {\n          yield task.last;\n          const filters = {\n            and: [{\n              field: 'task',\n              operator: 'EQ',\n              value: task.last.value.id\n            }, {\n              field: 'entity',\n              operator: 'EQ',\n              value: task.last.value.belongsTo('entity').id()\n            }],\n            or: []\n          };\n          if (searchTerm?.length) {\n            filters.or.push({\n              field: 'description',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n            filters.or.push({\n              field: 'sku',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n          }\n          let orderBy;\n          switch (sortBy) {\n            case 'Product':\n              orderBy = 'description';\n              break;\n            case 'Supplier':\n              orderBy = 'supplierName';\n              break;\n            case 'SKU':\n              orderBy = 'sku';\n              break;\n            case 'Unit':\n              orderBy = 'unit';\n              break;\n            case 'Unit price':\n              orderBy = 'unitPrice';\n              break;\n            case 'Quantity':\n              orderBy = 'quantity';\n              break;\n            default:\n              break;\n          }\n          const taskProducts = yield this.store.query('task-product', {\n            filter: filters,\n            orderBy: orderBy || 'dateCreated',\n            orderByDirection: sortDirection || 'desc',\n            pageSize,\n            page: pageIndex\n          });\n          return taskProducts;\n        }\n      }), null, \"getProducts\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageIndex = 1,\n      sortBy = 'dateCreated',\n      sortDirection = 'desc',\n      searchTerm\n    }) {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getProducts.perform(task, Number(pageSize), Number(pageIndex), sortBy, sortDirection, searchTerm);\n      return {\n        task,\n        products: this.getProducts,\n        pageSize: Number(pageSize),\n        pageIndex: Number(pageIndex),\n        sortBy,\n        sortDirection,\n        searchTerm,\n        pageSizes: this.pageSizes\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/settings\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _object, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor5, this);\n      _defineProperty(this, \"loadTaskProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          if (!this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canManageProfitMargin')) return;\n          yield task.last.value.loadProfitMargins();\n          if (!task.last.value.belongsTo('profitMargin').value()) {\n            task.last.value.profitMargin = this.store.createRecord('profit-margin', {\n              entity: task.last.value.belongsTo('entity').value()\n            });\n          }\n        }\n      }), null, \"loadTaskProfitMargin\", null));\n      _defineProperty(this, \"createTaskChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task, profitMargin) {\n          yield task.last;\n          yield profitMargin.last;\n          return (0, _emberChangeset.Changeset)(task.last.value, this.taskValidator.bind(this));\n        }\n      }), null, \"createTaskChangeset\", null));\n      _defineProperty(this, \"createProfitMarginChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task, profitMargin) {\n          yield task.last;\n          if (!this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canManageProfitMargin')) return;\n          yield profitMargin.last;\n          return (0, _emberChangeset.Changeset)(task.last.value.belongsTo('profitMargin').value(), this.profitMarginValidator.bind(this));\n        }\n      }), null, \"createProfitMarginChangeset\", null));\n      _defineProperty(this, \"loadGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const accounts = yield this.accountingPlatform.loadActivePlatformGlAccounts.perform();\n          return accounts?.toArray();\n        }\n      }), null, \"loadGlAccounts\", null));\n    }\n    taskValidator({\n      key,\n      newValue\n    }) {\n      if (key === 'name') return newValue.length > 0 || this.intl.t('validation.Please provide a name');\n    }\n    profitMarginValidator({\n      key,\n      newValue,\n      oldValue,\n      changes,\n      content\n    }) {\n      if (key === 'profitType') {\n        return Boolean(newValue || oldValue) || this.intl.t('validation.profitType');\n      }\n\n      // check for the currently selected profit type\n      let profitType = changes.profitType || content.profitType;\n      const percentage = newValue || oldValue;\n      if (key !== 'profitType' && typeof percentage !== 'number') return true;\n      if (profitType === 'MARGIN') {\n        // null is valid\n        if (percentage === null) return true;\n        return percentage < 1 || this.intl.t('validation.Please input a value less than 100');\n      }\n      return true;\n    }\n    async model() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.loadTaskProfitMargin.perform(task);\n      this.createTaskChangeset.perform(task, this.loadTaskProfitMargin);\n      this.createProfitMarginChangeset.perform(task, this.loadTaskProfitMargin);\n      this.loadGlAccounts.perform();\n      return {\n        task,\n        loadTaskProfitMargin: this.loadTaskProfitMargin,\n        taskChangeset: this.createTaskChangeset,\n        profitMarginChangeset: this.createProfitMarginChangeset,\n        glAccounts: this.loadGlAccounts\n      };\n    }\n    willTransition() {\n      const profitMargin = this.currentModel.task.last.value?.safeBelongsToValue('profitMargin');\n      if (profitMargin?.isNew) {\n        // Detach the placeholder so it cannot later serialize with a null id.\n        this.currentModel.task.last.value.profitMargin = null;\n        profitMargin.destroyRecord();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/forecast-breakdown\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        },\n        excludedProjectIds: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getForecastReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate = new Date(), excludedProjectIds, status = 'OPEN') {\n          const filter = {\n            entity: this.sessionData.entity.id\n          };\n          if (status && status !== 'ALL') filter.status = status;\n          if (excludedProjectIds && excludedProjectIds.length) filter._id = {\n            $nin: excludedProjectIds\n          };\n          const linkToProject = this.newFeatureFlags.includesFeatureFlags('canUseProjectForecastReport');\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.company.forecast-breakdown.Forecast report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Status')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast hours'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Avg hourly cost'),\n                  tooltip: this.intl.t('shared.reports.avgHourlyCostTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast labour'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast materials'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast subcontractors'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Sums'),\n                  tooltip: this.intl.t('shared.reports.forecastReportSumsTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast total'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'WORKERS_AVG_COST',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  }\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: linkToProject ? {\n                  route: 'entity.builda-price.reports.projects.project.forecast-breakdown',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'PROPERTY',\n                key: 'status',\n                humanEnums: true\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'WORKERS_AVG_COST',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getForecastReport\", null));\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id\n          });\n          return projects.sortBy('sortIndex');\n        }\n      }), null, \"getProjects\", null));\n    }\n    model({\n      selectedDate,\n      status = 'OPEN',\n      excludedProjectIds\n    }) {\n      this.getProjects.perform();\n      this.getForecastReport.perform(selectedDate, excludedProjectIds, status);\n      return {\n        forecastTable: this.getForecastReport,\n        projects: this.getProjects\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/invoicing\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.company.invoicing');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getInvoiceReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate) {\n          const filter = {\n            entity: this.sessionData.entity.id,\n            status: {\n              $eq: 'OPEN'\n            }\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const summaryMetricSubject = {\n            resourceName: 'entities',\n            filter: {\n              _id: this.sessionData.entity.id\n            }\n          };\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.company.invoicing.Invoicing report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              name: this.intl.t('common.Summary'),\n              index: 1,\n              width: 2,\n              height: 2,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Total billable')\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Total invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Billable remaining')\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.company.invoicing.Billable used'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Billable'),\n                  metric: 'TEXT'\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'INVOICEABLE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL'\n              }]]\n            }, {\n              name: this.intl.t('common.Projects'),\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Total billable'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Billable to date'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Invoiced'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Billable remaining'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'INVOICEABLE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'INVOICED_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'INVOICEABLE_TOTAL_REMAINING',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.invoicing',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getInvoiceReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      this.getInvoiceReport.perform(selectedDate);\n      return {\n        basePath: this.basePath,\n        invoiceTable: this.getInvoiceReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/labour-hours\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _route, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.company.labour-hours');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, status) {\n          const filter = {\n            entity: this.sessionData.entity.id\n          };\n          if (status !== 'ALL') filter.status = status;\n          const linkToProject = this.basePath?.includes('embed') ? false : this.newFeatureFlags.includesFeatureFlags('canUseProjectLabourHourReport');\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('shared.reports.Labour hours report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: {\n                  resourceName: 'projects',\n                  filter\n                },\n                metric: 'FORECAST_MANHOURS_TOTAL'\n              }]]\n            }, {\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'COST_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'VARIANCE_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: linkToProject ? {\n                  route: 'entity.builda-price.reports.projects.project.labour-hours',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n    }\n    model({\n      selectedDate,\n      status = 'OPEN'\n    }) {\n      this.getAdHocReport.perform(selectedDate, status);\n      return {\n        entity: this.sessionData.entity,\n        entityLevelReport: this.getAdHocReport,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/notes\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.company');\n      _defineProperty(this, \"queryParams\", {\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        filterByDate: {\n          refreshModel: true\n        },\n        projectIds: {\n          refreshModel: true\n        },\n        workerIds: {\n          refreshModel: true\n        },\n        invoiceId: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          return this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          }, {\n            sort: 'sortIndex'\n          });\n        }\n      }), null, \"getProjects\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          return this.store.simpleQuery('worker', {\n            entity: this.sessionData.entity.id,\n            isActive: true\n          }, {\n            sort: 'firstName,lastName'\n          });\n        }\n      }), null, \"getWorkers\", null));\n      _defineProperty(this, \"getNoteReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (_startDate, _endDate, _projectIds, _workerIds, filterByDate, invoiceId) {\n          const projectIds = _projectIds?.split(',');\n          const workerIds = _workerIds?.split(',');\n          const startDate = new Date(_startDate);\n          const endDate = new Date(_endDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const linkToTimesheet = !this.basePath.includes('embed');\n          const filter = {\n            $and: [{\n              entityId: {\n                $eq: this.sessionData.entity.id\n              }\n            }]\n          };\n          if (invoiceId) {\n            filter.$and.push({\n              linkedInvoiceIds: {\n                $like: `%${invoiceId}%`\n              }\n            });\n          } else {\n            if (projectIds) {\n              filter.$and.push({\n                projectId: {\n                  $in: projectIds\n                }\n              });\n            }\n            if (workerIds) {\n              filter.$and.push({\n                workerId: {\n                  $in: workerIds\n                }\n              });\n            }\n            if (filterByDate) {\n              const dayEndDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n              const dayStartDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n              filter.$and.push({\n                date: {\n                  $lte: dayEndDate,\n                  $gte: dayStartDate\n                }\n              });\n            }\n          }\n          const noteReport = {\n            index: 1,\n            width: 12,\n            elementType: 'NOTE_TIMELINE',\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'timesheet-note-views',\n              sortKey: 'date',\n              sortDirection: 'DESC',\n              filter\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'date'\n            }, {\n              metric: 'PROPERTY',\n              key: 'workerName'\n            }, [{\n              metric: 'PROPERTY',\n              key: 'projectName'\n            }, {\n              metric: 'PROPERTY',\n              key: 'taskName'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'timesheet.duration'\n            }], {\n              metric: 'PROPERTY',\n              key: 'note'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'attachments.file'\n            }, {\n              metric: 'PROPERTY',\n              key: 'noteType'\n            }]]\n          };\n          if (linkToTimesheet) {\n            noteReport.metrics[0].push({\n              metric: 'TEXT',\n              valueOverride: 'View timesheet',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.timesheets.timesheet',\n                queryParams: {\n                  date: {\n                    key: 'date'\n                  },\n                  worker: {\n                    key: 'workerId'\n                  }\n                }\n              }\n            });\n          }\n          const report = {\n            name: 'Notes',\n            subjects: [noteReport]\n          };\n          if (!invoiceId && filterByDate) {\n            report.dateRange = {\n              startDate,\n              endDate\n            };\n          }\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          return loadedReport;\n        }\n      }), null, \"getNoteReport\", null));\n    }\n    model({\n      startDate,\n      endDate,\n      projectIds,\n      workerIds,\n      invoiceId,\n      filterByDate\n    }) {\n      this.getProjects.perform();\n      this.getWorkers.perform();\n      this.getNoteReport.perform(startDate, endDate, projectIds, workerIds, filterByDate, invoiceId);\n      return {\n        basePath: this.basePath,\n        noteReport: this.getNoteReport,\n        getProjects: this.getProjects,\n        getWorkers: this.getWorkers\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/position\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.company');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, status) {\n          const filter = {\n            entity: this.sessionData.entity.id\n          };\n          if (status !== 'ALL') filter.status = status;\n          const linkToProject = this.basePath?.includes('embed') ? false : this.newFeatureFlags.includesFeatureFlags('canUseProjectPositionReport');\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const financialBreakDown = {\n            name: this.intl.t('shared.reports.Financial breakdown'),\n            index: 4,\n            width: 7,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Total'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'projects',\n              filter\n            },\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Budget')\n            }, {\n              metric: 'BUDGET_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.reports.Actual')\n            }, {\n              metric: 'COST_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'COST_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Used')\n            }, {\n              metric: 'BUDGET_LABOUR_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'BUDGET_TOTAL_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Quote')\n            }, {\n              metric: 'QUOTE_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Chargeup')\n            }, {\n              metric: 'CHARGEUP_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'CHARGEUP_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          };\n          if (this.newFeatureFlags.includesFeatureFlags('canUseEntityInvoicingReport')) {\n            financialBreakDown.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced')\n            }, {\n              metric: 'INVOICED_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n          }\n          const report = {\n            name: this.intl.t('shared.reports.Position report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast used'),\n              elementType: 'BIG_TEXT',\n              borderStyle: 'BORDER',\n              axes: {\n                label: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.report.The amount of your forecast used')\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'FINANCIAL_PROGRESS_TOTAL'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL'\n                }], [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_TOTAL'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: {\n                  resourceName: 'projects',\n                  filter\n                },\n                metric: 'FORECAST_BUDGET'\n              }]]\n            }, financialBreakDown, {\n              name: this.intl.t('common.Labour hours'),\n              index: 5,\n              width: 3,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Budget')\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Used')\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast'),\n                tooltip: 'Forecasted from your progress'\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Remaining'),\n                tooltip: 'The difference between your forecast and your actual'\n              }, {\n                metric: 'REMAINING_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                tooltip: 'The difference between your forecast and your budget'\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0\n              }]]\n            }, {\n              name: this.intl.t('common.Projects'),\n              index: 6,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Status')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1,\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'VARIANCE_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: linkToProject ? {\n                  route: 'entity.builda-price.reports.projects.project.position',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'PROPERTY',\n                key: 'status',\n                humanEnums: true\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                linkTo: linkToProject ? {\n                  route: 'entity.builda-price.reports.projects.project.budget',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n    }\n    model({\n      selectedDate,\n      status = 'OPEN'\n    }) {\n      this.getAdHocReport.perform(selectedDate, status);\n      return {\n        entity: this.sessionData.entity,\n        entityLevelReport: this.getAdHocReport,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/profit-margins\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        },\n        excludedProjectIds: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.company.profit-margins');\n      _defineProperty(this, \"getProfitMarginsReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate = new Date(), excludedProjectIds, status = 'OPEN') {\n          const filter = {\n            entity: this.sessionData.entity.id\n          };\n          if (status !== 'ALL') filter.status = status;\n          if (excludedProjectIds && excludedProjectIds.length) filter._id = {\n            $nin: excludedProjectIds\n          };\n          const linkToProject = this.basePath?.includes('embed') ? false : this.newFeatureFlags.includesFeatureFlags('canUseProjectProfitMarginReport');\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.company.profit-margins.Profit margin report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Status')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast margin'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.forecastMarginPercentage'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0,\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT_MARGIN',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0,\n                  showPositiveNegativeIndicator: true,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: linkToProject ? {\n                  route: 'entity.builda-price.reports.projects.project.profit-margins',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'PROPERTY',\n                key: 'status',\n                humanEnums: true\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'GROSS_PROFIT',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                dashZero: true\n              }, {\n                metric: 'GROSS_PROFIT_MARGIN',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                showPositiveNegativeIndicator: true,\n                dashZero: true\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getProfitMarginsReport\", null));\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id\n          });\n          return projects.sortBy('sortIndex');\n        }\n      }), null, \"getProjects\", null));\n    }\n    model({\n      selectedDate,\n      status = 'OPEN',\n      excludedProjectIds\n    }) {\n      this.getProjects.perform();\n      this.getProfitMarginsReport.perform(selectedDate, excludedProjectIds, status);\n      return {\n        profitMarginsTable: this.getProfitMarginsReport,\n        projects: this.getProjects,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/wip\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        },\n        excludedProjectIds: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getWipReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects, selectedDate = new Date(), excludedProjectIds, status = 'OPEN') {\n          yield projects.last;\n          const hasValueProjects = projects.last.value.filter(project => project.belongsTo('currentBudgetVersion').id() || project.belongsTo('currentQuoteVersion').id());\n          const filter = {\n            entity: this.sessionData.entity.id,\n            _id: {\n              $in: hasValueProjects.map(project => project.id),\n              $nin: []\n            }\n          };\n          if (status && status !== 'ALL') filter.status = status;\n          if (excludedProjectIds && excludedProjectIds.length) filter._id.$nin = excludedProjectIds || [];\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.company.wip.Work in progress report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Project name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Costs to date'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Forecast costs'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Forecast gross profit'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Gross profit margin'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Current gross profit'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Invoiced to date'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.WIP position'),\n                  tooltip: this.intl.t('entity.builda-price.reports.company.wip.wipPositionExplanation'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Net WIP')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'WIP_POSITION',\n                  lowerLimit: 0,\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }], [{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Current asset')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'WIP_ASSET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }], [{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Current liability')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'WIP_LIABILITY',\n                  lowerLimit: 0,\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name'\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_COST',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WIP_BUDGET_FORECAST_USED',\n                upperLimit: 1,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WIP_FORECAST_GROSS_PROFIT',\n                lowerLimit: 0,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WIP_GROSS_PROFIT_MARGIN',\n                lowerLimit: 0,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WIP_CURRENT_GROSS_PROFIT',\n                lowerLimit: 0,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'WIP_POSITION',\n                lowerLimit: 0,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getWipReport\", null));\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id\n          });\n          return projects.sortBy('sortIndex');\n        }\n      }), null, \"getProjects\", null));\n    }\n    model({\n      selectedDate,\n      status = 'OPEN',\n      excludedProjectIds\n    }) {\n      this.getProjects.perform();\n      this.getWipReport.perform(this.getProjects, selectedDate, excludedProjectIds, status);\n      return {\n        wipReportTable: this.getWipReport,\n        projects: this.getProjects\n      };\n    }\n    resetController(controller, isExiting) {\n      if (isExiting) {\n        controller._excludedProjects = null;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    beforeModel(transition) {\n      if (transition.targetName === this.fullRouteName) this.router.transitionTo('entity.builda-price');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", {\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (status) {\n          const filter = {\n            entity: this.sessionData.entity.id\n          };\n          if (status !== 'ALL') filter.status = status;\n          const projects = yield this.store.simpleQuery('project', filter);\n          return projects.toArray();\n        }\n      }), null, \"getProjects\", null));\n      _defineProperty(this, \"getProjectsData\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (status, projects) {\n          yield projects.last;\n\n          // find projects we have report permission for\n          const projectIds = projects.last.value.filter(p => this.newFeatureFlags.includesSomeFeatureFlags(p, 'canUseProjectQuoteReport', 'canUseProjectCostReport', 'canUseProjectBudgetReport', 'canUseProjectForecastReport', 'canUseProjectProfitMarginReport', 'canUseProjectChargeupReport', 'canUseProjectPositionReport', 'canUseProjectLabourHourReport', 'canUseProjectClientReport')).map(p => p.id);\n          const report = {\n            name: this.intl.t('common.Projects'),\n            subjects: [{\n              index: 1,\n              elementType: 'PROJECTS_TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'col-3 d-none d-sm-block'\n                  }]\n                }]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter: {\n                  status: status === 'ALL' ? undefined : status,\n                  _id: {\n                    $in: projectIds\n                  }\n                }\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                classes: [{\n                  class: 'col-sm-3 fs-2 report-engine-table__text-dark'\n                }],\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project',\n                  modelKeys: ['_id']\n                }\n              }]]\n            }]\n          };\n          if (this.newFeatureFlags.userIsEntityAdmin || this.sessionData.user?.includesSomeClaimsAboutEntity(this.sessionData.entity?.id, 'canViewProgressReports', 'canManageProgressReports')) {\n            report.subjects[0].axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Progress'),\n              classes: [{\n                class: 'col-2 fw-bold position-relative d-none d-sm-block'\n              }]\n            });\n            report.subjects[0].metrics[0].push({\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'col-2 fs-5 d-none d-sm-block'\n              }]\n            });\n          }\n          if (this.newFeatureFlags.userIsEntityAdmin || this.sessionData.user?.includesSomeClaimsAboutEntity(this.sessionData.entity?.id, 'canViewBudgetFinancialReports', 'canManageBudgetReports')) {\n            report.subjects[0].axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Budget'),\n              classes: [{\n                class: 'col-2 fw-bold position-relative d-none d-sm-block'\n              }]\n            });\n            report.subjects[0].metrics[0].push({\n              metric: 'BUDGET_TOTAL',\n              classes: [{\n                class: 'col-2 fs-5 d-none d-sm-block'\n              }]\n            });\n          }\n          if (this.newFeatureFlags.userIsEntityAdmin || this.sessionData.user?.includesSomeClaimsAboutEntity(this.sessionData.entity?.id, 'canViewCostFinancialReports', 'canManageCostReports')) {\n            report.subjects[0].axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.reports.Actual'),\n              classes: [{\n                class: 'col-2 fw-bold position-relative d-none d-sm-block'\n              }]\n            });\n            report.subjects[0].metrics[0].push({\n              metric: 'COST_TOTAL',\n              classes: [{\n                class: 'col-2 fs-5 d-none d-sm-block'\n              }]\n            });\n          }\n          if (this.newFeatureFlags.userIsEntityAdmin || this.sessionData.user?.includesSomeClaimsAboutEntity(this.sessionData.entity?.id, 'canViewCostFinancialReports', 'canManageCostReports') && this.sessionData.user?.includesSomeClaimsAboutEntity(this.sessionData.entity?.id, 'canViewBudgetFinancialReports', 'canManageBudgetReports')) {\n            report.subjects[0].axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Used'),\n              classes: [{\n                class: 'col-1 fw-bold position-relative d-none d-sm-block'\n              }]\n            });\n            report.subjects[0].metrics[0].push({\n              metric: 'BUDGET_TOTAL_USED',\n              classes: [{\n                class: 'col-1 fs-5 d-none d-sm-block'\n              }],\n              upperLimit: 1\n            });\n          }\n          report.subjects[0].axes.thead.push({\n            metric: 'TEXT',\n            valueOverride: this.intl.t('common.Status'),\n            classes: [{\n              class: 'col-2 fw-bold text-center position-relative d-none d-sm-block'\n            }]\n          });\n          report.subjects[0].metrics[0].push({\n            metric: 'PROPERTY',\n            key: 'status',\n            humanEnums: true,\n            classes: [{\n              class: 'col-2 justify-content-center d-none d-sm-flex report-engine-table__badge'\n            }, {\n              key: 'status',\n              humanEnums: true,\n              case: 'OPEN',\n              class: 'report-engine-table__success text-white'\n            }, {\n              key: 'status',\n              humanEnums: true,\n              case: 'HELD',\n              class: 'report-engine-table__warning text-dark'\n            }, {\n              key: 'status',\n              humanEnums: true,\n              case: 'CLOSED',\n              class: 'report-engine-table__danger text-white'\n            }, {\n              key: 'status',\n              humanEnums: true,\n              case: 'ARCHIVED',\n              class: 'report-engine-table__secondary text-white'\n            }]\n          });\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          return loadedReport;\n        }\n      }), null, \"getProjectsData\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model({\n      status = 'OPEN'\n    }) {\n      this.getProjects.perform(status);\n      this.getProjectsData.perform(status, this.getProjects);\n      return {\n        projectsData: this.getProjectsData\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          try {\n            const project = yield this.store.findRecord('project', projectId, {\n              reload: true\n            });\n            return project;\n          } catch (_) {\n            // this means we either don't have access to the project or the project doesn't exist\n            // go back to the projects list\n            this.router.transitionTo('entity.builda-price.reports.projects');\n          }\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getOpenProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          });\n          return projects.sortBy('sortIndex').toArray();\n        }\n      }), null, \"getOpenProjects\", null));\n    }\n    model({\n      project_id: projectId\n    }) {\n      this.getProject.perform(projectId);\n      this.getOpenProjects.perform();\n      return {\n        project: this.getProject,\n        openProjects: this.getOpenProjects\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/access\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        filterByDate: {\n          refreshModel: true\n        },\n        workerIds: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          return this.store.simpleQuery('worker', {\n            entity: this.sessionData.entity.id,\n            isActive: true\n          }, {\n            sort: 'firstName,lastName'\n          });\n        }\n      }), null, \"getWorkers\", null));\n      _defineProperty(this, \"getReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, _startDate, _endDate, filterByDate, workerIds) {\n          yield project.last;\n          const startDate = (0, _moment.default)(_startDate).startOf('day').toDate();\n          const endDate = (0, _moment.default)(_endDate).endOf('day').toDate();\n          const filter = {\n            $and: [{\n              entityId: {\n                $eq: this.sessionData.entity.id\n              },\n              projectId: {\n                $eq: project.last.value.id\n              }\n            }]\n          };\n          if (filterByDate) {\n            filter.$and.push({\n              entryTime: {\n                $gte: startDate,\n                $lte: endDate\n              }\n            });\n          }\n          if (workerIds?.length) {\n            filter.$and.push({\n              workerId: {\n                $in: workerIds\n              }\n            });\n          }\n          const occupancyFilter = {\n            $and: [{\n              entityId: {\n                $eq: this.sessionData.entity.id\n              },\n              projectId: {\n                $eq: project.last.value.id\n              }\n            }]\n          };\n          if (workerIds?.length) {\n            occupancyFilter.$and.push({\n              workerId: {\n                $in: workerIds\n              }\n            });\n          }\n          const occupancyReport = {\n            name: 'On site',\n            index: 1,\n            width: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'project-occupancy-views',\n              sortKey: 'entryTime',\n              sortDirection: 'DESC',\n              // don't filter the on site report by date\n              filter: occupancyFilter\n            },\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: 'Name'\n              }, {\n                metric: 'TEXT',\n                valueOverride: 'Entry time'\n              }]\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'actorName'\n            }, {\n              metric: 'PROPERTY',\n              key: 'entryTime'\n            }]]\n          };\n          const accessReport = {\n            name: 'Access history',\n            index: 2,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'project-access-log-views',\n              sortKey: 'entryTime',\n              sortDirection: 'DESC',\n              filter\n            },\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: 'Name'\n              }, {\n                metric: 'TEXT',\n                valueOverride: 'Entry time'\n              }, {\n                metric: 'TEXT',\n                valueOverride: 'Exit time'\n              }, {\n                metric: 'TEXT',\n                valueOverride: 'Time on site'\n              }]\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'actorName'\n            }, {\n              metric: 'PROPERTY',\n              key: 'entryTime'\n            }, {\n              metric: 'PROPERTY',\n              key: 'exitTime'\n            }, {\n              metric: 'PROPERTY',\n              key: 'duration'\n            }]]\n          };\n          const report = {\n            name: 'Access',\n            subjects: [occupancyReport, accessReport]\n          };\n          if (filterByDate) {\n            report.dateRange = {\n              startDate,\n              endDate\n            };\n          }\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          return loadedReport;\n        }\n      }), null, \"getReport\", null));\n    }\n    model({\n      startDate,\n      endDate,\n      filterByDate,\n      workerIds\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getWorkers.perform();\n      this.getReport.perform(this.getProject, startDate, endDate, filterByDate, workerIds?.split(','));\n      return {\n        project: this.getProject,\n        tasks: this.getProjectTasks,\n        // Note: this property is returned but not defined in this snippet\n        workers: this.getWorkers,\n        basePath: this.basePath,\n        report: this.getReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/budget/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getBudgetReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const canUseProjectBudgetReport = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseBudgetReport');\n          const canUseCostReports = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseProjectCostReport');\n          const summaryMetricSubject = canUseProjectBudgetReport ? {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          } : {\n            resourceName: 'tasks',\n            filter\n          };\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.budget.Budget report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Labour'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_LABOUR'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_LABOUR'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Materials'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  label: 'Budget',\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_MATERIALS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MATERIALS'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Subcontractors'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_SUBCONTRACTORS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_SUBCONTRACTORS'\n              }]]\n            }, {\n              index: 4,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.budget.Budget total'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                valueOverride: this.intl.t('shared.reports.Actual'),\n                metric: 'TEXT'\n              }, {\n                metric: 'COST_TOTAL'\n              }]]\n            }, {\n              index: 5,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.budget.Budget distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'BUDGET_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'BUDGET_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'BUDGET_SUBCONTRACTORS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums')\n              }, {\n                metric: 'BUDGET_SUMS'\n              }]]\n            }, {\n              index: 6,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.budget.Actual distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'COST_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'COST_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'COST_SUBCONTRACTORS'\n              }]]\n            }, {\n              name: this.intl.t('common.Financials'),\n              index: 7,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Labour budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Labour actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Materials budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Materials actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Subcontractors budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Subcontractors actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Sums budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Total budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Total actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Remaining budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.costTotalTooltip')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'REMAINING_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.budget.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'BUDGET_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_LABOUR',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'ALL'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_MATERIALS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'BILLS'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_SUBCONTRACTORS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'BILLS'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'REMAINING_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getBudgetReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getBudgetReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        basePath: this.basePath,\n        budgetTable: this.getBudgetReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/budget/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/budget/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.budget.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.budget.Budget report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Labour'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_LABOUR'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_LABOUR'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Materials'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  label: 'Budget',\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MATERIALS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MATERIALS'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Subcontractors'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUBCONTRACTORS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_SUBCONTRACTORS'\n              }]]\n            }, {\n              index: 4,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Budget used'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                valueOverride: this.intl.t('shared.reports.Actual'),\n                metric: 'TEXT'\n              }, {\n                metric: 'COST_TOTAL'\n              }]]\n            }, {\n              index: 5,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.budget.Budget distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'BUDGET_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'BUDGET_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'BUDGET_SUBCONTRACTORS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums')\n              }, {\n                metric: 'BUDGET_SUMS'\n              }]]\n            }, {\n              index: 6,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.budget.Actual distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'COST_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'COST_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'COST_SUBCONTRACTORS'\n              }]]\n            }, {\n              name: this.intl.t('common.Financials'),\n              index: 7,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Labour budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Labour actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Materials budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Materials actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Subcontractors budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Subcontractors actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Sums budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Total budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Total actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Remaining budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'REMAINING_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.budget.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'BUDGET_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_LABOUR',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    parentId: {\n                      valueOverride: task.last.value.id\n                    },\n                    costType: {\n                      valueOverride: 'ALL'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    }\n                  }\n                },\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_MATERIALS',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    parentId: {\n                      valueOverride: task.last.value.id\n                    },\n                    costType: {\n                      valueOverride: 'BILLS'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    }\n                  }\n                },\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_SUBCONTRACTORS',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    parentId: {\n                      valueOverride: task.last.value.id\n                    },\n                    costType: {\n                      valueOverride: 'BILLS'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    }\n                  }\n                },\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'REMAINING_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getAdHocReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        task: this.getTask,\n        basePath: this.basePath,\n        budgetTable: this.getAdHocReport,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/chargeup/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.simpleQuery('project', {\n            _id: projectId\n          });\n          return project.toArray()?.[0];\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getChargeupReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const canUseProjectChargeupReport = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseChargeupReport');\n          const summaryMetricSubject = canUseProjectChargeupReport ? {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          } : {\n            resourceName: 'tasks',\n            filter\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.chargeup.Chargeup report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Chargeup')\n              }, {\n                metric: 'CHARGEUP_TOTAL'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: summaryMetricSubject,\n                metric: 'FORECAST_CHARGEUP'\n              }]]\n            }, {\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('entity.builda-price.reports.projects.project.chargeup.chargeupTooltip')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Quote used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.costTotalTooltip')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_CHARGEUP',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.costTotalTooltip')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_QUOTE',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.chargeup.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1\n              }, {\n                metric: 'FORECAST_CHARGEUP',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'VARIANCE_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getChargeupReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getChargeupReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        basePath: this.basePath,\n        chargeupReport: this.getChargeupReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/chargeup/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/chargeup/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.chargeup.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getChargeupReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.chargeup.Chargeup report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Chargeup')\n              }, {\n                metric: 'CHARGEUP_TOTAL'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter\n                },\n                metric: 'FORECAST_CHARGEUP'\n              }]]\n            }, {\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('entity.builda-price.reports.projects.project.chargeup.chargeupTooltip')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Quote used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_CHARGEUP',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_QUOTE',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.chargeup.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_CHARGEUP',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'VARIANCE_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getChargeupReport\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getChargeupReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        task: this.getTask,\n        basePath: this.basePath,\n        chargeupReport: this.getChargeupReport,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          return yield this.store.findRecord('project', projectId);\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'project',\n              op: 'EQ',\n              value: project.last.value.id\n            }, {\n              field: 'status',\n              op: 'IN',\n              value: ['ACTIVE', 'DRAFT_CREATED']\n            }, {\n              field: 'parent',\n              op: 'IS_NULL',\n              value: null\n            }]\n          };\n          const parentTasks = yield this.store.query('task', {\n            filter\n          });\n          return parentTasks.toArray();\n        }\n      }), null, \"getParentTasks\", null));\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, project, parentTasks) {\n          yield project.last;\n          yield parentTasks.last;\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const footerFilter = {\n            _id: {\n              $in: parentTasks.last.value.mapBy('id')\n            }\n          };\n          const canUseProjectClientReport = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseProjectClientReport');\n          const entityCanUseInvoicing = this.newFeatureFlags.entityCanUseInvoicingReport;\n          const summaryMetricSubject = canUseProjectClientReport ? {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          } : {\n            resourceName: 'tasks',\n            recursiveKey: 'parent',\n            filter\n          };\n          const summaryTable = {\n            name: this.intl.t('common.Summary'),\n            index: 1,\n            width: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {},\n            groupType: 'GROUPED',\n            metricsSubject: summaryMetricSubject,\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.progress.Labour progress')\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          if (project.last.value.contractType === 'FIXED_PRICE') {\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Fixed price')\n            }, {\n              metric: 'FIXED_PRICE_QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost plus forecast')\n            }, {\n              metric: 'COST_PLUS_FORECAST_QUOTE',\n              //undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]);\n          }\n          if (entityCanUseInvoicing) {\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Forecast cost')\n            }, {\n              metric: 'FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced')\n            }, {\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete')\n            }, {\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompletePercentage')\n            }, {\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1\n            }]);\n          }\n          const fixedPriceTable = {\n            name: this.intl.t('common.Tasks'),\n            index: 2,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.progress.Labour progress'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Fixed price'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost plus forecast'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter\n                },\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter: footerFilter\n                },\n                metric: 'FIXED_PRICE_QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter: footerFilter\n                },\n                metric: 'COST_PLUS_FORECAST_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                tooltip: this.intl.t('shared.reports.costTotalTooltip')\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'tasks',\n              recursiveKey: 'parent',\n              filter\n            },\n            metrics: [[{\n              metric: 'TASK_PATH',\n              classes: [{\n                class: 'd-none'\n              }]\n            }, {\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.reports.projects.project.cost-to-complete.task',\n                modelKeys: ['project', '_id'],\n                queryParams: {\n                  selectedDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              }\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'FIXED_PRICE_QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'COST_PLUS_FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          const costPlusTable = {\n            name: this.intl.t('common.Tasks'),\n            index: 2,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.progress.Labour progress'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Forecast cost'),\n                classes: [{\n                  class: 'text-right'\n                }],\n                tooltip: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Estimated total cost')\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter\n                },\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter: footerFilter\n                },\n                metric: 'FORECAST_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'tasks',\n              recursiveKey: 'parent',\n              filter\n            },\n            metrics: [[{\n              metric: 'TASK_PATH',\n              classes: [{\n                class: 'd-none'\n              }]\n            }, {\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.reports.projects.project.cost-to-complete.task',\n                modelKeys: ['project', '_id'],\n                queryParams: {\n                  selectedDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              }\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          const taskTable = project.last.value.contractType === 'FIXED_PRICE' ? fixedPriceTable : costPlusTable;\n          if (entityCanUseInvoicing) {\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced'),\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete'),\n              classes: [{\n                class: 'text-right'\n              }],\n              tooltip: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompleteTooltip')\n            });\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompletePercentage'),\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter: footerFilter\n              },\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter: footerFilter\n              },\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter: footerFilter\n              },\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            });\n          }\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [summaryTable, taskTable]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getParentTasks.perform(this.getProject);\n      this.getAdHocReport.perform(selectedDate, this.getProject, this.getParentTasks);\n      return {\n        entity: this.sessionData.entity,\n        projectLevelReport: this.getAdHocReport,\n        basePath: this.basePath,\n        project: this.getProject\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.cost-to-complete.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          return yield this.store.findRecord('project', projectId);\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          return yield this.store.findRecord('task', taskId);\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, project, task, parentTasks) {\n          yield project.last;\n          yield task.last;\n          yield parentTasks.last;\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const taskFilter = {\n            _id: task.last.value.id\n          };\n          const entityCanUseInvoicing = this.newFeatureFlags.entityCanUseInvoicingReport;\n          const summaryTable = {\n            name: this.intl.t('common.Summary'),\n            index: 1,\n            width: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {},\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'tasks',\n              filter: taskFilter\n            },\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.progress.Labour progress')\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          if (project.last.value.contractType === 'FIXED_PRICE') {\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Fixed price')\n            }, {\n              metric: 'FIXED_PRICE_QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost plus forecast')\n            }, {\n              metric: 'COST_PLUS_FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]);\n          }\n          if (entityCanUseInvoicing) {\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Forecast cost')\n            }, {\n              metric: 'FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced')\n            }, {\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete')\n            }, {\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompletePercentage')\n            }, {\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1\n            }]);\n          }\n          const fixedPriceTable = {\n            name: this.intl.t('common.Tasks'),\n            index: 2,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.progress.Labour progress'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Fixed price'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost plus forecast'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  filter: taskFilter\n                },\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  filter: taskFilter\n                },\n                metric: 'FIXED_PRICE_QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  filter: taskFilter\n                },\n                metric: 'COST_PLUS_FORECAST_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                tooltip: this.intl.t('shared.reports.costTotalTooltip')\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'tasks',\n              recursiveKey: 'parent',\n              filter\n            },\n            metrics: [[{\n              metric: 'TASK_PATH',\n              classes: [{\n                class: 'd-none'\n              }]\n            }, {\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.reports.projects.project.cost-to-complete.task',\n                modelKeys: ['project', '_id'],\n                queryParams: {\n                  selectedDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              }\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'FIXED_PRICE_QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'COST_PLUS_FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          const costPlusTable = {\n            name: this.intl.t('common.Tasks'),\n            index: 2,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.progress.Labour progress'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Forecast cost'),\n                classes: [{\n                  class: 'text-right'\n                }],\n                tooltip: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Estimated total cost')\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  filter: taskFilter\n                },\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  filter: taskFilter\n                },\n                metric: 'FORECAST_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'tasks',\n              recursiveKey: 'parent',\n              filter\n            },\n            metrics: [[{\n              metric: 'TASK_PATH',\n              classes: [{\n                class: 'd-none'\n              }]\n            }, {\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.reports.projects.project.cost-to-complete.task',\n                modelKeys: ['project', '_id'],\n                queryParams: {\n                  selectedDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              }\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          const taskTable = project.last.value.contractType === 'FIXED_PRICE' ? fixedPriceTable : costPlusTable;\n          if (entityCanUseInvoicing) {\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced'),\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete'),\n              classes: [{\n                class: 'text-right'\n              }],\n              tooltip: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompleteTooltip')\n            });\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompletePercentage'),\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                filter: taskFilter\n              },\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                filter: taskFilter\n              },\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                filter: taskFilter\n              },\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            });\n          }\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [summaryTable, taskTable]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getAdHocReport.perform(selectedDate, this.getProject, this.getTask, this.getParentTasks);\n      return {\n        taskLevelReport: this.getAdHocReport,\n        basePath: this.basePath,\n        task: this.getTask,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/cost\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        costType: {\n          refreshModel: true\n        },\n        parentId: {\n          refreshModel: true\n        },\n        allocationType: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getSelectedTaskIds\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (tasks, parentId) {\n          let computedSelectedTaskIds = [];\n          if (parentId) {\n            yield tasks.last;\n            const taskIdsGroupedByParentId = new Map();\n            for (const task of tasks.last.value) {\n              const parentId = task.parent.get('id');\n              if (!taskIdsGroupedByParentId.has(parentId)) taskIdsGroupedByParentId.set(parentId, []);\n              taskIdsGroupedByParentId.get(parentId).push(task.id);\n            }\n            const parentsTasksIds = [];\n            (function getChildren(parentId) {\n              parentsTasksIds.push(parentId);\n              const childIds = taskIdsGroupedByParentId.get(parentId);\n              if (childIds) childIds.forEach(getChildren);\n            })(parentId);\n            computedSelectedTaskIds = parentsTasksIds;\n          } else {\n            yield tasks.last;\n            computedSelectedTaskIds = tasks.last.value.map(t => t.id);\n          }\n          return computedSelectedTaskIds;\n        }\n      }), null, \"getSelectedTaskIds\", null));\n      _defineProperty(this, \"getProjectTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const tasks = yield this.store.simpleQuery('task', {\n            entity: this.sessionData.entity.id,\n            project: project.last.value.id\n          });\n          return tasks.toArray();\n        }\n      }), null, \"getProjectTasks\", null));\n      _defineProperty(this, \"getCostReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, costType, _startDate, _endDate, positionReportTaskIds, filterByDate, parentId, selectedTaskIds, allocationType) {\n          yield project.last;\n          yield positionReportTaskIds.last;\n          const taskIds = selectedTaskIds || positionReportTaskIds.last.value;\n          const startDate = (0, _moment.default)(_startDate).startOf('day').toDate();\n          const endDate = (0, _moment.default)(_endDate).endOf('day').toDate();\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.cost.Cost report'),\n            subjects: []\n          };\n          const billsFilter = {\n            $and: [{\n              status: {\n                $ne: 'HELD'\n              }\n            }, {\n              $or: []\n            }]\n          };\n          const timesheetsFilter = {\n            project: project.last.value.id,\n            task: {\n              $in: taskIds\n            }\n          };\n          if (allocationType) billsFilter.allocationType = allocationType;\n          if (filterByDate) {\n            report.dateRange = {\n              startDate,\n              endDate\n            };\n            billsFilter.issueDate = {\n              $lte: endDate,\n              $gte: startDate\n            };\n            const dayEndDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n            const dayStartDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n            timesheetsFilter.date = {\n              $lte: dayEndDate,\n              $gte: dayStartDate\n            };\n          }\n          if (!parentId && !selectedTaskIds) {\n            billsFilter['$and'][1]['$or'].push({\n              project: project.last.value.id\n            });\n            billsFilter['$and'][1]['$or'].push({\n              task: {\n                $in: taskIds\n              }\n            });\n          } else {\n            billsFilter['$and'][1]['$or'].push({\n              task: {\n                $in: taskIds\n              }\n            });\n          }\n          const showTimesheetsTable = ['TIMESHEETS', 'ALL'].includes(costType);\n          const showBillsTable = ['BILLS', 'ALL'].includes(costType);\n          const canUseInvoicingReports = this.newFeatureFlags.canUseProjectInvoicingReport(project.last.value);\n          const costReport = {\n            name: this.intl.t('common.Timesheets'),\n            index: 1,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: true,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Date')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.First name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Last name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Task')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost.Duration'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Cost'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'timesheets',\n                  filter: timesheetsFilter\n                },\n                metric: 'COST_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                subject: {\n                  resourceName: 'timesheets',\n                  filter: timesheetsFilter\n                },\n                metric: 'COST_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'timesheets',\n              sortKey: 'date',\n              sortDirection: 'DESC',\n              filter: timesheetsFilter\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'date',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.timesheets.timesheet',\n                queryParams: {\n                  date: {\n                    key: 'date'\n                  },\n                  worker: {\n                    key: 'worker'\n                  }\n                }\n              }\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'worker.firstName'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'worker.lastName'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'task.name'\n            }, {\n              metric: 'TIMESHEET_DURATION',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TIMESHEET_COST',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          };\n          const billReport = {\n            name: this.intl.t('common.Bills'),\n            index: showTimesheetsTable ? 2 : 1,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: true,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Bill number')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Issuer')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Reference')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Item')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Task')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Value'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'bill-item-views',\n                  filter: billsFilter\n                },\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'bill-item-views',\n              filter: billsFilter,\n              sortKey: 'billNumber'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'billNumber',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.bills.bill',\n                modelKeys: ['bill']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'issuer'\n            }, {\n              metric: 'PROPERTY',\n              key: 'billName'\n            }, {\n              metric: 'PROPERTY',\n              key: 'description'\n            }, {\n              metric: 'PROPERTY',\n              key: 'taskName'\n            }, {\n              metric: 'BILL_ITEM_VALUE',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          };\n\n          // only push invoiced figures if user has access to Invoicing reports\n          if (canUseInvoicingReports) {\n            costReport.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: 'Invoiced',\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            costReport.axes.tfoot[0].push({\n              metric: 'TEXT',\n              valueOverride: ''\n            });\n            costReport.metrics[0].push({\n              metric: 'INCLUDED_IN_INVOICE',\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n\n            // push into bills report\n            billReport.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: 'Invoiced',\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            billReport.axes.tfoot[0].push({\n              metric: 'TEXT',\n              valueOverride: ''\n            });\n            billReport.metrics[0].push({\n              metric: 'INCLUDED_IN_INVOICE',\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n          }\n          if (showTimesheetsTable) report.subjects.push(costReport);\n          if (showBillsTable) report.subjects.push(billReport);\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getCostReport\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.filterByDate = true;\n    }\n    model({\n      startDate,\n      endDate,\n      costType,\n      parentId,\n      allocationType\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getProjectTasks.perform(this.getProject);\n      this.getSelectedTaskIds.perform(this.getProjectTasks, parentId);\n      this.getCostReport.perform(this.getProject, costType, startDate, endDate, this.getSelectedTaskIds, true, parentId, undefined, allocationType);\n      return {\n        project: this.getProject,\n        tasks: this.getProjectTasks,\n        basePath: this.basePath,\n        costTable: this.getCostReport,\n        selectedTaskIds: this.getSelectedTaskIds\n      };\n    }\n    resetController(controller, isExiting) {\n      if (isExiting) {\n        controller.parentId = null;\n        controller.allocationType = null;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.simpleQuery('project', {\n            _id: projectId\n          });\n          return project.toArray()?.[0];\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getForecastTableReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            entity: this.sessionData.entity.id,\n            project: project.last.value.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.forecast-breakdown.Forecast breakdown report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast hours'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Avg hourly cost'),\n                  tooltip: this.intl.t('shared.reports.avgHourlyCostTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast labour'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast materials'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast subcontractors'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Sums'),\n                  tooltip: this.intl.t('shared.reports.forecastReportSumsTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast total'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  metric: 'WORKERS_AVG_COST',\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.forecast-breakdown.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WORKERS_AVG_COST',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getForecastTableReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getForecastTableReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        forecastTable: this.getForecastTableReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.forecast-breakdown.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.forecast-breakdown.Forecast breakdown report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast hours'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Avg hourly cost'),\n                  tooltip: this.intl.t('shared.reports.avgHourlyCostTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast labour'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast materials'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast subcontractors'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Sums'),\n                  tooltip: this.intl.t('shared.reports.forecastReportSumsTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast total'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  metric: 'WORKERS_AVG_COST',\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.forecast-breakdown.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WORKERS_AVG_COST',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getAdHocReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        forecastTable: this.getAdHocReport,\n        basePath: this.basePath,\n        task: this.getTask,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n    }\n    async beforeModel() {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const project = await this.store.findRecord('project', projectId);\n      const reportRoutes = [{\n        featureFlag: 'canUseProjectPositionReport',\n        route: 'entity.builda-price.reports.projects.project.position'\n      }, {\n        featureFlag: 'canUseProjectInvoicingReport',\n        route: 'entity.builda-price.reports.projects.project.invoicing'\n      }, {\n        featureFlag: 'canUseProjectProfitMarginReport',\n        route: 'entity.builda-price.reports.projects.project.profit-margins'\n      }, {\n        featureFlag: 'canUseProjectChargeupReport',\n        route: 'entity.builda-price.reports.projects.project.chargeup'\n      }, {\n        featureFlag: 'canUseProjectForecastReport',\n        route: 'entity.builda-price.reports.projects.project.forecast-breakdown'\n      }, {\n        featureFlag: 'canUseProjectCostReport',\n        route: 'entity.builda-price.reports.projects.project.cost'\n      }, {\n        featureFlag: 'canUseProjectQuoteReport',\n        route: 'entity.builda-price.reports.projects.project.quote'\n      }, {\n        featureFlag: 'canUseProjectBudgetReport',\n        route: 'entity.builda-price.reports.projects.project.budget'\n      }, {\n        featureFlag: 'canUseProjectLabourHourReport',\n        route: 'entity.builda-price.reports.projects.project.labour-hours'\n      }, {\n        featureFlag: 'canUseProjectClientReport',\n        route: 'entity.builda-price.reports.projects.project.cost-to-complete'\n      }];\n      const reportRoute = reportRoutes.find(({\n        featureFlag\n      }) => this.newFeatureFlags.includesFeatureFlags(project, featureFlag));\n      if (reportRoute) {\n        this.router.replaceWith(reportRoute.route, projectId);\n      } else {\n        this.router.replaceWith('entity.builda-price');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/invoicing/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'project',\n              op: 'EQ',\n              value: project.last.value.id\n            }, {\n              field: 'status',\n              op: 'IN',\n              value: ['ACTIVE', 'DRAFT_CREATED']\n            }, {\n              field: 'parent',\n              op: 'IS_NULL',\n              value: null\n            }]\n          };\n          const parentTasks = yield this.store.query('task', {\n            filter\n          });\n          return parentTasks.toArray();\n        }\n      }), null, \"getParentTasks\", null));\n      _defineProperty(this, \"getInvoiceReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate, parentTasks) {\n          yield project.last;\n          yield parentTasks.last;\n          const footerFilter = {\n            _id: {\n              $in: parentTasks.last.value.mapBy('id')\n            }\n          };\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const summaryMetricSubject = {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          };\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoicing report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              name: this.intl.t('common.Summary'),\n              index: 1,\n              width: 2,\n              height: 2,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total billable')\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable remaining')\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable used'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable'),\n                  metric: 'TEXT'\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'INVOICEABLE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL'\n              }]]\n            }, {\n              name: this.intl.t('common.Tasks'),\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total billable'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable to date'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoiced'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable remaining'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: footerFilter\n                  },\n                  metric: 'INVOICEABLE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: footerFilter\n                  },\n                  metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: footerFilter\n                  },\n                  metric: 'INVOICED_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: footerFilter\n                  },\n                  metric: 'INVOICEABLE_TOTAL_REMAINING',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.invoicing.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }]]\n            }, {\n              name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoice items'),\n              index: 4,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Invoice number')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Status')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.To contact')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Description')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Value'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'invoice-item-views',\n                    filter: {\n                      project: project.last.value.id,\n                      issueDate: {\n                        $lte: endDate\n                      }\n                    }\n                  },\n                  metric: 'INVOICE_ITEM_VALUE',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'invoice-item-views',\n                filter: {\n                  project: project.last.value.id,\n                  issueDate: {\n                    $lte: endDate\n                  }\n                },\n                sortKey: 'invoiceNumber'\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'invoiceNumber',\n                linkTo: {\n                  route: 'entity.builda-price.operations.outgoing.invoices.invoice',\n                  modelKeys: ['invoiceId']\n                }\n              }, {\n                metric: 'PROPERTY',\n                key: 'status',\n                humanEnums: true\n              }, {\n                metric: 'PROPERTY',\n                key: 'toContact'\n              }, {\n                metric: 'PROPERTY',\n                key: 'description'\n              }, {\n                metric: 'INVOICE_ITEM_VALUE',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getInvoiceReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getParentTasks.perform(this.getProject);\n      this.getInvoiceReport.perform(this.getProject, selectedDate, this.getParentTasks);\n      return {\n        project: this.getProject,\n        basePath: this.basePath,\n        invoiceTable: this.getInvoiceReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/invoicing/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/invoicing/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.invoicing.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.findRecord('task', taskId);\n          return task;\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getInvoiceReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoicing report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              name: this.intl.t('common.Summary'),\n              index: 1,\n              width: 2,\n              height: 2,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                filter: {\n                  _id: task.last.value.id\n                }\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total billable')\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable remaining')\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable used'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable'),\n                  metric: 'TEXT'\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: {\n                      _id: task.last.value.id\n                    }\n                  },\n                  metric: 'INVOICEABLE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                filter: {\n                  _id: task.last.value.id\n                }\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL'\n              }]]\n            }, {\n              name: this.intl.t('common.Tasks'),\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total billable'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable to date'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoiced'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable remaining'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: {\n                      _id: task.last.value.id\n                    }\n                  },\n                  metric: 'INVOICEABLE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: {\n                      _id: task.last.value.id\n                    }\n                  },\n                  metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: {\n                      _id: task.last.value.id\n                    }\n                  },\n                  metric: 'INVOICED_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: {\n                      _id: task.last.value.id\n                    }\n                  },\n                  metric: 'INVOICEABLE_TOTAL_REMAINING',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.invoicing.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }]]\n            }, {\n              name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoice items'),\n              index: 4,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Invoice number')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Status')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.To contact')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Description')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Value'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'invoice-item-views',\n                    filter: {\n                      task: task.last.value.id,\n                      issueDate: {\n                        $lte: endDate\n                      }\n                    }\n                  },\n                  metric: 'INVOICE_ITEM_VALUE',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'invoice-item-views',\n                filter: {\n                  task: task.last.value.id,\n                  issueDate: {\n                    $lte: endDate\n                  }\n                },\n                sortKey: 'invoiceNumber'\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'invoiceNumber',\n                linkTo: {\n                  route: 'entity.builda-price.operations.outgoing.invoices.invoice',\n                  modelKeys: ['invoiceId']\n                }\n              }, {\n                metric: 'PROPERTY',\n                key: 'status',\n                humanEnums: true\n              }, {\n                metric: 'PROPERTY',\n                key: 'toContact'\n              }, {\n                metric: 'PROPERTY',\n                key: 'description'\n              }, {\n                metric: 'INVOICE_ITEM_VALUE',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getInvoiceReport\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getInvoiceReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        task: this.getTask,\n        basePath: this.basePath,\n        invoiceTable: this.getInvoiceReport,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/labour-hours/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getLabourHoursReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const canUseCostReports = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseProjectCostReport');\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('shared.reports.Labour hours report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter\n                },\n                metric: 'FORECAST_MANHOURS_TOTAL'\n              }]]\n            }, {\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.labour-hours.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_MANHOURS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'TIMESHEETS'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          return loadedReport;\n        }\n      }), null, \"getLabourHoursReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getLabourHoursReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        basePath: this.basePath,\n        labourHoursTable: this.getLabourHoursReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/labour-hours/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/labour-hours/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.labour-hours.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task, parentTasks) {\n          yield task.last;\n          yield parentTasks.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const canUseCostReports = this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canUseCostReport');\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('shared.reports.Position report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter\n                },\n                metric: 'FORECAST_MANHOURS_TOTAL'\n              }]]\n            }, {\n              name: this.intl.t('common.Tasks'),\n              index: 3,\n              width: 12,\n              borderStyle: 'BORDER',\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.labour-hours.task',\n                  modelKeys: ['project', '_id']\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_MANHOURS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'TIMESHEETS'\n                    },\n                    parentId: {\n                      valueOverride: task.last.value.id\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getAdHocReport.perform(selectedDate, projectId, this.getTask, this.getParentTasks);\n      return {\n        taskLevelReport: this.getAdHocReport,\n        basePath: this.basePath,\n        task: this.getTask,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/notes\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        startDate: {\n          refreshModel: false\n        },\n        endDate: {\n          refreshModel: false\n        },\n        filterByDate: {\n          refreshModel: false\n        },\n        invoiceId: {\n          refreshModel: false\n        },\n        workerIds: {\n          refreshModel: false\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          return this.store.simpleQuery('worker', {\n            entity: this.sessionData.entity.id,\n            isActive: true\n          }, {\n            sort: 'firstName,lastName'\n          });\n        }\n      }), null, \"getWorkers\", null));\n      _defineProperty(this, \"getSelectedTaskIds\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (tasks) {\n          yield tasks.last;\n          if (!tasks.last.value) return [];\n          return tasks.last.value.map(t => t.id);\n        }\n      }), null, \"getSelectedTaskIds\", null));\n      _defineProperty(this, \"getProjectTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const tasks = yield this.store.simpleQuery('task', {\n            entity: this.sessionData.entity.id,\n            project: project.last.value.id\n          });\n          return tasks.toArray();\n        }\n      }), null, \"getProjectTasks\", null));\n      _defineProperty(this, \"getNoteReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, _startDate, _endDate, filterByDate, selectedTaskIds, workerIds, invoiceId) {\n          if (project.isRunning) yield project.last;\n          const startDate = new Date(_startDate);\n          const endDate = new Date(_endDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const filter = {\n            $and: [{\n              entityId: {\n                $eq: this.sessionData.entity.id\n              },\n              projectId: {\n                $eq: project.last.value.id\n              }\n            }]\n          };\n          if (invoiceId) {\n            filter.$and.push({\n              linkedInvoiceIds: {\n                $like: `%${invoiceId}%`\n              }\n            });\n          } else {\n            if (selectedTaskIds && selectedTaskIds.length > 0) {\n              filter.$and.push({\n                taskId: {\n                  $in: selectedTaskIds\n                }\n              });\n            }\n            if (workerIds && workerIds.length > 0) {\n              filter.$and.push({\n                workerId: {\n                  $in: workerIds\n                }\n              });\n            }\n            if (filterByDate) {\n              const dayEndDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n              const dayStartDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n              filter.$and.push({\n                date: {\n                  $lte: dayEndDate,\n                  $gte: dayStartDate\n                }\n              });\n            }\n          }\n          const noteReport = {\n            index: 1,\n            width: 12,\n            elementType: 'NOTE_TIMELINE',\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'timesheet-note-views',\n              sortKey: 'date',\n              sortDirection: 'DESC',\n              filter\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'date'\n            }, {\n              metric: 'PROPERTY',\n              key: 'workerName'\n            }, [{\n              metric: 'PROPERTY',\n              key: 'taskName'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'timesheet.duration'\n            }], {\n              metric: 'PROPERTY',\n              key: 'note'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'attachments.file'\n            }, {\n              metric: 'PROPERTY',\n              key: 'noteType'\n            }, {\n              metric: 'TEXT',\n              valueOverride: 'View timesheet',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.timesheets.timesheet',\n                queryParams: {\n                  date: {\n                    key: 'date'\n                  },\n                  worker: {\n                    key: 'workerId'\n                  }\n                }\n              }\n            }]]\n          };\n          const report = {\n            name: 'Notes',\n            subjects: [noteReport]\n          };\n          if (!invoiceId && filterByDate) {\n            report.dateRange = {\n              startDate,\n              endDate\n            };\n          }\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          return loadedReport;\n        }\n      }), null, \"getNoteReport\", null));\n    }\n    model(params) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getWorkers.perform();\n      this.getProjectTasks.perform(this.getProject);\n      this.getSelectedTaskIds.perform(this.getProjectTasks);\n      const workerIds = params.workerIds?.split(',');\n      this.getNoteReport.perform(this.getProject, params.startDate, params.endDate, params.filterByDate, undefined, workerIds, params.invoiceId);\n      return {\n        project: this.getProject,\n        tasks: this.getProjectTasks,\n        basePath: this.basePath,\n        noteReport: this.getNoteReport,\n        selectedTaskIds: this.getSelectedTaskIds,\n        getWorkers: this.getWorkers\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/position/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          return yield this.store.findRecord('project', projectId);\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, project) {\n          yield project.last;\n          const canUseBudgetReports = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseProjectBudgetReport');\n          const canUseCostReports = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseProjectCostReport');\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const canUseProjectPositionReport = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUsePositionReport');\n          const summaryMetricSubject = canUseProjectPositionReport ? {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          } : {\n            resourceName: 'tasks',\n            filter\n          };\n          const financialBreakDown = {\n            name: this.intl.t('shared.reports.Financial breakdown'),\n            index: 4,\n            width: 7,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Total'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: summaryMetricSubject,\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Budget')\n            }, {\n              metric: 'BUDGET_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.reports.Actual')\n            }, {\n              metric: 'COST_LABOUR',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'ALL'\n                  },\n                  allocationType: {\n                    valueOverride: 'LABOUR'\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_MATERIALS',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'BILLS'\n                  },\n                  allocationType: {\n                    valueOverride: 'MATERIALS'\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_SUBCONTRACTORS',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'BILLS'\n                  },\n                  allocationType: {\n                    valueOverride: 'SUBCONTRACTORS'\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'COST_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Used')\n            }, {\n              metric: 'BUDGET_LABOUR_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'BUDGET_TOTAL_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Quote')\n            }, {\n              metric: 'QUOTE_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Chargeup')\n            }, {\n              metric: 'CHARGEUP_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'CHARGEUP_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          };\n          if (this.newFeatureFlags.canUseProjectInvoicingReport(project.last.value)) {\n            financialBreakDown.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced')\n            }, {\n              metric: 'INVOICED_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n          }\n          const report = {\n            name: this.intl.t('shared.reports.Position report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast used'),\n              elementType: 'BIG_TEXT',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              axes: {\n                label: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.report.The amount of your forecast used')\n                }]]\n              },\n              metrics: [[{\n                metric: 'FINANCIAL_PROGRESS_TOTAL'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_TOTAL'\n                }], [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_TOTAL'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: summaryMetricSubject,\n                metric: 'FORECAST_BUDGET'\n              }]]\n            }, financialBreakDown, {\n              name: this.intl.t('common.Labour hours'),\n              index: 5,\n              width: 3,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Budget')\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    costType: {\n                      valueOverride: 'TIMESHEETS'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Used')\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast'),\n                tooltip: 'Forecasted from your progress'\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Remaining'),\n                tooltip: 'The difference between your forecast and your actual'\n              }, {\n                metric: 'REMAINING_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                tooltip: 'The difference between your forecast and your budget'\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }, {\n              name: this.intl.t('common.Tasks'),\n              index: 6,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.costTotalTooltip')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1,\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.position.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                linkTo: canUseBudgetReports ? {\n                  route: 'entity.builda-price.reports.projects.project.budget',\n                  modelKeys: ['project'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'ALL'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'BUDGET_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getAdHocReport.perform(selectedDate, this.getProject);\n      return {\n        entity: this.sessionData.entity,\n        projectLevelReport: this.getAdHocReport,\n        basePath: this.basePath,\n        project: this.getProject\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/position/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/position/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.position.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task, parentTasks) {\n          yield task.last;\n          yield parentTasks.last;\n          const canUseBudgetReports = this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canUseBudgetReport');\n          const canUseCostReports = this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canUseCostReport');\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const financialBreakDown = {\n            name: this.intl.t('shared.reports.Financial breakdown'),\n            index: 4,\n            width: 7,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Total'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'tasks',\n              recursiveKey: 'parent',\n              filter\n            },\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Budget')\n            }, {\n              metric: 'BUDGET_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.reports.Actual')\n            }, {\n              metric: 'COST_LABOUR',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'ALL'\n                  },\n                  allocationType: {\n                    valueOverride: 'LABOUR'\n                  },\n                  parentId: {\n                    valueOverride: task.last.value.id\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_MATERIALS',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'BILLS'\n                  },\n                  allocationType: {\n                    valueOverride: 'MATERIALS'\n                  },\n                  parentId: {\n                    valueOverride: task.last.value.id\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_SUBCONTRACTORS',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'BILLS'\n                  },\n                  allocationType: {\n                    valueOverride: 'SUBCONTRACTORS'\n                  },\n                  parentId: {\n                    valueOverride: task.last.value.id\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'COST_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Used')\n            }, {\n              metric: 'BUDGET_LABOUR_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'BUDGET_TOTAL_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Quote')\n            }, {\n              metric: 'QUOTE_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Chargeup')\n            }, {\n              metric: 'CHARGEUP_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'CHARGEUP_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          };\n          const canUseInvoicingReports = this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canUseInvoicingReport');\n          if (canUseInvoicingReports) {\n            financialBreakDown.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced')\n            }, {\n              metric: 'INVOICED_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n          }\n          const report = {\n            name: this.intl.t('shared.reports.Position report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast used'),\n              elementType: 'BIG_TEXT',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              axes: {\n                label: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.report.The amount of your forecast used')\n                }]]\n              },\n              metrics: [[{\n                metric: 'FINANCIAL_PROGRESS_TOTAL'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL'\n                }], [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_TOTAL'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                metric: 'FORECAST_BUDGET'\n              }]]\n            }, financialBreakDown, {\n              name: this.intl.t('common.Labour hours'),\n              index: 5,\n              width: 2,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Budget')\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  modelKeys: ['project'],\n                  queryParams: {\n                    parentId: {\n                      valueOverride: task.last.value.id\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    costType: {\n                      valueOverride: 'TIMESHEETS'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Used')\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast'),\n                tooltip: 'Forecasted from your progress'\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Remaining'),\n                tooltip: 'The difference between forecast and actual'\n              }, {\n                metric: 'REMAINING_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }, {\n              name: this.intl.t('common.Tasks'),\n              index: 6,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1,\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.position.task',\n                  modelKeys: ['project', '_id']\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                linkTo: canUseBudgetReports ? {\n                  route: 'entity.builda-price.reports.projects.project.budget.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: linkToEndDate\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'ALL'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'BUDGET_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getAdHocReport.perform(selectedDate, projectId, this.getTask, this.getParentTasks);\n      return {\n        taskLevelReport: this.getAdHocReport,\n        basePath: this.basePath,\n        task: this.getTask,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/profit-margins/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getProfitMarginsReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.profit-margins.Profit margins report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast margin'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.forecastMarginPercentage'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT_MARGIN',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0,\n                  showPositiveNegativeIndicator: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.profit-margins.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'GROSS_PROFIT',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }, {\n                metric: 'GROSS_PROFIT_MARGIN',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                showPositiveNegativeIndicator: true\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getProfitMarginsReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getProfitMarginsReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        profitMarginsTable: this.getProfitMarginsReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/profit-margins/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/profit-margins/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.profit-margins.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProfitMarginsReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.profit-margins.Profit margins report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              name: this.intl.t('common.Tasks'),\n              index: 8,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast margin'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.forecastMarginPercentage'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT_MARGIN',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0,\n                  showPositiveNegativeIndicator: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.profit-margins.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'GROSS_PROFIT',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }, {\n                metric: 'GROSS_PROFIT_MARGIN',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                showPositiveNegativeIndicator: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getProfitMarginsReport\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getProfitMarginsReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        profitMarginsTable: this.getProfitMarginsReport,\n        basePath: this.basePath,\n        task: this.getTask,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/quote/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getQuoteReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const canUseProjectQuoteReport = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseQuoteReport');\n          const summaryMetricSubject = canUseProjectQuoteReport ? {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          } : {\n            resourceName: 'tasks',\n            filter\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Labour'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  valueOverride: this.intl.t('common.Quote'),\n                  metric: 'TEXT'\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_LABOUR'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Chargeup')\n              }, {\n                metric: 'CHARGEUP_LABOUR'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Materials'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_MATERIALS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_MATERIALS'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Subcontractors'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_SUBCONTRACTORS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS'\n              }]]\n            }, {\n              index: 4,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote total'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_TOTAL'\n              }]]\n            }, {\n              index: 5,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'QUOTE_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'QUOTE_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'QUOTE_SUBCONTRACTORS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums')\n              }, {\n                metric: 'QUOTE_SUMS'\n              }]]\n            }, {\n              index: 6,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Chargeup distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'CHARGEUP_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'CHARGEUP_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS'\n              }]]\n            }, {\n              name: this.intl.t('common.Financials'),\n              index: 7,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Labour quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Labour chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Materials quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Materials chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Subcontractors quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Subcontractors chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Sums quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.financial.Total quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Total chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Remaining quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Quote used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.costTotalTooltip')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'REMAINING_QUOTE',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.quote.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'QUOTE_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'REMAINING_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getQuoteReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getQuoteReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        basePath: this.basePath,\n        quoteTable: this.getQuoteReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/quote/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/quote/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.quote.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getQuoteReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Labour'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  valueOverride: this.intl.t('common.Quote'),\n                  metric: 'TEXT'\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_LABOUR'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Chargeup')\n              }, {\n                metric: 'CHARGEUP_LABOUR'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Materials'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_MATERIALS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_MATERIALS'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Subcontractors'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_SUBCONTRACTORS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS'\n              }]]\n            }, {\n              index: 4,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote total'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_TOTAL'\n              }]]\n            }, {\n              index: 5,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'QUOTE_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'QUOTE_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'QUOTE_SUBCONTRACTORS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums')\n              }, {\n                metric: 'QUOTE_SUMS'\n              }]]\n            }, {\n              index: 6,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Chargeup distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'CHARGEUP_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'CHARGEUP_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS'\n              }]]\n            }, {\n              name: this.intl.t('common.Financials'),\n              index: 7,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Labour quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Labour chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Materials quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Materials chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Subcontractors quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Subcontractors chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Sums quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.financial.Total quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Total chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Remaining quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Quote used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'REMAINING_QUOTE',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.quote.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'QUOTE_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'REMAINING_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getQuoteReport\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getQuoteReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        task: this.getTask,\n        basePath: this.basePath,\n        quoteTable: this.getQuoteReport,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/scheduling\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {}\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/scheduling/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\"], function (_exports, _route, _menuRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"defaultRoute\", 'entity.builda-price.scheduling.timeline');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/scheduling/timeline\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          });\n\n          // sort projects by sortIndex attribute\n          const sortedProjects = projects.sortBy('sortIndex');\n          return sortedProjects.toArray();\n        }\n      }), null, \"getProjects\", null));\n      _defineProperty(this, \"loadUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const user = yield this.store.findRecord('user', this.sessionData.user.id);\n          return user;\n        }\n      }), null, \"loadUser\", null));\n    }\n    willTransition(transition) {\n      if (this.controller.undoCount) {\n        if (!confirm('You have unsaved changes that will be lost if you decide to leave, do you want continue?')) {\n          transition.abort();\n        }\n      }\n    }\n    resetController(controller) {\n      // clear the ganttChart when leaving the route\n      // this causes it to be re-initialised when re-entering the page (which we want)\n      controller.ganttChart = null;\n    }\n    setupController(controller, post) {\n      super.setupController(controller, post);\n      if (controller) {\n        controller.undoCount = 0;\n        controller.redoCount = 0;\n      }\n    }\n    model() {\n      this.getProjects.perform();\n      this.loadUser.perform();\n      return {\n        entity: this.sessionData.entity,\n        projects: this.getProjects,\n        user: this.loadUser\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/disabled\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor, this);\n      _initializerDefineProperty(this, \"modules\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n    }\n    beforeModel() {\n      // if you have access to modules you shouldn't be here\n      if (this.modules.allowedModules.length !== 0) return this.router.transitionTo('entity');\n      this.helpCenter.hideHelpCenter();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/financials\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor2, this);\n      _initializerDefineProperty(this, \"financialPortalPeriodSelector\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n    }\n    beforeModel() {\n      if (!this.newFeatureFlags.canUseFinancialReporting) {\n        return this.router.transitionTo('entity');\n      }\n      this.helpCenter.hideHelpCenter();\n    }\n    activate() {\n      super.activate(...arguments);\n      this.financialPortalPeriodSelector.on('periodChanged', this, this.triggerRefresh);\n    }\n    deactivate() {\n      super.deactivate(...arguments);\n      this.financialPortalPeriodSelector.off('periodChanged', this, this.triggerRefresh);\n    }\n    triggerRefresh() {\n      this.refresh();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"financialPortalPeriodSelector\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"triggerRefresh\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"triggerRefresh\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/financials/chart-of-accounts\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n    }\n    async beforeModel(transition) {\n      await this.session.requireAuthentication(transition, 'login');\n      if ((0, _object.get)(this, 'sessionData.entity.parent.id')) this.router.replaceWith('entity.financials');\n    }\n    model() {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      return this.store.simpleQuery('account', {\n        entity\n      }).then(accounts => accounts.toArray());\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/financials/dashboard-loading\", [\"exports\", \"portal/routes/entity/financials/dashboard\", \"portal/utils/loading-route-from\"], function (_exports, _dashboard, _loadingRouteFrom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/financials/dashboard\",0,\"portal/utils/loading-route-from\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _loadingRouteFrom.default)(_dashboard.default, 'entity/financials/dashboard');\n});","define(\"portal/routes/entity/financials/dashboard\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"portal/mixins/scroll-route\"], function (_exports, _route, _service, _object, _scrollRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/mixins/scroll-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    async model() {\n      const user = (0, _object.get)(this, 'sessionData.user.id');\n      const entity = (0, _object.get)(this, 'sessionData.entity.parent.id') || null;\n      const dashboardQuery = {\n        and: [{\n          field: 'user',\n          op: 'EQ',\n          value: user\n        }]\n      };\n      const kpiQueryOptions = {\n        sort: 'sortIndex'\n      };\n      const accountQueryOptions = {\n        sort: 'sortIndex'\n      };\n      const entitiesQueryOptions = {\n        sort: 'name'\n      };\n      const entityGroupsQueryOptions = {\n        sort: 'sortIndex'\n      };\n      if (entity) {\n        dashboardQuery.and.push({\n          field: 'entity',\n          op: 'EQ',\n          value: entity\n        });\n        const entityFilter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: entity\n          }]\n        };\n        kpiQueryOptions.filter = entityFilter;\n        accountQueryOptions.filter = entityFilter;\n        entitiesQueryOptions.filter = {\n          and: [{\n            field: 'parent',\n            op: 'EQ',\n            value: entity\n          }]\n        };\n        entityGroupsQueryOptions.filter = {\n          and: [{\n            field: 'parentEntity',\n            op: 'EQ',\n            value: entity\n          }]\n        };\n      }\n      const [modules, kpis, accounts, entities, entityGroups] = await Promise.all([this.store.query('dashboard-module', {\n        filter: dashboardQuery,\n        include: 'accounts,kpis,entities,entityGroups'\n      }).then(modules => modules.toArray()), this.store.query('kpi', kpiQueryOptions).then(kpis => kpis.filterBy('active', true)), this.store.query('account', accountQueryOptions).then(accounts => accounts.toArray()), this.store.query('entity', entitiesQueryOptions).then(entities => entities.toArray()), this.store.query('entity-group', entityGroupsQueryOptions).then(groups => groups.toArray())]);\n      return {\n        modules,\n        configData: {\n          kpis,\n          accounts,\n          entities,\n          entityGroups\n        }\n      };\n    }\n  });\n});","define(\"portal/routes/entity/financials/general\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    async model() {\n      let financialOption;\n      const financialOptions = await this.store.simpleQuery('financial-option', {\n        entity: (0, _object.get)(this, 'sessionData.entity.id')\n      }).then(res => res.toArray());\n      if (financialOptions.length) financialOption = financialOptions[0];else financialOption = this.store.createRecord('financial-option', {\n        entity: (0, _object.get)(this, 'sessionData.entity')\n      });\n      return financialOption;\n    }\n  });\n});","define(\"portal/routes/entity/financials/groups\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\"], function (_exports, _route, _service, _object, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    beforeModel() {\n      if ((0, _object.get)(this, 'sessionData.entity.parent.id')) return this.router.replaceWith('entity.financials');\n    },\n    model() {\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.id');\n      return _rsvp.default.hash({\n        groups: (0, _object.get)(this, 'store').query('entity-group', {\n          filter: {\n            and: [{\n              field: 'parentEntity',\n              op: 'EQ',\n              value: parentEntity\n            }]\n          },\n          sort: 'dateCreated',\n          include: 'members,canBeAccessedBy'\n        }).then(groups => groups.toArray()),\n        branches: (0, _object.get)(this, 'store').query('entity', {\n          filter: {\n            and: [{\n              field: 'parent',\n              op: 'EQ',\n              value: parentEntity\n            }]\n          }\n        })\n      });\n    }\n  });\n});","define(\"portal/routes/entity/financials/groups/access\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    templateName: 'entity.financials.groups.membership-and-access',\n    controllerName: 'entity.financials.groups.access',\n    model() {\n      return this.modelFor('entity.financials.groups');\n    },\n    setupController(controller) {\n      this._super(...arguments);\n\n      // Without this, tableContent goes stale when switching between access and membership routes\n      controller.notifyPropertyChange('tableContent');\n    }\n  });\n});","define(\"portal/routes/entity/financials/groups/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    redirect() {\n      this.router.transitionTo('entity.financials.groups.membership');\n    }\n  });\n});","define(\"portal/routes/entity/financials/groups/membership\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    templateName: 'entity.financials.groups.membership-and-access',\n    controllerName: 'entity.financials.groups.membership',\n    model() {\n      return this.modelFor('entity.financials.groups');\n    },\n    setupController(controller) {\n      this._super(...arguments);\n\n      // Without this, tableContent goes stale when switching between access and membership routes\n      controller.notifyPropertyChange('tableContent');\n    }\n  });\n});","define(\"portal/routes/entity/financials/groups/order\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({});\n});","define(\"portal/routes/entity/financials/import\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    beforeModel() {\n      if (!(0, _object.get)(this, 'sessionData.entity.parent.id')) return this.router.replaceWith('entity.financials');\n    },\n    model() {\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      return this.store.simpleQuery('account', {\n        entity: parentEntity\n      });\n    }\n  });\n});","define(\"portal/routes/entity/financials/import/data\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"@ember/utils\", \"moment\"], function (_exports, _route, _service, _object, _rsvp, _utils, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"@ember/utils\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    steps: ['profit-and-loss', 'balance-sheet', 'other-data'],\n    beforeModel(transition) {\n      const steps = (0, _object.get)(this, 'steps');\n      const step = (0, _object.get)(transition, 'to.params.step');\n      if (steps.indexOf(step) === -1) {\n        this.router.replaceWith('entity.financials.import.start');\n      }\n      this._super(...arguments);\n    },\n    model(params) {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const periodString = (0, _object.get)(this, 'sessionData.period');\n      const period = (0, _moment.default)(periodString, 'YYYY-MM').endOf('month').toDate();\n      (0, _object.set)(this, 'step', (0, _object.get)(params, 'step'));\n      return _rsvp.default.hash({\n        accounts: this.modelFor('entity.financials.import').filterBy('category', (0, _object.get)(params, 'step')),\n        maps: (0, _object.get)(this, 'store').simpleQuery('account-map', {\n          entity\n        }).then(maps => maps.toArray()),\n        import: (0, _object.get)(this, 'store').simpleQuery('import', {\n          entity,\n          date: period.toISOString()\n        }).then(imports => {\n          if ((0, _utils.isEmpty)(imports)) {\n            return (0, _object.get)(this, 'store').createRecord('import', {\n              date: period,\n              organisation: (0, _object.get)(this, 'sessionData.organisation'),\n              entity: (0, _object.get)(this, 'sessionData.entity')\n            });\n          }\n          return imports.objectAt(0);\n        })\n      });\n    },\n    activate() {\n      this._super(...arguments);\n    },\n    setupController(controller) {\n      this._super(...arguments);\n      const steps = (0, _object.get)(this, 'steps');\n      const step = (0, _object.get)(this, 'step');\n      (0, _object.set)(this.controllerFor('entity.financials.import'), 'step', steps.indexOf(step) + 2);\n      (0, _object.set)(controller, 'step', step);\n\n      // Refresh the model on any map that has been edited (undoing the edit) and then set editedMaps to empty\n      // This happens so that if a user clicks skip, their unsaved changes are discarded.\n      // If the user clicks save, the editedMaps array should have been cleared after the save has completed.\n      const editedMaps = (0, _object.get)(controller, 'editedMaps');\n      _rsvp.default.all(editedMaps.map(map => {\n        if ((0, _object.get)(map, 'isNew')) return null;\n        return map.reload();\n      })).catch(err => this.send('error', err)).finally(() => (0, _object.set)(controller, 'editedMaps', []));\n    }\n  });\n});","define(\"portal/routes/entity/financials/import/done\", [\"exports\", \"@ember/routing/route\", \"@ember/object\"], function (_exports, _route, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    activate() {\n      this._super(...arguments);\n      (0, _object.set)(this.controllerFor('entity.financials.import'), 'step', 5);\n    }\n  });\n});","define(\"portal/routes/entity/financials/import/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    beforeModel() {\n      this.router.replaceWith('entity.financials.import.start');\n    }\n  });\n});","define(\"portal/routes/entity/financials/import/start\", [\"exports\", \"@ember/routing/route\", \"@ember/object\"], function (_exports, _route, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    activate() {\n      this._super(...arguments);\n      (0, _object.set)(this.controllerFor('entity.financials.import'), 'step', 1);\n    }\n  });\n});","define(\"portal/routes/entity/financials/index\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\", \"portal/mixins/menu-route\"], function (_exports, _route, _object, _service, _menuRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/mixins/menu-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_menuRoute.default, {\n    newFeatureFlags: (0, _service.inject)(),\n    defaultRoute: (0, _object.computed)('newFeatureFlags.canUseFPDashboard', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.canUseFPDashboard') ? 'entity.financials.dashboard' : 'entity.financials.reports.kpis';\n    })\n  });\n});","define(\"portal/routes/entity/financials/kpis\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    beforeModel() {\n      if ((0, _object.get)(this, 'sessionData.entity.parent.id')) this.router.replaceWith('entity.financials');\n    },\n    model() {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      return (0, _object.get)(this, 'store').simpleQuery('kpi', {\n        entity\n      }).then(kpis => kpis.sortBy('sortIndex'));\n    }\n  });\n});","define(\"portal/routes/entity/financials/kpis/index\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    redirect() {\n      const kpis = this.modelFor('entity.financials.kpis');\n      if (!(0, _object.get)(kpis, 'length')) return;\n      const firstId = (0, _object.get)(kpis.objectAt(0), 'id');\n      this.router.transitionTo('entity.financials.kpis.kpi', firstId);\n    }\n  });\n});","define(\"portal/routes/entity/financials/kpis/kpi\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    store: (0, _service.inject)(),\n    model(params) {\n      return (0, _object.get)(this, 'store').findRecord('kpi', params.slug);\n    }\n  });\n});","define(\"portal/routes/entity/financials/planning/strategies\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"moment\", \"portal/utils/sort-accounts\"], function (_exports, _route, _service, _object, _rsvp, _moment, _sortAccounts) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"moment\",0,\"portal/utils/sort-accounts\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    model() {\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const date = (0, _moment.default)(period, 'YYYY-MM').endOf('month').toDate().toISOString();\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const targets = this.store.simpleQuery('target', {\n        entity,\n        date\n      }).then(targetRecords => targetRecords.toArray());\n      const accountQueryOptions = {};\n      const kpiQueryOptions = {};\n      if (parentEntity) {\n        const filter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: parentEntity\n          }]\n        };\n        accountQueryOptions.filter = filter;\n        kpiQueryOptions.filter = filter;\n      }\n      const accounts = this.store.query('account', accountQueryOptions).then(accountRecords => (0, _sortAccounts.default)(accountRecords));\n      const kpis = this.store.query('kpi', kpiQueryOptions).then(kpis => kpis.filterBy('active', true)).then(kpiRecords => kpiRecords.sortBy('sortIndex'));\n      return _rsvp.default.hash({\n        targets,\n        accounts,\n        kpis\n      });\n    }\n  });\n});","define(\"portal/routes/entity/financials/reports/general-ledger/balance-sheet\", [\"exports\", \"portal/routes/entity/financials/reports/general-ledger/base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/financials/reports/general-ledger/base\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _base.default.extend({\n    category: 'balance-sheet'\n  });\n});","define(\"portal/routes/entity/financials/reports/general-ledger/base\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"rsvp\", \"jquery\", \"@ember/object\", \"portal/config/environment\", \"portal/utils/nest\", \"moment\", \"lodash\", \"portal/mixins/scroll-route\"], function (_exports, _route, _service, _rsvp, _jquery, _object, _environment, _nest, _moment, _lodash, _scrollRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"rsvp\",0,\"jquery\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"portal/utils/nest\",0,\"moment\",0,\"lodash\",0,\"portal/mixins/scroll-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    cache: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    includeGroupData: true,\n    /**\n     * If set, only accounts of this category will be loaded.\n     *\n     * @type {String}\n     */\n    category: null,\n    model() {\n      let entity = (0, _object.get)(this, 'sessionData.entity.id');\n      let parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const includeGroupData = (0, _object.get)(this, 'includeGroupData');\n\n      // TODO bit hacky, someone with more time fix this.\n      // It just stops the entity from coming up if you are on a top level entity.\n      // can probably just be removed once reports for top level entities is implemented.\n      if (!parentEntity) {\n        parentEntity = entity;\n        entity = null;\n      }\n      let accounts;\n      let groups;\n      const accountsQuery = {\n        and: [{\n          field: 'entity',\n          op: 'EQ',\n          value: parentEntity\n        }]\n      };\n      if ((0, _object.get)(this, 'category')) {\n        accountsQuery.and.push({\n          field: 'category',\n          op: 'EQ',\n          value: (0, _object.get)(this, 'category')\n        });\n      }\n      const groupQuery = {\n        and: [{\n          field: 'parentEntity',\n          op: 'EQ',\n          value: parentEntity\n        }]\n      };\n      if (!entity) {\n        const userGroups = this.sessionData.user.hasMany('entityGroups').value();\n        const userLinkedEntityGroupsIds = userGroups.toArray().map(item => item.belongsTo('entityGroup').id()).filter(Boolean);\n\n        // TODO do this better.\n        if (!userGroups.length && !(0, _object.get)(this, 'newFeatureFlags.userIsEntityAdmin')) return false;\n        // Group access only\n        groupQuery.and.push({\n          field: '_id',\n          op: 'IN',\n          value: userLinkedEntityGroupsIds\n        });\n      }\n      return _rsvp.default.all([this.store.query('account', {\n        filter: accountsQuery\n      }), this.store.query('entity-group', {\n        filter: groupQuery,\n        include: 'canBeAccessedBy',\n        sort: 'sortIndex'\n      })]).then(([accountRecords = [], groupRecords = []]) => {\n        if (!(0, _object.get)(accountRecords, 'length')) return;\n        accounts = accountRecords.sortBy('sortIndex');\n        groups = entity ? groupRecords.filter(group => {\n          const accessibleItems = (0, _object.get)(group, 'canBeAccessedBy')?.content?.toArray() || [];\n          const filteredItems = accessibleItems.filter(item => (0, _object.get)(item, 'entity.id') === entity);\n          return filteredItems.length > 0;\n        }) : groupRecords?.toArray();\n        const groupIds = _lodash.default.map(groups, 'id');\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/balances';\n        const payload = {\n          periodStart: period,\n          periodEnd: period,\n          periodTypes: ['month', 'ytd'],\n          metrics: accounts.mapBy('id')\n        };\n        const headers = {\n          Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n        };\n        if (entity) {\n          (0, _object.set)(payload, 'entity', entity);\n        }\n        if (includeGroupData) {\n          (0, _object.set)(payload, 'entityGroups', groupIds);\n        }\n        const cacheKey = _lodash.default.merge(payload, {\n          type: 'balances'\n        });\n        const cached = (0, _object.get)(this, 'cache').lookup('reports', cacheKey);\n        if (cached) {\n          return cached;\n        }\n        return _jquery.default.ajax({\n          url,\n          headers,\n          data: JSON.stringify(payload),\n          method: 'POST',\n          contentType: 'application/json'\n        }).then(data => {\n          (0, _object.get)(this, 'cache').store('reports', cacheKey, data);\n          return data;\n        });\n      }).then(res => {\n        if (!res) return;\n        const {\n          data,\n          meta = {}\n        } = res;\n        let balances = [];\n        const firstClosedPeriod = meta.firstClosedPeriod ? (0, _moment.default)(meta.firstClosedPeriod).startOf('month').toDate() : null;\n        meta.groupsRedacted = firstClosedPeriod && period >= (0, _moment.default)(firstClosedPeriod).format('YYYY-MM');\n        groups.forEach(group => (0, _object.set)(group, 'includedEntities', 0));\n        data.forEach(metric => {\n          if (!(0, _object.get)(metric, 'meta') || !(0, _object.get)(metric, 'series')) {\n            return;\n          }\n          const values = [];\n          let entityValues = (0, _object.get)(metric, 'series').findBy('entity', entity);\n          entityValues = extractAndFormat(entity, entityValues);\n          values.push(entityValues);\n          groups.forEach(group => {\n            let groupValues = (0, _object.get)(metric, 'series').findBy('group', (0, _object.get)(group, 'id'));\n            groupValues = extractAndFormat((0, _object.get)(group, 'id'), groupValues);\n            values.push(groupValues);\n\n            // Figure out how many entities were used in calculating this group's data\n            let includedEntities = (0, _object.get)(group, 'includedEntities') || 0;\n            if ((0, _object.get)(groupValues, 'periodTypes.month.includedEntities') > includedEntities) {\n              includedEntities = (0, _object.get)(groupValues, 'periodTypes.month.includedEntities');\n            }\n            if ((0, _object.get)(groupValues, 'periodTypes.ytd.includedEntities') > includedEntities) {\n              includedEntities = (0, _object.get)(groupValues, 'periodTypes.ytd.includedEntities');\n            }\n            (0, _object.set)(group, 'includedEntities', includedEntities);\n          });\n\n          // Start with the metric's metadata and then add some extra fields\n          let balData = _lodash.default.merge(metric.meta, {\n            id: (0, _object.get)(metric, 'meta._id'),\n            data: values,\n            hideChildren: true,\n            depth: getAccountDepth(accounts?.find(account => account.id === (0, _object.get)(metric, 'meta._id'))),\n            print: true\n          });\n          balData = _object.default.create(balData);\n          balances.push(balData);\n        });\n        balances = balances.sortBy('sortIndex');\n        const topLevelAccounts = [];\n        const childAccounts = [];\n        balances.forEach(balance => {\n          if ((0, _object.get)(balance, 'parent') == null) {\n            topLevelAccounts.pushObject(balance);\n          } else {\n            childAccounts.pushObject(balance);\n          }\n        });\n        const nestedAccounts = (0, _nest.default)(topLevelAccounts, childAccounts, false);\n        const entities = includeGroupData ? groups : [];\n        if (entity) {\n          entities.unshift((0, _object.get)(this, 'sessionData.entity'));\n        }\n        const isBranch = Boolean((0, _object.get)(this, 'sessionData.entity.parent.id'));\n        const ownFirstClosedPeriod = (0, _object.get)(((0, _object.get)(this, 'sessionData.entity.financialOptions') || [])[0] || {}, 'firstClosedPeriod');\n        // Own data is withheld if the entity is a brance, FCP exists, and the current period is the same or after the FCP\n        const ownDataWithheld = isBranch && ownFirstClosedPeriod && period >= (0, _moment.default)(ownFirstClosedPeriod).format('YYYY-MM');\n        return {\n          nestedAccounts,\n          entities,\n          firstClosedPeriod,\n          ownDataWithheld,\n          groupsRedacted: meta.groupsRedacted\n        };\n      }, reason => {\n        if ((0, _object.get)(reason, 'status') === 400 && (0, _object.get)(reason, 'responseJSON.message') && (0, _object.get)(reason, 'responseJSON.message').indexOf('Failed to find accounts with the following labels') !== -1) {\n          return this.router.replaceWith('entity.setup-incomplete');\n        } else {\n          throw reason;\n        }\n      });\n    }\n  });\n  function extractAndFormat(entityId, entity) {\n    if (!entity || !(0, _object.get)(entity || {}, 'periods.0')) {\n      return {\n        entity: entityId,\n        month: null,\n        ytd: null\n      };\n    }\n    const data = (0, _object.get)(entity, 'periods.0');\n\n    // Using lodash to avoid errors if we don't make it to the end of the path\n    (0, _object.set)(data, 'month', (0, _object.get)(data, 'periodTypes.month.value'));\n    (0, _object.set)(data, 'ytd', (0, _object.get)(data, 'periodTypes.ytd.value'));\n    (0, _object.set)(data, 'entity', entityId);\n    return data;\n  }\n  function getAccountDepth(account) {\n    let parent = (0, _object.get)(account, 'parent');\n    let depth = 0;\n\n    // Depth check just in case of an infinite loop\n    while ((0, _object.get)(parent, 'id') && depth <= 100) {\n      parent = (0, _object.get)(parent, 'parent');\n      depth += 1;\n    }\n    return depth;\n  }\n});","define(\"portal/routes/entity/financials/reports/general-ledger/itm-profit-and-loss\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"portal/config/environment\", \"moment\", \"lodash\", \"portal/mixins/scroll-route\", \"jquery\"], function (_exports, _route, _service, _object, _rsvp, _environment, _moment, _lodash, _scrollRoute, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"portal/config/environment\",0,\"moment\",0,\"lodash\",0,\"portal/mixins/scroll-route\",0,\"jquery\"eaimeta@70e063a35619d71f\n  const itmReportKpis = {\n    systemMargin: '5a88e5985be3005acc5c6014',\n    achievedMargin: '5a88e59801744a5acc58bc90',\n    grossMargin: '5a88e5989c00575acc486082',\n    netProfit: '5a88e598732ca45acc534c6c',\n    ebitda: '5a88e5988c061c5accc91919'\n  };\n  const itmImportantAccounts = {\n    sales: '557f4a3dfb92c8281395931b',\n    costOfSales: '557f4b7f8d1df11218796263',\n    stockVariation: '5a88d7d59ed0105859a10979',\n    loyaltiesAndFreight: '5a88d82f3457965b08a9a355',\n    otherIncomeAndDepreciation: '557f4f6f8d1df1121879626c',\n    expenses: '557f67af8d1df11218796406'\n  };\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    cache: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    queryParams: {\n      selectedEntityIds: {\n        refreshModel: true,\n        replace: true\n      },\n      selectedGroupIds: {\n        refreshModel: true,\n        replace: true\n      }\n    },\n    model(params) {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const selectedEntities = (params.selectedEntityIds || []).map(id => ({\n        type: 'entity',\n        id\n      }));\n      const selectedGroups = (params.selectedGroupIds || []).map(id => ({\n        type: 'group',\n        id\n      }));\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const previousYearPeriod = (0, _moment.default)((0, _object.get)(this, 'sessionData.period')).subtract(1, 'year').format('YYYY-MM');\n      const token = (0, _object.get)(this, 'session.data.authenticated.access_token');\n      let firstClosedPeriod;\n      const allEntitiesAndGroups = [];\n      if (parentEntity) allEntitiesAndGroups.push({\n        type: 'entity',\n        id: entity\n      });\n      allEntitiesAndGroups.push(...selectedEntities);\n      allEntitiesAndGroups.push(...selectedGroups);\n      const accountQuery = {\n        and: [{\n          field: 'category',\n          op: 'EQ',\n          value: 'profit-and-loss'\n        }]\n      };\n      const kpiQuery = {\n        and: [{\n          field: '_id',\n          op: 'IN',\n          value: _lodash.default.map(itmReportKpis, i => i)\n        }]\n      };\n      if (parentEntity) {\n        accountQuery.and.push({\n          field: 'entity',\n          op: 'EQ',\n          value: parentEntity\n        });\n        kpiQuery.and.push({\n          field: 'entity',\n          op: 'EQ',\n          value: parentEntity\n        });\n      }\n      return Promise.all([this.store.query('account', {\n        filter: accountQuery\n      }), this.store.query('kpi', {\n        filter: kpiQuery\n      })]).then(([accountRecords = [], kpiRecords = []]) => _rsvp.default.all(allEntitiesAndGroups.map(entity => _rsvp.default.all([this.getReport(accountRecords, entity, period, token, 'balances'), this.getReport(accountRecords, entity, previousYearPeriod, token, 'balances'), this.getReport(kpiRecords, entity, period, token, 'kpis'), this.getReport(kpiRecords, entity, previousYearPeriod, token, 'kpis')])))).then(entityReports => {\n        if (!entityReports.length) return null;\n        const reportsHash = {};\n        const salesNumbers = {\n          month: [],\n          ytd: [],\n          monthPrev: [],\n          ytdPrev: []\n        };\n        entityReports.forEach(report => {\n          const salesReport = report[0].data.find(r => r.metric === itmImportantAccounts.sales);\n          const SalesReportPrevious = report[1].data.find(r => r.metric === itmImportantAccounts.sales);\n          salesNumbers.month.push(_lodash.default.get(salesReport, 'series[0].periods[0].periodTypes.month.value', 0));\n          salesNumbers.ytd.push(_lodash.default.get(salesReport, 'series[0].periods[0].periodTypes.ytd.value', 0));\n          salesNumbers.monthPrev.push(_lodash.default.get(SalesReportPrevious, 'series[0].periods[0].periodTypes.month.value', 0));\n          salesNumbers.ytdPrev.push(_lodash.default.get(SalesReportPrevious, 'series[0].periods[0].periodTypes.ytd.value', 0));\n        });\n        const parseReport = (indexCurrent, indexPrevious) => {\n          return entityReports[0][indexCurrent].data.map((account, i) => {\n            const parsedReport = Object.assign({}, account.meta, {\n              month: [],\n              ytd: [],\n              monthPrev: [],\n              ytdPrev: [],\n              children: [],\n              accountMeta: [],\n              monthPercentSales: [],\n              monthPrevPercentSales: [],\n              ytdPercentSales: [],\n              ytdPrevPercentSales: [],\n              monthPercentParent: [],\n              monthPrevPercentParent: [],\n              ytdPercentParent: [],\n              ytdPrevPercentParent: []\n            });\n            entityReports.forEach((reports, j) => {\n              const current = reports[indexCurrent];\n              const previous = reports[indexPrevious];\n              firstClosedPeriod = firstClosedPeriod || current.meta.firstClosedPeriod;\n\n              /*\n              Kpis have a nonAnnualisedValue as well as a value key.\n              For kpis, we need the nonAnnualisedValue and for accounts, we need the value.\n              Fallback to zero if neither is present.\n              */\n              parsedReport.month.push(_lodash.default.get(current, `data[${i}].series[0].periods[0].periodTypes.month.nonAnnualisedValue`) || _lodash.default.get(current, `data[${i}].series[0].periods[0].periodTypes.month.value`) || 0);\n              parsedReport.ytd.push(_lodash.default.get(current, `data[${i}].series[0].periods[0].periodTypes.ytd.nonAnnualisedValue`) || _lodash.default.get(current, `data[${i}].series[0].periods[0].periodTypes.ytd.value`) || 0);\n              parsedReport.monthPrev.push(_lodash.default.get(previous, `data[${i}].series[0].periods[0].periodTypes.month.nonAnnualisedValue`) || _lodash.default.get(previous, `data[${i}].series[0].periods[0].periodTypes.month.value`) || 0);\n              parsedReport.ytdPrev.push(_lodash.default.get(previous, `data[${i}].series[0].periods[0].periodTypes.ytd.nonAnnualisedValue`) || _lodash.default.get(previous, `data[${i}].series[0].periods[0].periodTypes.ytd.value`) || 0);\n              parsedReport.monthPercentSales[j] = salesNumbers.month[j] && parsedReport.month[j] / salesNumbers.month[j];\n              parsedReport.monthPrevPercentSales[j] = salesNumbers.monthPrev[j] && parsedReport.monthPrev[j] / salesNumbers.monthPrev[j];\n              parsedReport.ytdPercentSales[j] = salesNumbers.ytd[j] && parsedReport.ytd[j] / salesNumbers.ytd[j];\n              parsedReport.ytdPrevPercentSales[j] = salesNumbers.ytdPrev[j] && parsedReport.ytdPrev[j] / salesNumbers.ytdPrev[j];\n            });\n            reportsHash[account.metric] = parsedReport;\n            return parsedReport;\n          });\n        };\n        let accountReports = parseReport(0, 1);\n        accountReports = accountReports.sortBy('sortIndex');\n        accountReports.forEach(report => {\n          if (report.parent) {\n            const parentReport = reportsHash[report.parent];\n            entityReports.forEach((entity, i) => {\n              report.monthPercentParent[i] = report.month[i] / parentReport.month[i];\n              report.monthPrevPercentParent[i] = report.monthPrev[i] / parentReport.monthPrev[i];\n              report.ytdPercentParent[i] = report.ytd[i] / parentReport.ytd[i];\n              report.ytdPrevPercentParent[i] = report.ytdPrev[i] / parentReport.ytdPrev[i];\n              report.parent = parentReport;\n            });\n            parentReport.children.push(report);\n          }\n        });\n\n        // Parse KPI reports\n        parseReport(2, 3);\n        const isBranch = Boolean((0, _object.get)(this, 'sessionData.entity.parent.id'));\n        const ownFirstClosedPeriod = (0, _object.get)(((0, _object.get)(this, 'sessionData.entity.financialOptions') || [])[0] || {}, 'firstClosedPeriod');\n        // Own data is withheld if the entity is a brance, FCP exists, and the current period is the same or after the FCP\n        const ownDataWithheld = isBranch && ownFirstClosedPeriod && period >= (0, _moment.default)(ownFirstClosedPeriod).format('YYYY-MM');\n        const groupsRedacted = firstClosedPeriod && period >= (0, _moment.default)(firstClosedPeriod).format('YYYY-MM');\n        return _rsvp.default.hash({\n          ownDataWithheld,\n          groupsRedacted,\n          sales: reportsHash[itmImportantAccounts.sales],\n          costOfSales: reportsHash[itmImportantAccounts.costOfSales],\n          stockVariation: reportsHash[itmImportantAccounts.stockVariation],\n          loyaltiesAndFreight: reportsHash[itmImportantAccounts.loyaltiesAndFreight],\n          otherIncomeAndDepreciation: reportsHash[itmImportantAccounts.otherIncomeAndDepreciation],\n          expenses: reportsHash[itmImportantAccounts.expenses],\n          rebates: reportsHash[itmImportantAccounts.rebates],\n          systemMargin: reportsHash[itmReportKpis.systemMargin],\n          achievedMargin: reportsHash[itmReportKpis.achievedMargin],\n          grossMargin: reportsHash[itmReportKpis.grossMargin],\n          netProfit: reportsHash[itmReportKpis.netProfit],\n          ebitda: reportsHash[itmReportKpis.ebitda]\n        });\n      }, reason => {\n        if ((0, _object.get)(reason, 'status') === 400 && (0, _object.get)(reason, 'responseJSON.message') && (0, _object.get)(reason, 'responseJSON.message').indexOf('Failed to find accounts with the following labels') !== -1) {\n          return this.router.replaceWith('entity.setup-incomplete');\n        } else {\n          throw reason;\n        }\n      });\n    },\n    setupController(controller) {\n      this._super(...arguments);\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id') || (0, _object.get)(this, 'sessionData.entity.id');\n\n      /*\n      This used to be returned by the model hook however it would often fail if the route was being\n      navigated to a second time. This makes sure that we only ever fetch groups once, avoiding the issue.\n      */\n      const allowedGroups = (0, _object.get)(controller, 'allowedGroups');\n      if (!allowedGroups || !allowedGroups.length) {\n        this.store.simpleQuery('entity-group', {\n          parentEntity\n        }).then(groups => {\n          (0, _object.set)(controller, 'allowedGroups', groups.sortBy('name'));\n          (0, _object.set)(controller, 'selectedGroups', (0, _object.get)(controller, 'selectedGroupIds').map(g => groups.findBy('id', g)));\n        });\n      } else {\n        (0, _object.set)(controller, 'selectedGroups', (0, _object.get)(controller, 'selectedGroupIds').map(g => allowedGroups.findBy('id', g)));\n      }\n\n      // This is just to follow the same pattern as groups. Also prevents excess iterations through entities.\n      const allEntities = (0, _object.get)(controller, 'allEntities');\n      if (!allEntities || !allEntities.length) {\n        const entities = (0, _object.get)(this, 'sessionData.allowedEntities').filter(e => (0, _object.get)(e, 'parent.id') === parentEntity);\n        (0, _object.set)(controller, 'allEntities', entities);\n        (0, _object.set)(controller, 'selectedEntities', (0, _object.get)(controller, 'selectedEntityIds').map(e => entities.findBy('id', e)));\n      } else {\n        (0, _object.set)(controller, 'selectedEntities', (0, _object.get)(controller, 'selectedEntityIds').map(e => allEntities.findBy('id', e)));\n      }\n    },\n    getReport(metrics, entity, period, token, type) {\n      if (!(0, _object.get)(metrics, 'length')) return;\n      if (!['kpis', 'balances'].includes(type)) throw new Error('Type must be `kpis` or `balances`');\n      const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/' + type;\n      const payload = {\n        periodStart: period,\n        periodEnd: period,\n        periodTypes: ['month', 'ytd'],\n        metrics: metrics.mapBy('id')\n      };\n      if (!entity.type) payload.entity = entity.id;\n      if (entity.type === 'entity') payload.entity = entity.id;\n      if (entity.type === 'group') payload.entityGroups = [entity.id];\n      const cacheKey = _lodash.default.merge(payload, {\n        type\n      });\n      const cached = (0, _object.get)(this, 'cache').lookup('reports', cacheKey);\n      if (cached) return cached;\n      return new Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url,\n          headers: {\n            Authorization: 'Bearer ' + token\n          },\n          data: JSON.stringify(payload),\n          method: 'POST',\n          contentType: 'application/json'\n        }).then(data => {\n          (0, _object.get)(this, 'cache').store('reports', cacheKey, data);\n          resolve(data);\n        }, reject);\n      });\n    }\n  });\n});","define(\"portal/routes/entity/financials/reports/general-ledger/other-data\", [\"exports\", \"portal/routes/entity/financials/reports/general-ledger/base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/financials/reports/general-ledger/base\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _base.default.extend({\n    category: 'other-data'\n  });\n});","define(\"portal/routes/entity/financials/reports/general-ledger/personal-data\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"jquery\", \"moment\", \"portal/config/environment\", \"lodash\", \"portal/utils/nest\", \"portal/mixins/scroll-route\"], function (_exports, _route, _service, _object, _rsvp, _jquery, _moment, _environment, _lodash, _nest, _scrollRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"jquery\",0,\"moment\",0,\"portal/config/environment\",0,\"lodash\",0,\"portal/utils/nest\",0,\"portal/mixins/scroll-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    cache: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    queryParams: {\n      interval: {\n        refreshModel: true,\n        replace: true\n      },\n      duration: {\n        refreshModel: true,\n        replace: true\n      }\n    },\n    actions: {\n      didTransition() {\n        this._super(...arguments);\n\n        // Make sure that the expanded/collapsed settings on each account get\n        // applied each time the route is visited.\n        this.controller.applyAccountSettings();\n        return true; // Allow action to bubble.\n      }\n    },\n    async model(params) {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const periods = [];\n      for (let i = params.duration - 1; i >= 0; i--) {\n        const age = params.interval * i;\n        periods.push({\n          start: (0, _moment.default)((0, _object.get)(this, 'sessionData.period'), 'YYYY-MM').subtract(age, 'months').format('YYYY-MM'),\n          end: (0, _moment.default)((0, _object.get)(this, 'sessionData.period'), 'YYYY-MM').subtract(age, 'months').format('YYYY-MM')\n        });\n      }\n      const accountQueryOptions = {};\n      if (parentEntity) {\n        accountQueryOptions.filter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: parentEntity\n          }]\n        };\n      }\n      const accountsResult = await this.store.query('account', accountQueryOptions);\n      const accountsList = accountsResult.slice(); // Converts RecordArray to standard JS Array\n\n      const accountsArray = accountsList.map(a => a.id); // Replaced legacy mapBy with native map\n\n      const metricsPromises = periods.map(period => {\n        return this.getMetrics('balances', accountsArray, entity, period);\n      });\n      let data = await _rsvp.default.all(metricsPromises);\n      data = [collectByMetric(data)];\n      const balances = data[0].reduce((allBalances, metric) => {\n        if (metric) {\n          const metricId = (0, _object.get)(metric, 'meta._id');\n          const matchingAccount = accountsList.find(account => account.id === metricId);\n          allBalances.push(_lodash.default.merge(metric.meta, {\n            id: metricId,\n            data: metric.series,\n            hideChildren: true,\n            depth: getAccountDepth(matchingAccount),\n            print: true\n          }));\n        }\n        return allBalances;\n      }, []).sortBy('sortIndex');\n      const topLevelAccounts = [];\n      const childAccounts = [];\n      balances.forEach(balance => {\n        if (balance) {\n          if ((0, _object.get)(balance, 'parent') == null) {\n            topLevelAccounts.pushObject(balance);\n          } else {\n            childAccounts.pushObject(balance);\n          }\n        }\n      });\n      const nestedAccounts = (0, _nest.default)(topLevelAccounts, childAccounts, false);\n      return {\n        nestedAccounts\n      };\n    },\n    getMetrics(type, metrics, entity, period) {\n      return new _rsvp.default.Promise(resolve => {\n        if (!metrics || !metrics.length) {\n          return resolve([]);\n        }\n        const url = `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/reports/${type}`;\n        const payload = {\n          entities: [entity],\n          periodStart: period.start,\n          periodEnd: period.end,\n          periodTypes: period.type,\n          metrics\n        };\n        const headers = {\n          Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n        };\n        const cacheKey = _lodash.default.merge(payload, {\n          type\n        });\n        const cached = (0, _object.get)(this, 'cache').lookup('reports', cacheKey);\n        if (cached) return resolve(_lodash.default.cloneDeep(cached));\n        _jquery.default.ajax({\n          url,\n          method: 'POST',\n          data: JSON.stringify(payload),\n          headers,\n          contentType: 'application/json'\n        }).then(res => {\n          (0, _object.get)(this, 'cache').store('reports', cacheKey, _lodash.default.cloneDeep(res.data));\n          resolve(res.data);\n        });\n      });\n    }\n  });\n  function collectByMetric(dataSets) {\n    const blankObject = {\n      periods: [{\n        periodTypes: {\n          month: {\n            value: 0\n          },\n          ytd: {\n            value: 0\n          }\n        }\n      }]\n    };\n    const formattedValues = dataSets[0];\n    dataSets.forEach((data, index) => {\n      formattedValues.forEach(account => {\n        if (account) {\n          if (index > 0) {\n            data.forEach(dataItem => {\n              if (dataItem) {\n                if (dataItem.metric === account.metric) {\n                  account.series.push(dataItem.series[0]);\n                }\n              }\n            });\n          } else {\n            data.forEach(dataItem => {\n              if (dataItem) {\n                if (dataItem.metric === account.metric) {\n                  if (!dataItem.series[0]) {\n                    account.series.push(blankObject);\n                  }\n                }\n              }\n            });\n          }\n        }\n      });\n    });\n    return formattedValues;\n  }\n  function getAccountDepth(account) {\n    let depth = 0;\n    if (account) {\n      let parent = (0, _object.get)(account, 'parent');\n\n      // Depth check just in case of an infinite loop\n      while ((0, _object.get)(parent, 'id') && depth <= 100) {\n        parent = (0, _object.get)(parent, 'parent');\n        depth += 1;\n      }\n    }\n    return depth;\n  }\n});","define(\"portal/routes/entity/financials/reports/general-ledger/profit-and-loss\", [\"exports\", \"portal/routes/entity/financials/reports/general-ledger/base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/financials/reports/general-ledger/base\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _base.default.extend({\n    category: 'profit-and-loss'\n  });\n});","define(\"portal/routes/entity/financials/reports/imports\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"moment\", \"portal/mixins/scroll-route\"], function (_exports, _route, _service, _object, _rsvp, _jquery, _environment, _moment, _scrollRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"moment\",0,\"portal/mixins/scroll-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    model() {\n      const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n      const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/periods';\n      const payload = {\n        entity: entityId\n      };\n      const dataType = 'json';\n      const headers = {\n        Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n      };\n      const getReport = _jquery.default.ajax({\n        url,\n        headers,\n        data: payload,\n        dataType\n      }).then(res => {\n        let earliest;\n        let latest;\n        const data = ((0, _object.get)(res, 'data') || []).map(entity => ({\n          ...entity,\n          // Convert ISO strings to dates\n          periods: entity.periods.map(period => new Date(period))\n        }));\n        data.forEach(({\n          periods\n        }) => {\n          periods.forEach(date => {\n            if (!earliest || date < earliest) {\n              earliest = date;\n            }\n            if (!latest || date > latest) {\n              latest = date;\n            }\n          });\n        });\n        const periods = [];\n        let current = earliest;\n        while (current <= latest) {\n          periods.push({\n            date: current,\n            count: 0\n          });\n          current = (0, _moment.default)(current).add(1, 'month').endOf('month').toDate();\n        }\n        const entities = [];\n        data.forEach(entity => {\n          const periodsForEntity = [];\n          periods.forEach(period => {\n            const periodData = (0, _object.get)(entity, 'periods').find(entityPeriod => {\n              return (0, _object.get)(period, 'date').getTime() === entityPeriod.getTime();\n            });\n            if (periodData) {\n              period.count += 1;\n            }\n            periodsForEntity.push(periodData || null);\n          });\n          entities.push({\n            id: (0, _object.get)(entity, 'entity'),\n            name: (0, _object.get)(entity, 'entityName'),\n            periods: periodsForEntity\n          });\n        });\n        return {\n          entities,\n          periods\n        };\n      });\n      return _rsvp.default.all([getReport]).then(([report]) => {\n        return report;\n      });\n    }\n  });\n});","define(\"portal/routes/entity/financials/reports/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    redirect() {\n      this.router.transitionTo('entity.financials.reports.kpis');\n    }\n  });\n});","define(\"portal/routes/entity/financials/reports/kpis/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"jquery\", \"rsvp\", \"@ember/object\", \"portal/config/environment\", \"moment\"], function (_exports, _route, _service, _jquery, _rsvp, _object, _environment, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"jquery\",0,\"rsvp\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    cache: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    async model() {\n      let entityId = (0, _object.get)(this, 'sessionData.entity.id');\n      let parentEntityId = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const userGroups = this.sessionData.user.hasMany('entityGroups').value();\n      const userLinkedEntityGroupsIds = userGroups.toArray().map(item => item.belongsTo('entityGroup').id()).filter(Boolean);\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const kpiQueryOptions = {};\n\n      // TODO bit hacky, someone with more time fix this.\n      // It just stops the entity from coming up if you are on a top level entity.\n      // can probably just be removed once reports for top level entities is implemented.\n      if (!parentEntityId) {\n        parentEntityId = entityId;\n        entityId = null;\n        kpiQueryOptions.filter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: parentEntityId\n          }]\n        };\n      }\n\n      // Load the groups and KPIs for this entity first so we know which to include in the report\n      const getGroups = this.loadGroups(parentEntityId, entityId, userLinkedEntityGroupsIds);\n      const getKpis = this.store.query('kpi', kpiQueryOptions).then(kpis => kpis.filterBy('active', true));\n      return _rsvp.default.all([getGroups, getKpis]).then(([groups, kpis]) => this.loadReport(period, groups.mapBy('id'), kpis.mapBy('id'), entityId).then(report => this.formatReport(report, groups, entityId, period))).catch(reason => {\n        throw reason;\n      });\n    },\n    async loadGroups(parentEntity, entity, userGroups) {\n      const query = {\n        and: [{\n          field: 'parentEntity',\n          op: 'EQ',\n          value: parentEntity\n        }]\n      };\n      if (!entity) {\n        if (!userGroups.length && !(0, _object.get)(this, 'newFeatureFlags.userIsAdmin')) return _rsvp.default.resolve([]);\n\n        // TODO this check used to be inverted - pretty sure that was a bug but I'm not sure\n        if (userGroups.length) query.and.push({\n          field: '_id',\n          op: 'IN',\n          value: userGroups || []\n        });\n      }\n      let entityGroups = await this.store.query('entity-group', {\n        filter: query,\n        include: 'members,canBeAccessedBy'\n      }).then(groups => groups.sortBy('sortIndex'));\n      entityGroups = entity ? entityGroups.filter(group => {\n        const accessibleItems = (0, _object.get)(group, 'canBeAccessedBy')?.content?.toArray() || [];\n        const filteredItems = accessibleItems.filter(item => (0, _object.get)(item, 'entity.id') === entity);\n        return filteredItems.length > 0;\n      }) : entityGroups?.toArray();\n      return entityGroups;\n    },\n    loadReport(period, groupIds, kpiIds, entityId) {\n      const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/kpis';\n      const payload = {\n        entityGroups: groupIds,\n        periodStart: period,\n        periodEnd: period,\n        periodTypes: ['month', 'ytd']\n      };\n      if (kpiIds && (0, _object.get)(kpiIds, 'length')) (0, _object.set)(payload, 'metrics', kpiIds);\n      if (entityId) (0, _object.set)(payload, 'entities', [entityId]);\n      const headers = {\n        Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n      };\n      const cacheKey = Object.assign({\n        type: 'kpis'\n      }, payload);\n      const cached = (0, _object.get)(this, 'cache').lookup('reports', cacheKey);\n      if (cached) {\n        return _rsvp.default.resolve(cached);\n      }\n      return _jquery.default.ajax({\n        url,\n        headers,\n        data: JSON.stringify(payload),\n        method: 'POST',\n        contentType: 'application/json'\n      }).then(data => {\n        (0, _object.get)(this, 'cache').store('reports', cacheKey, data);\n        return data;\n      });\n    },\n    formatReport({\n      data,\n      meta = {}\n    }, groups, entityId, period) {\n      const kpis = [];\n      const firstClosedPeriod = meta.firstClosedPeriod ? (0, _moment.default)(meta.firstClosedPeriod).startOf('month').toDate() : null;\n      meta.groupsRedacted = firstClosedPeriod && period >= (0, _moment.default)(firstClosedPeriod).format('YYYY-MM');\n      data.forEach(metric => {\n        if (!(0, _object.get)(metric, 'meta') || !(0, _object.get)(metric, 'series')) {\n          return;\n        }\n        let values = [];\n        if (entityId) {\n          let entityValues = metric.series.findBy('entity', entityId);\n          entityValues = extractFigures(entityValues);\n          (0, _object.set)(entityValues, 'entity', entityId);\n          values.push(entityValues);\n        }\n        groups.forEach(group => {\n          const groupValues = (0, _object.get)(metric, 'series').findBy('group', (0, _object.get)(group, 'id'));\n          const extractedGroupValues = extractFigures(groupValues);\n\n          // Add entity ID to values object for use in table\n          (0, _object.set)(extractedGroupValues, 'entity', (0, _object.get)(group, 'id'));\n          values.push(extractedGroupValues);\n\n          // Figure out how many entities were used in calculating this group's data\n          let includedEntities = (0, _object.get)(group, 'includedEntities') || 0;\n          includedEntities = Math.max(includedEntities, (0, _object.get)(extractedGroupValues, 'periodTypes.month.includedEntities'), (0, _object.get)(extractedGroupValues, 'periodTypes.ytd.includedEntities'));\n          (0, _object.set)(group, 'includedEntities', includedEntities);\n        });\n        values = values.sortBy('sortIndex');\n        const kpiData = _object.default.create({\n          id: (0, _object.get)(metric, 'metric'),\n          name: (0, _object.get)(metric, 'meta.name'),\n          introLine: (0, _object.get)(metric, 'meta.introLine'),\n          slug: (0, _object.get)(metric, 'metric'),\n          format: (0, _object.get)(metric, 'meta.format'),\n          sortIndex: (0, _object.get)(metric, 'meta.sortIndex'),\n          data: values\n        });\n        kpis.push(kpiData);\n      });\n      const isBranch = Boolean((0, _object.get)(this, 'sessionData.entity.parent.id'));\n      const ownFirstClosedPeriod = (0, _object.get)(((0, _object.get)(this, 'sessionData.entity.financialOptions') || [])[0] || {}, 'firstClosedPeriod');\n      // Own data is withheld if the entity is a brance, FCP exists, and the current period is the same or after the FCP\n      const ownDataWithheld = isBranch && ownFirstClosedPeriod && period >= (0, _moment.default)(ownFirstClosedPeriod).format('YYYY-MM');\n      return {\n        kpis: kpis.sortBy('sortIndex'),\n        groups,\n        firstClosedPeriod,\n        ownDataWithheld,\n        groupsRedacted: meta.groupsRedacted\n      };\n    }\n  }); // TODO this has been reverted because the fluff is being used for its metadata.\n  function extractFigures(entity) {\n    const period = (0, _object.get)(entity || {}, 'periods.0');\n    if (!period) {\n      return {\n        month: null,\n        ytd: null\n      };\n    }\n    (0, _object.set)(period, 'month', (0, _object.get)(entity, 'periods.0.periodTypes.month.value'));\n    (0, _object.set)(period, 'ytd', (0, _object.get)(entity, 'periods.0.periodTypes.ytd.value'));\n    (0, _object.set)(period, 'entity', (0, _object.get)(entity, 'entity') || (0, _object.get)(entity, 'group'));\n    return period;\n  }\n});","define(\"portal/routes/entity/financials/reports/kpis/kpi\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"@ember/utils\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"moment\"], function (_exports, _route, _service, _object, _utils, _rsvp, _jquery, _environment, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/utils\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    cache: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    periodType: 'month',\n    beforeModel() {\n      if (!(0, _object.get)(this, 'sessionData.entity.parent.id')) this.router.replaceWith('entity.financials.reports.kpis');\n    },\n    async model(params) {\n      const entity = (0, _object.get)(this, 'sessionData.entity');\n      const parentEntity = (0, _object.get)(entity, 'parent.id');\n      const entityId = (0, _object.get)(entity, 'id');\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const periodOptions = {\n        periodStart: (0, _moment.default)(period, 'YYYY-MM').subtract(11, 'months').format('YYYY-MM'),\n        periodEnd: period,\n        periodTypes: ['month', 'ytd']\n      };\n      const entityGroupIds = await this.store.simpleQuery('link-entity-group-can-be-accessed-by', {\n        entity: entityId\n      }).then(res => res.toArray().map(group => group.belongsTo('entityGroup').id()).filter(Boolean));\n      const groupQuery = {\n        _id: {\n          $in: entityGroupIds\n        },\n        parentEntity\n      };\n      const loadEntityGroups = entityGroupIds.length ? this.store.simpleQuery('entity-group', groupQuery) : _rsvp.default.resolve([]);\n      const loadKpiMeta = this.store.simpleQuery('kpi', {\n        entity: parentEntity\n      }).then(kpis => kpis.filterBy('active', true).sortBy('sortIndex'));\n      return loadEntityGroups.then(entityGroups => {\n        const groupIds = entityGroups.mapBy ? entityGroups.mapBy('id') : entityGroups.map(group => (0, _object.get)(group, 'id'));\n        const loadKPIs = this._getKPIs(params.slug, periodOptions, groupIds);\n        const loadStats = this._getStats(params.slug, periodOptions);\n        return _rsvp.default.all([loadKPIs, loadStats, loadKpiMeta, entity, entityGroups]);\n      }).then(([[kpi], stats, kpiMeta, resolvedEntity, entityGroups]) => {\n        const groups = entityGroups.toArray ? entityGroups.toArray() : entityGroups;\n        const series = groups.sortBy ? groups.sortBy('sortIndex') : [...groups].sort((a, b) => (0, _object.get)(a, 'sortIndex', 0) - (0, _object.get)(b, 'sortIndex', 0));\n        if (!(0, _utils.isEmpty)(resolvedEntity)) {\n          series.unshift(resolvedEntity);\n        }\n        return {\n          kpi,\n          kpiMeta,\n          entityGroups: groups,\n          series,\n          stats,\n          periodOptions\n        };\n      }, reason => {\n        const message = (0, _object.get)(reason, 'responseJSON.message') || '';\n        const missingLabelError = 'Failed to find accounts with the following labels';\n        if (reason.status === 400 && message.indexOf(missingLabelError) > -1) {\n          return this.router.replaceWith('entity.setup-incomplete');\n        } else {\n          throw reason;\n        }\n      });\n    },\n    _getKPIs(metric, {\n      periodStart,\n      periodEnd,\n      periodTypes\n    }, entityGroups) {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/kpis';\n      const payload = {\n        entity,\n        periodStart,\n        periodEnd,\n        periodTypes,\n        entityGroups,\n        metrics: [metric]\n      };\n      const headers = {\n        Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n      };\n      const cached = this._getCached('kpis', payload);\n      if (cached) {\n        return cached;\n      }\n      return _jquery.default.ajax({\n        url,\n        headers,\n        data: JSON.stringify(payload),\n        method: 'POST',\n        contentType: 'application/json'\n      }).then(data => this._cache('kpis', payload, data));\n    },\n    _getStats(metric, {\n      periodEnd,\n      periodTypes\n    }) {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/stats';\n      const token = (0, _object.get)(this, 'session.data.authenticated.access_token');\n      const payload = {\n        entity,\n        periodStart: periodEnd,\n        // we only need one period\n        periodEnd,\n        periodTypes,\n        metrics: [metric]\n      };\n      const headers = {\n        Authorization: `Bearer ${token}`\n      };\n      const cached = this._getCached('kpiStats', payload);\n      if (cached) {\n        return cached;\n      }\n      return _jquery.default.ajax({\n        url,\n        headers,\n        data: payload,\n        dataType: 'json'\n      }).then(data => this._cache('kpiStats', payload, data)).then(data => (0, _object.get)(data, '0.periodTypes'));\n    },\n    _getCached(type, payload) {\n      const key = Object.assign({}, payload, {\n        type\n      });\n      return (0, _object.get)(this, 'cache').lookup('reports', key);\n    },\n    _cache(type, payload, {\n      data\n    }) {\n      const key = Object.assign({}, payload, {\n        type\n      });\n      (0, _object.get)(this, 'cache').store('reports', key, data);\n      return data || [];\n    }\n  });\n});","define(\"portal/routes/entity/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"modules\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n    }\n    beforeModel() {\n      if (this.modules.allowedModules.length === 0) {\n        this.router.transitionTo(this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin') ? 'entity.disabled' // only show the disabled page to entity managers\n        : 'no-access' // otherwise it is assumed you don't have permission to access anything\n        );\n      } else if (this.modules.allowedModules.length === 1) {\n        // If there is only one module allowed, go to it\n        this.router.transitionTo(`entity.${this.modules.allowedModules[0].slug}`);\n      } else {\n        // If there are multiple modules allowed, go to dashboard\n        this.router.transitionTo('entity.module-dashboard');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/module-dashboard\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor3, this);\n    }\n    beforeModel() {\n      // if there aren't at least 2 modules, go back up to the entity index route.\n      if (this.modules.allowedModules.length <= 1) this.router.transitionTo('entity.index');\n      this.helpCenter.hideHelpCenter();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/auto-mapping\", [\"exports\", \"@ember/routing/route\", \"rsvp\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _rsvp, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"rsvp\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.settings');\n    }\n    model() {\n      return _rsvp.default.hash({\n        // Get all directives for the entity, convert to a native array so it can be mutated\n        directives: this._getDirectives(),\n        // Get all available merchant accounts for the entity\n        merchantAccounts: this.store.simpleQuery('supplier-debtor-account', {\n          entity: (0, _object.get)(this, 'sessionData.entity.id')\n        }),\n        // Get all open projects for the entity\n        projects: this.store.simpleQuery('project', {\n          entity: (0, _object.get)(this, 'sessionData.entity.id'),\n          status: 'OPEN'\n        }),\n        basePath: this.basePath\n      });\n    }\n    refreshDirectives() {\n      this._getDirectives().then(directives => (0, _object.set)(this, 'controller.model.directives', directives));\n    }\n    _getDirectives() {\n      return this.store.query('invoice-auto-map-directive', {\n        filter: {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: (0, _object.get)(this, 'sessionData.entity.id')\n          }]\n        },\n        sort: '-dateCreated'\n      }).then(r => r.toArray());\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"refreshDirectives\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"refreshDirectives\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/settings/chart-of-accounts/chart-of-account\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.chart-of-accounts.chart-of-account');\n      _defineProperty(this, \"getGlAccount\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          let glAccount;\n          if (id === 'new') {\n            glAccount = yield this.store.createRecord('gl-account', {\n              entity: this.sessionData.entity\n            });\n          } else {\n            glAccount = yield this.store.findRecord('gl-account', id);\n          }\n          return glAccount;\n        }\n      }), null, \"getGlAccount\", null));\n    }\n    model({\n      chart_of_account_id: glAccountId\n    }) {\n      this.getGlAccount.perform(glAccountId);\n      return {\n        glAccount: this.getGlAccount\n      };\n    }\n    willTransition() {\n      const glAccount = this.currentModel.glAccount.last.value;\n      if (glAccount?.isNew) glAccount.destroyRecord();\n      if (glAccount.hasDirtyAttributes) glAccount.unloadRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/settings/chart-of-accounts/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageNumber: {\n          refreshModel: true\n        },\n        searchString: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [25, 50, 75, 100, 125, 150, 200]);\n      _defineProperty(this, \"getGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (pageSize, pageNumber, searchString) {\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }],\n            or: []\n          };\n          if (searchString) {\n            filter.or.push({\n              field: 'name',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'code',\n              op: 'ILIKE',\n              value: searchString\n            });\n          }\n          const glAccounts = yield this.store.query('gl-account', {\n            filter,\n            page: {\n              number: pageNumber || Number(1),\n              size: pageSize || this.pageSizes[0]\n            },\n            sort: 'name'\n          });\n          return glAccounts;\n        }\n      }), null, \"getGlAccounts\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageNumber = 1,\n      searchString\n    }) {\n      this.getGlAccounts.perform(pageSize, pageNumber, searchString);\n      return {\n        glAccounts: this.getGlAccounts,\n        pageSize: Number(pageSize),\n        pageNumber: Number(pageNumber),\n        pageSizes: this.pageSizes\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/company\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"portal/models/purchase-order-option\", \"portal/models/entity-invoice-option\"], function (_exports, _asyncArrowRuntime, _route, _service, _object, _purchaseOrderOption, _entityInvoiceOption) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"portal/models/purchase-order-option\",0,\"portal/models/entity-invoice-option\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor3, this);\n      _defineProperty(this, \"loadEntityProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.loadProfitMargins();\n          if (!entity.belongsTo('profitMargin').value()) {\n            entity.profitMargin = this.store.createRecord('profit-margin', {\n              entity\n            });\n          }\n        }\n      }), null, \"loadEntityProfitMargin\", null));\n      _defineProperty(this, \"loadEntityStagePaymentOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.loadStagePaymentOptions();\n          if (!entity.belongsTo('stagePaymentOption').value()) {\n            entity.stagePaymentOption = this.store.createRecord('stage-payment-option', {\n              entity\n            });\n          }\n        }\n      }), null, \"loadEntityStagePaymentOptions\", null));\n      _defineProperty(this, \"loadPurchaseOrderOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          const options = yield this.store.simpleQuery('purchase-order-option', {\n            entity: entity.id\n          });\n          if (!options?.[0]) return _purchaseOrderOption.default.defaultOptionsRecord(this.store, this.sessionData.entity);\n          return options?.[0];\n        }\n      }), null, \"loadPurchaseOrderOptions\", null));\n      _defineProperty(this, \"loadInvoiceOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          const options = yield this.store.query('entity-invoice-option', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: entity.id\n              }]\n            }\n          });\n          if (!options?.[0]) return _entityInvoiceOption.default.defaultOptionsRecord(this.store, this.sessionData.entity);\n          return options?.[0];\n        }\n      }), null, \"loadInvoiceOptions\", null));\n      _defineProperty(this, \"loadCompanyLogo\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.loadCompanyLogo();\n          return entity.safeBelongsToValue('companyLogo');\n        }\n      }), null, \"loadCompanyLogo\", null));\n      _defineProperty(this, \"loadGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const accounts = yield this.accountingPlatform.loadActivePlatformGlAccounts.perform();\n          return accounts?.toArray();\n        }\n      }), null, \"loadGlAccounts\", null));\n    }\n    model() {\n      const entity = this.sessionData.entity;\n      this.loadEntityProfitMargin.perform(entity);\n      this.loadPurchaseOrderOptions.perform(entity);\n      this.loadInvoiceOptions.perform(entity);\n      this.loadEntityStagePaymentOptions.perform(entity);\n      this.loadCompanyLogo.perform(entity);\n      this.loadGlAccounts.perform();\n      return {\n        entity,\n        loadEntityProfitMargin: this.loadEntityProfitMargin,\n        purchaseOrderOptions: this.loadPurchaseOrderOptions,\n        invoiceOptions: this.loadInvoiceOptions,\n        stagePaymentOptions: this.loadEntityStagePaymentOptions,\n        companyLogo: this.loadCompanyLogo,\n        glAccounts: this.loadGlAccounts\n      };\n    }\n    willTransition() {\n      const profitMargin = this.currentModel.entity?.belongsTo('profitMargin').value();\n      if (profitMargin?.isNew) profitMargin.destroyRecord();\n      const purchaseOrderOption = this.currentModel.purchaseOrderOptions.last.value;\n      if (purchaseOrderOption?.isNew) purchaseOrderOption.destroyRecord();\n      const invoiceOptions = this.currentModel.invoiceOptions.last.value;\n      if (invoiceOptions?.isNew) invoiceOptions.destroyRecord();\n      const stagePaymentOption = this.currentModel.entity?.belongsTo('stagePaymentOption').value();\n      if (stagePaymentOption?.isNew) stagePaymentOption.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/settings/contacts/contact\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\", \"portal/utils/email-validator\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset, _emailValidator, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"ember-changeset\",0,\"portal/utils/email-validator\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.contacts.contact');\n      _defineProperty(this, \"validateName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 0 || this.intl.t('validation.Name');\n      });\n      _defineProperty(this, \"validateEmail\", (newValue, oldValue) => {\n        const email = (newValue ?? oldValue) || '';\n        if (email.length) return (0, _emailValidator.default)(email) || this.intl.t('validation.Email');\n        return true;\n      });\n      _defineProperty(this, \"supplierValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'name':\n            return this.validateName(newValue, oldValue);\n          case 'contactEmail':\n            return this.validateEmail(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"supplierValidationMap\", {\n        name: this.validateName,\n        contactEmail: this.validateEmail\n      });\n      _defineProperty(this, \"getSupplierChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (supplier) {\n          yield supplier.last;\n          return (0, _emberChangeset.Changeset)(supplier.last.value, this.supplierValidator, this.supplierValidationMap);\n        }\n      }), null, \"getSupplierChangeset\", null));\n      _defineProperty(this, \"getSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          let supplier;\n          if (id === 'new') {\n            supplier = yield this.store.createRecord('contact', {\n              entity: this.sessionData.entity\n            });\n          } else {\n            supplier = yield this.store.findRecord('contact', id, {\n              adapterOptions: {\n                fields: {\n                  contacts: '_meta.isLinkedToResources'\n                }\n              }\n            });\n          }\n          return supplier;\n        }\n      }), null, \"getSupplier\", null));\n    }\n    model({\n      contact_id: supplierId\n    }) {\n      this.getSupplier.perform(supplierId);\n      this.getSupplierChangeset.perform(this.getSupplier);\n      return {\n        supplier: this.getSupplier,\n        supplierChangeset: this.getSupplierChangeset\n      };\n    }\n    willTransition(transition) {\n      const supplier = this.currentModel.supplier.last.value;\n      const changeset = this.currentModel.supplierChangeset.last.value;\n      const hasUnsaved = !!changeset?.isDirty;\n      const isNew = !!supplier?.isNew;\n      if ((hasUnsaved || isNew) && !confirm('You have unsaved changes that will be lost if you decide to leave, do you want continue?')) {\n        transition.abort();\n        return false;\n      }\n      if (supplier?.isNew) supplier.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/settings/contacts/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"portal/utils/search-term-escape\"], function (_exports, _asyncArrowRuntime, _route, _service, _searchTermEscape) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"portal/utils/search-term-escape\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageNumber: {\n          refreshModel: true\n        },\n        searchString: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [25, 50, 75, 100, 125, 150, 200]);\n      _defineProperty(this, \"getSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (pageSize, pageNumber, searchString) {\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }],\n            or: []\n          };\n          if (searchString) {\n            filter.or.push({\n              field: 'name',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'contactPerson',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'contactEmail',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'address',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'contactNumber',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'aliases',\n              op: 'CONTAINS_ILIKE',\n              value: `${(0, _searchTermEscape.searchTermEscape)(searchString)}`\n            });\n          }\n          const suppliers = yield this.store.query('contact', {\n            filter,\n            page: {\n              number: pageNumber || Number(1),\n              size: pageSize || this.pageSizes[0]\n            },\n            sort: 'name',\n            fields: {\n              contacts: '_meta.isLinkedToResources'\n            }\n          });\n          return suppliers;\n        }\n      }), null, \"getSuppliers\", null));\n      _defineProperty(this, \"getFirstDuplicateSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const duplicateSuppliers = yield this.buildaPrice.getDuplicateSuppliers({\n            entityId: this.sessionData.entity.id,\n            pageSize: 1\n          });\n          return duplicateSuppliers.length;\n        }\n      }), null, \"getFirstDuplicateSuppliers\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageNumber = 1,\n      searchString\n    }) {\n      this.getSuppliers.perform(pageSize, pageNumber, searchString);\n      this.getFirstDuplicateSuppliers.perform();\n      return {\n        hasDuplicateSuppliers: this.getFirstDuplicateSuppliers,\n        suppliers: this.getSuppliers,\n        pageSize: Number(pageSize),\n        pageNumber: Number(pageNumber),\n        pageSizes: this.pageSizes\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/estimates/embedded-page\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"pricing\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      /**\n       * Exhaustive list of pages available in pricing. Some may not be used.\n       */\n      _defineProperty(this, \"PAGES\", {\n        // Job Management\n        jobList: {\n          path: 'syspages/workjob/jobmessage/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Job list')\n        },\n        ownTakeoff: {\n          path: 'syspages/workjob/jobtemplate/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Own takeoff')\n        },\n        // Settings\n        materialProduct: {\n          path: 'syspages/settings/myProduct/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Material product')\n        },\n        materialRate: {\n          path: 'syspages/settings/materialRate/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Material rate')\n        },\n        plant: {\n          path: 'syspages/settings/plant/main.jsp',\n          pageTitle: 'Plant'\n        },\n        dataDictionary: {\n          path: 'syspages/workmodel/jobdict/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Data dictionary')\n        },\n        flatRateResource: {\n          path: 'syspages/settings/flatRateResource/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Flat rate resource')\n        },\n        subcontractorRate: {\n          path: 'syspages/workmodel/workgangsubcontrator/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Subcontractor rate')\n        },\n        crTools: {\n          path: 'syspages/settings/crTools/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.CR tools')\n        },\n        miscTemplate: {\n          path: 'syspages/settings/miscTemplate/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Misc template')\n        },\n        sumsSettings: {\n          path: 'syspages/settings/sumsSetting/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Sums settings')\n        },\n        labourFactor: {\n          path: 'syspages/settings/labourFactor/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Labour factor')\n        },\n        pendingList: {\n          path: 'syspages/settings/pendingList/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Pending list')\n        },\n        overheadTemplates: {\n          path: 'syspages/settings/overheadTemplate/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Overhead templates')\n        },\n        workgangPositions: {\n          path: 'syspages/settings/workgangPositions/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Workgang positions')\n        },\n        workgangs: {\n          path: 'syspages/settings/workgangs/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Workgangs')\n        },\n        subcontractorList: {\n          path: 'syspages/settings/subcontracorList/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Subcontractor list')\n        },\n        // System\n        organization: {\n          path: 'syspages/system/sysdept/main.jsp',\n          pageTitle: this.intl.t('common.Company')\n        },\n        staff: {\n          path: 'syspages/system/sysuser/usermain.jsp',\n          pageTitle: this.intl.t('common.Staff')\n        },\n        role: {\n          path: 'syspages/system/sysrole/main.jsp',\n          pageTitle: this.intl.t('common.Role')\n        },\n        menu: {\n          path: 'syspages/system/sysnode/noderole.jsp',\n          pageTitle: this.intl.t('common.Menu')\n        },\n        trade: {\n          path: 'syspages/system/datajobtype/main.jsp',\n          pageTitle: this.intl.t('common.Trade')\n        },\n        messaging: {\n          path: 'syspages/system/sysworkmessage/main.jsp',\n          pageTitle: this.intl.t('common.Messaging')\n        },\n        reminders: {\n          path: 'syspages/system/sysworkmessagealrm/main.jsp',\n          pageTitle: this.intl.t('common.Reminders')\n        },\n        usage: {\n          path: 'syspages/system/datausage/main.jsp',\n          pageTitle: this.intl.t('common.Usage')\n        },\n        unit: {\n          path: 'syspages/system/dataunit/main.jsp',\n          pageTitle: this.intl.t('common.Unit')\n        },\n        subheader: {\n          path: 'syspages/system/datasubheader/main.jsp',\n          pageTitle: this.intl.t('common.Subheader')\n        },\n        quoteUploader: {\n          path: 'syspages/system/quoteuploader/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Quote uploader')\n        }\n      });\n      _defineProperty(this, \"_cachedSession\", null);\n      // { entityId, timestamp, sessionId }\n      _defineProperty(this, \"getSessionId\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const sessionId = yield this.pricing.getSessionId();\n          return sessionId;\n        }\n      }), null, \"getSessionId\", null));\n    }\n    model(params) {\n      const {\n        page\n      } = params;\n      const {\n        path,\n        pageTitle\n      } = this.PAGES[page];\n      return {\n        path,\n        pageTitle,\n        sessionId: this.getSessionId.perform(),\n        isUnknown: !path\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"pricing\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\", \"@ember/service\"], function (_exports, _route, _menuRoute, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    get defaultRoute() {\n      if (this.newFeatureFlags.includesFeatureFlags('userIsWorker')) return 'entity.settings.people.workers';\n      return 'entity.settings.profile';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/integrations\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-changeset\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"ips\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"getItmSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const suppliers = [];\n          if (!this.newFeatureFlags.includesFeatureFlags('canUseItmInvoiceIntegration')) return suppliers;\n          const [eaccountsInvoiceIntegration] = this.sessionData.entity.hasMany('eaccountsInvoiceIntegration').value() || [];\n          const requestedSupplierIds = eaccountsInvoiceIntegration?.requests?.map(request => request.supplier) ?? [];\n          if (!requestedSupplierIds.length) {\n            return this.store.query('itm-supplier', {\n              sort: 'name'\n            });\n          }\n          return this.store.query('itm-supplier', {\n            filter: {\n              and: [{\n                field: '_id',\n                op: 'NOT_IN',\n                value: requestedSupplierIds\n              }]\n            },\n            sort: 'name'\n          });\n        }\n      }), null, \"getItmSuppliers\", null));\n      _defineProperty(this, \"getIpsConnection\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.newFeatureFlags.includesFeatureFlags('entityCanUseIPS')) return;\n          const [ipsConnection] = yield this.store.query('ips-connection', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            }\n          });\n          if (ipsConnection) return ipsConnection;\n          return this.store.createRecord('ips-connection', {\n            entity: this.sessionData.entity\n          });\n        }\n      }), null, \"getIpsConnection\", null));\n    }\n    get defaultEntityFeatures() {\n      const features = [];\n      if (this.newFeatureFlags.includesFeatureFlags('canUsePayroll')) {\n        features.push({\n          key: 'canUseSmartPayroll',\n          label: this.intl.t('entity.settings.integrations.Enable Smartly integration'),\n          description: null,\n          regions: ['NZL']\n        });\n        features.push({\n          key: 'canUseKeypay',\n          label: this.intl.t('entity.settings.integrations.Enable KeyPay integration'),\n          description: null,\n          regions: ['NZL', 'AUS']\n        });\n        features.push({\n          key: 'canUseCrystalPayroll',\n          label: this.intl.t('entity.settings.integrations.Enable Crystal Payroll integration'),\n          description: null,\n          regions: ['NZL']\n        });\n      }\n      return features.filter(f => f.regions.includes(this.sessionData.entity.region));\n    }\n    getFeaturePermissionsChangeset(entityAttributes) {\n      const entityAttributesChangeSet = {};\n      this.defaultEntityFeatures.forEach(f => {\n        entityAttributesChangeSet[f.key] = entityAttributes.includes(f.key);\n      });\n      return (0, _emberChangeset.Changeset)(entityAttributesChangeSet);\n    }\n    async beforeModel() {\n      try {\n        await this.ips.getUsage();\n      } catch {\n        // without usage IPS is not ready, so nothing of its UI renders\n      }\n    }\n    model() {\n      const entity = this.sessionData.entity;\n      const entityAttributes = entity.entityLinkedAttributes;\n      this.getItmSuppliers.perform();\n      this.getIpsConnection.perform();\n      return {\n        entity,\n        defaultEntityFeatures: this.defaultEntityFeatures,\n        featurePermissionsChangeset: this.getFeaturePermissionsChangeset(entityAttributes),\n        itmSuppliers: this.getItmSuppliers,\n        ipsConnection: this.getIpsConnection\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\", \"portal/utils/email-validator\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"validateFirstName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 1 || this.intl.t('validation.firstName');\n      });\n      _defineProperty(this, \"validateLastName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 0 || this.intl.t('validation.lastName');\n      });\n      _defineProperty(this, \"validateEmail\", (newValue, oldValue) => {\n        const email = (newValue ?? oldValue) || '';\n        return (0, _emailValidator.default)(email) || this.intl.t('validation.Email');\n      });\n      _defineProperty(this, \"userValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'firstName':\n            return this.validateFirstName(newValue, oldValue);\n          case 'lastName':\n            return this.validateLastName(newValue, oldValue);\n          case 'email':\n            return this.validateEmail(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"userValidationMap\", {\n        firstName: this.validateFirstName,\n        lastName: this.validateLastName,\n        email: this.validateEmail\n      });\n      _defineProperty(this, \"getUserChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user) {\n          yield user.last;\n          return (0, _emberChangeset.Changeset)(user.last.value, this.userValidator, this.userValidationMap);\n        }\n      }), null, \"getUserChangeset\", null));\n      _defineProperty(this, \"getUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          if (id === 'new') return this.store.createRecord('user', {\n            firstName: '',\n            lastName: '',\n            email: '',\n            phoneNumber: ''\n          });\n          const user = yield this.store.findRecord('user', id);\n\n          // fetch user's attributes\n          // TODO this should be possible with an includes but our API doesn't work properly\n          yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n            user: id,\n            entity: this.sessionData.entity.id\n          }), this.store.simpleQuery('user-project-attribute', {\n            user: id,\n            entity: this.sessionData.entity.id\n          })]);\n          return user;\n        }\n      }), null, \"getUser\", null));\n    }\n    model({\n      client_id: id\n    }) {\n      this.getUser.perform(id);\n      this.getUserChangeset.perform(this.getUser);\n      return {\n        user: this.getUser,\n        userChangeset: this.getUserChangeset,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/clients/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"getClients\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const userEntityAttributesFilter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'user',\n              op: 'NE',\n              value: this.sessionData.user.id\n            }]\n          };\n\n          //fetch all user attributes to avoid id query\n          yield this.store.query('user-attribute', {});\n\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const userAttributes = yield this.store.query('user-entity-attribute', {\n            filter: userEntityAttributesFilter,\n            include: 'user'\n          });\n          if (!userAttributes.length) return [];\n          const users = [...new Set(userAttributes.map(ua => ua.belongsTo('user').value()))];\n          const clients = users.filter(u => u.includesClaimsAboutEntity(this.sessionData.entity.id, 'hasClientRole', 'canViewEntity')).sortBy('firstName');\n          return clients;\n        }\n      }), null, \"getClients\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      this.getClients.perform();\n      return {\n        clients: this.getClients,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      // we can default to this route if user has access to users\n      if (this.newFeatureFlags.includesFeatureFlags('canUseUsers')) {\n        this.router.transitionTo('entity.settings.people.users');\n      } else if (this.newFeatureFlags.includesFeatureFlags('canUseWorkers')) {\n        this.router.transitionTo('entity.settings.people.workers');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/subcontractors/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"getSubcontractors\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const userEntityAttributesFilter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'user',\n              op: 'NE',\n              value: this.sessionData.user.id\n            }]\n          };\n\n          //fetch all user attributes to avoid id query\n          yield this.store.query('user-attribute', {});\n\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const userAttributes = yield this.store.query('user-entity-attribute', {\n            filter: userEntityAttributesFilter,\n            include: 'user'\n          });\n          if (!userAttributes.length) return [];\n          const users = [...new Set(userAttributes.map(ua => ua.belongsTo('user').value()))];\n          const subcontractors = users.filter(u => u.includesClaimsAboutEntity(this.sessionData.entity.id, 'hasSubcontractorRole', 'canViewEntity')).sortBy('firstName');\n          return subcontractors;\n        }\n      }), null, \"getSubcontractors\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      this.getSubcontractors.perform();\n      return {\n        subcontractors: this.getSubcontractors,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\", \"portal/utils/email-validator\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.managerAttributes = _exports.default = _exports.canViewWorkersAttributes = _exports.canViewTimesheetsAttributes = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProjectsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewPayrollReportsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canViewBillsAttributes = _exports.canUseReportBuilderReportAttributes = _exports.canManageWorkersAttributes = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManageProjectsAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageIntegrationsAttributes = _exports.canManageHealthAndSafetyAttributes = _exports.canManageFileStorageAttributes = _exports.canManageEstimatesAttributes = _exports.canManageEstimateSettingsAttributes = _exports.canManageBudgetsAttributes = _exports.canManageBillsAttributes = _exports.canCreateHealthAndSafetyAttributes = _exports.administratorAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canManageEstimatesAttributes = _exports.canManageEstimatesAttributes = ['canManageEstimates'];\n  const canManageEstimateSettingsAttributes = _exports.canManageEstimateSettingsAttributes = ['canManageEstimatesSettings'];\n  const canViewBillsAttributes = _exports.canViewBillsAttributes = ['canViewBills'];\n  const canManageBillsAttributes = _exports.canManageBillsAttributes = ['canManageBills'];\n  const canViewTimesheetsAttributes = _exports.canViewTimesheetsAttributes = ['canViewTimesheets', 'canViewNotes'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets', 'canManageNotes'];\n  const canViewProjectsAttributes = _exports.canViewProjectsAttributes = ['canViewProjects'];\n  const canManageProjectsAttributes = _exports.canManageProjectsAttributes = ['canManageProjects'];\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewProjectBudgetVersions', 'canViewTaskBudgets'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageProjectBudgetVersions', 'canManageTaskBudgets'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewProjectQuoteVersions', 'canViewTaskQuotes'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewProjectProgressVersions', 'canViewTaskProgress'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageProjectProgressVersions', 'canManageTaskProgress'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageProjectQuoteVersions', 'canManageTaskQuotes'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canViewWorkersAttributes = _exports.canViewWorkersAttributes = ['canViewWorkers'];\n  const canManageWorkersAttributes = _exports.canManageWorkersAttributes = ['canManageWorkers'];\n  const canViewPayrollReportsAttributes = _exports.canViewPayrollReportsAttributes = ['canViewPayrollReports'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageProjectSchedulingVersions', 'canManageTaskScheduling', 'canManageSchedulingReports', 'canManageProgressReports'];\n  const canUseReportBuilderReportAttributes = _exports.canUseReportBuilderReportAttributes = ['canUseReportBuilderReport'];\n  const canCreateHealthAndSafetyAttributes = _exports.canCreateHealthAndSafetyAttributes = ['canCreateHealthAndSafety'];\n  const canManageHealthAndSafetyAttributes = _exports.canManageHealthAndSafetyAttributes = ['canManageHealthAndSafety'];\n  const canManageIntegrationsAttributes = _exports.canManageIntegrationsAttributes = ['canManageIntegrations'];\n  const managerAttributes = _exports.managerAttributes = [...canManageEstimatesAttributes, ...canManageEstimateSettingsAttributes, ...canViewBillsAttributes, ...canManageBillsAttributes, ...canViewTimesheetsAttributes, ...canManageTimesheetsAttributes, ...canViewProjectsAttributes, ...canManageProjectsAttributes, ...canViewTasksAttributes, ...canManageTasksAttributes, ...canViewBudgetsAttributes, ...canManageBudgetsAttributes, ...canViewQuotesAttributes, ...canViewProgressAttributes, ...canManageProgressAttributes, ...canManageQuotesAttributes, ...canViewProductsAttributes, ...canManageProductsAttributes, ...canViewFileStorageAttributes, ...canManageFileStorageAttributes, ...canViewWorkersAttributes, ...canManageWorkersAttributes, ...canViewPayrollReportsAttributes, ...canViewBudgetReportsAttributes, ...canViewBudgetLabourHourReportsAttributes, ...canViewQuoteReportsAttributes, ...canViewCostReportsAttributes, ...canViewCostLabourHourReportsAttributes, ...canViewChargeupReportsAttributes, ...canViewProgressReportsAttributes, ...canViewSchedulingReportsAttributes, ...canManageSchedulingReportsAttributes, ...canUseReportBuilderReportAttributes, ...canCreateHealthAndSafetyAttributes, ...canManageHealthAndSafetyAttributes, ...canManageIntegrationsAttributes, 'canManageUsers', 'canManageBudgetReports', 'canManageInvoicingReports', 'canManageQuoteReports', 'canManagePayrollReports', 'canManageTaskScheduling', 'canManageCostReports', 'canManageSuppliers', 'canManageChargeupReports', 'canManageProjectSchedulingVersions'];\n  const administratorAttributes = _exports.administratorAttributes = ['canManageEntity'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"validateFirstName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 1 || this.intl.t('validation.firstName');\n      });\n      _defineProperty(this, \"validateLastName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 0 || this.intl.t('validation.lastName');\n      });\n      _defineProperty(this, \"validateEmail\", (newValue, oldValue) => {\n        const email = (newValue ?? oldValue) || '';\n        return (0, _emailValidator.default)(email) || this.intl.t('validation.Email');\n      });\n      _defineProperty(this, \"userValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'firstName':\n            return this.validateFirstName(newValue, oldValue);\n          case 'lastName':\n            return this.validateLastName(newValue, oldValue);\n          case 'email':\n            return this.validateEmail(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"userValidationMap\", {\n        firstName: this.validateFirstName,\n        lastName: this.validateLastName,\n        email: this.validateEmail\n      });\n      _defineProperty(this, \"validateIsCompanyAdministrator\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateCanManageEverything\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateWorkers\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"permissionsValidator\", ({\n        key,\n        newValue,\n        oldValue,\n        changes: _changes,\n        content: _content\n      }) => {\n        switch (key) {\n          case 'isCompanyAdministrator':\n            return this.validateIsCompanyAdministrator(newValue, oldValue);\n          case 'canManageEverything':\n            return this.validateCanManageEverything(newValue, oldValue);\n          case 'workers':\n            return this.validateWorkers(newValue, oldValue);\n          case 'canViewBills':\n            return true;\n          case 'canManageBills':\n            return true;\n          case 'canViewTimesheets':\n            return true;\n          case 'canManageTimesheets':\n            return true;\n          case 'canViewProjects':\n            return true;\n          case 'canManageProjects':\n            return true;\n          case 'canViewTasks':\n            return true;\n          case 'canManageTasks':\n            return true;\n          case 'canViewBudgets':\n            return true;\n          case 'canManageBudgets':\n            return true;\n          case 'canViewProgress':\n            return true;\n          case 'canManageProgress':\n            return true;\n          case 'canViewQuotes':\n            return true;\n          case 'canManageQuotes':\n            return true;\n          case 'canViewProducts':\n            return true;\n          case 'canManageProducts':\n            return true;\n          case 'canViewFileStorage':\n            return true;\n          case 'canManageFileStorage':\n            return true;\n          case 'canViewWorkers':\n            return true;\n          case 'canManageWorkers':\n            return true;\n          case 'canViewPayrollReports':\n            return true;\n          case 'canViewBudgetFinancialReports':\n            return true;\n          case 'canViewBudgetLabourHourReports':\n            return true;\n          case 'canViewQuoteReports':\n            return true;\n          case 'canViewCostFinancialReports':\n            return true;\n          case 'canViewCostLabourHourReports':\n            return true;\n          case 'canViewChargeupReports':\n            return true;\n          case 'canViewProgressReports':\n            return true;\n          case 'canViewSchedulingReports':\n            return true;\n          case 'canManageSchedulingReports':\n            return true;\n          case 'canEstimate':\n            return true;\n          case 'canManageEstimateSettings':\n            return true;\n          case 'canUseReportBuilderReport':\n            return true;\n          case 'canCreateHealthAndSafety':\n            return true;\n          case 'canManageHealthAndSafety':\n            return true;\n          case 'canManageIntegrations':\n            return true;\n          case 'canViewInvoicingReports':\n            return true;\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"permissionsValidationMap\", {\n        isCompanyAdministrator: this.validateIsCompanyAdministrator,\n        canManageEverything: this.validateCanManageEverything,\n        workers: this.validateWorkers,\n        canViewBills: () => null,\n        canManageBills: () => null,\n        canViewTimesheets: () => null,\n        canManageTimesheets: () => null,\n        canViewProjects: () => null,\n        canManageProjects: () => null,\n        canViewTasks: () => null,\n        canManageTasks: () => null,\n        canViewBudgets: () => null,\n        canManageBudgets: () => null,\n        canViewProgress: () => null,\n        canManageProgress: () => null,\n        canViewQuotes: () => null,\n        canManageQuotes: () => null,\n        canViewProducts: () => null,\n        canManageProducts: () => null,\n        canViewFileStorage: () => null,\n        canManageFileStorage: () => null,\n        canViewWorkers: () => null,\n        canManageWorkers: () => null,\n        canViewPayrollReports: () => null,\n        canViewBudgetFinancialReports: () => null,\n        canViewBudgetLabourHourReports: () => null,\n        canViewQuoteReports: () => null,\n        canViewCostFinancialReports: () => null,\n        canViewCostLabourHourReports: () => null,\n        canViewChargeupReports: () => null,\n        canViewProgressReports: () => null,\n        canViewSchedulingReports: () => null,\n        canManageSchedulingReports: () => null,\n        canEstimate: () => null,\n        canManageEstimateSettings: () => null,\n        canUseReportBuilderReport: () => null,\n        canCreateHealthAndSafety: () => null,\n        canManageHealthAndSafety: () => null,\n        canManageIntegrations: () => null,\n        canViewInvoicingReports: () => null\n      });\n      _defineProperty(this, \"getUserChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user) {\n          yield user.last;\n          return (0, _emberChangeset.Changeset)(user.last.value, this.userValidator, this.userValidationMap);\n        }\n      }), null, \"getUserChangeset\", null));\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user, workers) {\n          yield user.last;\n          yield workers.last;\n          const usersWorkers = workers.last.value.toArray().filter(w => user.last.value.includesClaimsAboutWorker(w.id, 'canManageTimesheets'));\n          return (0, _emberChangeset.Changeset)({\n            isCompanyAdministrator: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...administratorAttributes),\n            canManageEverything: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...managerAttributes),\n            workers: usersWorkers,\n            canViewBills: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBillsAttributes),\n            canManageBills: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageBillsAttributes),\n            canViewTimesheets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewTimesheetsAttributes),\n            canManageTimesheets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageTimesheetsAttributes),\n            canViewProjects: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProjectsAttributes),\n            canManageProjects: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageProjectsAttributes),\n            canViewTasks: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewTasksAttributes),\n            canManageTasks: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageTasksAttributes),\n            canViewBudgets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBudgetsAttributes),\n            canManageBudgets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageBudgetsAttributes),\n            canViewQuotes: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewQuotesAttributes),\n            canManageQuotes: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageQuotesAttributes),\n            canViewProgress: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProgressAttributes),\n            canManageProgress: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageProgressAttributes),\n            canViewProducts: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProductsAttributes),\n            canManageProducts: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageProductsAttributes),\n            canViewFileStorage: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewFileStorageAttributes),\n            canManageFileStorage: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageFileStorageAttributes),\n            canViewWorkers: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewWorkersAttributes),\n            canManageWorkers: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageWorkersAttributes),\n            canViewPayrollReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewPayrollReportsAttributes),\n            canViewBudgetFinancialReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewQuoteReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewQuoteReportsAttributes),\n            canViewCostFinancialReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewCostLabourHourReportsAttributes),\n            canViewChargeupReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewChargeupReportsAttributes),\n            canViewProgressReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProgressReportsAttributes),\n            canViewSchedulingReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewSchedulingReportsAttributes),\n            canManageSchedulingReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageSchedulingReportsAttributes),\n            canEstimate: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageEstimatesAttributes),\n            canManageEstimateSettings: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageEstimateSettingsAttributes),\n            canUseReportBuilderReport: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canUseReportBuilderReportAttributes),\n            canCreateHealthAndSafety: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canCreateHealthAndSafetyAttributes),\n            canManageHealthAndSafety: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageHealthAndSafetyAttributes),\n            canManageIntegrations: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageIntegrationsAttributes),\n            canViewInvoicingReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewInvoicingReportsAttributes)\n          }, this.permissionsValidator, this.permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          if (id === 'new') return this.store.createRecord('user', {\n            firstName: '',\n            lastName: '',\n            email: '',\n            phoneNumber: ''\n          });\n          const user = yield this.store.findRecord('user', id);\n\n          // fetch user's attributes\n          // TODO this should be possible with an includes but our API doesn't work properly\n          yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n            user: id,\n            entity: this.sessionData.entity.id\n          }), this.store.simpleQuery('user-worker-attribute', {\n            user: id,\n            entity: this.sessionData.entity.id\n          })]);\n          return user;\n        }\n      }), null, \"getUser\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const workers = yield this.store.simpleQuery('worker', {\n            entity: this.sessionData.entity.id\n          });\n          return workers;\n        }\n      }), null, \"getWorkers\", null));\n    }\n    model({\n      subcontractor_id: id\n    }) {\n      this.getUser.perform(id);\n      this.getWorkers.perform();\n      this.getUserChangeset.perform(this.getUser);\n      this.getPermissionsChangeset.perform(this.getUser, this.getWorkers);\n      return {\n        user: this.getUser,\n        userChangeset: this.getUserChangeset,\n        permissionsChangeset: this.getPermissionsChangeset,\n        workers: this.getWorkers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/users/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const userEntityAttributesFilter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'user',\n              op: 'NE',\n              value: this.sessionData.user.id\n            }]\n          };\n\n          //fetch all user attributes to avoid id query\n          yield this.store.query('user-attribute', {});\n\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const userAttributes = yield this.store.query('user-entity-attribute', {\n            filter: userEntityAttributesFilter,\n            include: 'user'\n          });\n          const users = [...new Set(userAttributes.map(ua => ua.belongsTo('user').value()))];\n          return users.filter(u => u.excludesClaimsAboutEntity(this.sessionData.entity.id, 'hasClientRole', 'hasSubcontractorRole')).sortBy('firstName');\n        }\n      }), null, \"getUsers\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const workers = yield this.store.query('worker', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            }\n          });\n          return workers;\n        }\n      }), null, \"getWorkers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      this.getUsers.perform();\n      this.getWorkers.perform();\n      return {\n        users: this.getUsers,\n        workers: this.getWorkers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\", \"portal/utils/email-validator\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.managerAttributes = _exports.default = _exports.canViewWorkersAttributes = _exports.canViewUsersAttributes = _exports.canViewTimesheetsAttributes = _exports.canViewTasksAttributes = _exports.canViewStagePaymentsAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewPurchaseOrdersAttributes = _exports.canViewProjectsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewPayrollReportsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewInvoicesAttributes = _exports.canViewFinancialReportingAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canViewBillsAttributes = _exports.canViewAccessReportsAttributes = _exports.canUseReportBuilderReportAttributes = _exports.canManageWorkersAttributes = _exports.canManageUsersAttributes = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageStagePaymentsAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManagePurchaseOrdersAttributes = _exports.canManageProjectsAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageInvoicesAttributes = _exports.canManageIntegrationsAttributes = _exports.canManageHealthAndSafetyAttributes = _exports.canManageFinancialReportingAttributes = _exports.canManageFileStorageAttributes = _exports.canManageEstimatesAttributes = _exports.canManageEstimateSettingsAttributes = _exports.canManageBudgetsAttributes = _exports.canManageBillsAttributes = _exports.canCreateHealthAndSafetyAttributes = _exports.canApprovePurchaseOrdersAttributes = _exports.canApproveInvoicesAttributes = _exports.administratorAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // generic\n  const administratorAttributes = _exports.administratorAttributes = ['canManageEntity'];\n  // BP\n  const canManageEstimatesAttributes = _exports.canManageEstimatesAttributes = ['canManageEstimates'];\n  const canManageEstimateSettingsAttributes = _exports.canManageEstimateSettingsAttributes = ['canManageEstimatesSettings'];\n  const canViewUsersAttributes = _exports.canViewUsersAttributes = ['canViewUsers'];\n  const canManageUsersAttributes = _exports.canManageUsersAttributes = ['canManageUsers'];\n  const canViewBillsAttributes = _exports.canViewBillsAttributes = ['canViewBills'];\n  const canManageBillsAttributes = _exports.canManageBillsAttributes = ['canManageBills'];\n  const canViewTimesheetsAttributes = _exports.canViewTimesheetsAttributes = ['canViewTimesheets', 'canViewNotes'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets', 'canManageNotes'];\n  const canViewProjectsAttributes = _exports.canViewProjectsAttributes = ['canViewProjects'];\n  const canManageProjectsAttributes = _exports.canManageProjectsAttributes = ['canManageProjects'];\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewProjectBudgetVersions', 'canViewTaskBudgets'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageProjectBudgetVersions', 'canManageTaskBudgets'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewProjectProgressVersions', 'canViewTaskProgress'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageProjectProgressVersions', 'canManageTaskProgress'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewProjectQuoteVersions', 'canViewTaskQuotes'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageProjectQuoteVersions', 'canManageTaskQuotes'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canViewInvoicesAttributes = _exports.canViewInvoicesAttributes = ['canViewInvoices'];\n  const canManageInvoicesAttributes = _exports.canManageInvoicesAttributes = ['canManageInvoices'];\n  const canApproveInvoicesAttributes = _exports.canApproveInvoicesAttributes = ['canApproveInvoices'];\n  const canViewPurchaseOrdersAttributes = _exports.canViewPurchaseOrdersAttributes = ['canViewPurchaseOrders'];\n  const canManagePurchaseOrdersAttributes = _exports.canManagePurchaseOrdersAttributes = ['canManagePurchaseOrders'];\n  const canApprovePurchaseOrdersAttributes = _exports.canApprovePurchaseOrdersAttributes = ['canApprovePurchaseOrders'];\n  const canViewStagePaymentsAttributes = _exports.canViewStagePaymentsAttributes = ['canViewStagePayments'];\n  const canManageStagePaymentsAttributes = _exports.canManageStagePaymentsAttributes = ['canManageStagePayments'];\n  const canViewWorkersAttributes = _exports.canViewWorkersAttributes = ['canViewWorkers'];\n  const canManageWorkersAttributes = _exports.canManageWorkersAttributes = ['canManageWorkers'];\n  const canViewPayrollReportsAttributes = _exports.canViewPayrollReportsAttributes = ['canViewPayrollReports'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewAccessReportsAttributes = _exports.canViewAccessReportsAttributes = ['canViewAccessReports'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageProjectSchedulingVersions', 'canManageTaskScheduling', 'canManageSchedulingReports', 'canManageProgressReports'];\n  const canUseReportBuilderReportAttributes = _exports.canUseReportBuilderReportAttributes = ['canUseReportBuilderReport'];\n  const canCreateHealthAndSafetyAttributes = _exports.canCreateHealthAndSafetyAttributes = ['canCreateHealthAndSafety'];\n  const canManageHealthAndSafetyAttributes = _exports.canManageHealthAndSafetyAttributes = ['canManageHealthAndSafety'];\n  const canManageIntegrationsAttributes = _exports.canManageIntegrationsAttributes = ['canManageIntegrations'];\n  const managerAttributes = _exports.managerAttributes = [...canManageEstimatesAttributes, ...canManageEstimateSettingsAttributes, ...canViewBillsAttributes, ...canManageBillsAttributes, ...canViewTimesheetsAttributes, ...canManageTimesheetsAttributes, ...canViewProjectsAttributes, ...canManageProjectsAttributes, ...canViewTasksAttributes, ...canManageTasksAttributes, ...canViewBudgetsAttributes, ...canManageBudgetsAttributes, ...canViewQuotesAttributes, ...canManageProgressAttributes, ...canViewProgressAttributes, ...canManageQuotesAttributes, ...canViewProductsAttributes, ...canManageProductsAttributes, ...canViewInvoicesAttributes, ...canManageInvoicesAttributes, ...canApproveInvoicesAttributes, ...canViewPurchaseOrdersAttributes, ...canManagePurchaseOrdersAttributes, ...canApprovePurchaseOrdersAttributes, ...canViewStagePaymentsAttributes, ...canManageStagePaymentsAttributes, ...canViewFileStorageAttributes, ...canManageFileStorageAttributes, ...canViewWorkersAttributes, ...canManageWorkersAttributes, ...canViewPayrollReportsAttributes, ...canViewBudgetReportsAttributes, ...canViewBudgetLabourHourReportsAttributes, ...canViewQuoteReportsAttributes, ...canViewCostReportsAttributes, ...canViewCostLabourHourReportsAttributes, ...canViewChargeupReportsAttributes, ...canViewProgressReportsAttributes, ...canViewSchedulingReportsAttributes, ...canManageSchedulingReportsAttributes, ...canUseReportBuilderReportAttributes, ...canCreateHealthAndSafetyAttributes, ...canManageHealthAndSafetyAttributes, ...canManageIntegrationsAttributes, 'canManageUsers', 'canManageBudgetReports', 'canManageInvoicingReports', 'canManageQuoteReports', 'canManagePayrollReports', 'canManageTaskScheduling', 'canManageCostReports', 'canManageSuppliers', 'canManageChargeupReports', 'canManageProjectSchedulingVersions'];\n  // FP\n  const canViewFinancialReportingAttributes = _exports.canViewFinancialReportingAttributes = ['canViewFinancialReporting', 'canViewStrategies'];\n  const canManageFinancialReportingAttributes = _exports.canManageFinancialReportingAttributes = ['canAdminFinancialReporting', 'canDeleteStrategies'];\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"validateFirstName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 1 || this.intl.t('validation.firstName');\n      });\n      _defineProperty(this, \"validateLastName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 0 || this.intl.t('validation.lastName');\n      });\n      _defineProperty(this, \"validateEmail\", (newValue, oldValue) => {\n        const email = (newValue ?? oldValue) || '';\n        return (0, _emailValidator.default)(email) || this.intl.t('validation.Email');\n      });\n      _defineProperty(this, \"userValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'firstName':\n            return this.validateFirstName(newValue, oldValue);\n          case 'lastName':\n            return this.validateLastName(newValue, oldValue);\n          case 'email':\n            return this.validateEmail(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"userValidationMap\", {\n        firstName: this.validateFirstName,\n        lastName: this.validateLastName,\n        email: this.validateEmail\n      });\n      _defineProperty(this, \"validateIsCompanyAdministrator\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateCanManageEverything\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateWorkers\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"permissionsValidator\", ({\n        key,\n        newValue,\n        oldValue,\n        changes: _changes,\n        content: _content\n      }) => {\n        switch (key) {\n          case 'isCompanyAdministrator':\n            return this.validateIsCompanyAdministrator(newValue, oldValue);\n          case 'canManageEverything':\n            return this.validateCanManageEverything(newValue, oldValue);\n          case 'workers':\n            return this.validateWorkers(newValue, oldValue);\n          case 'canViewBills':\n            return true;\n          case 'canManageBills':\n            return true;\n          case 'canViewTimesheets':\n            return true;\n          case 'canManageTimesheets':\n            return true;\n          case 'canViewProjects':\n            return true;\n          case 'canManageProjects':\n            return true;\n          case 'canViewTasks':\n            return true;\n          case 'canManageTasks':\n            return true;\n          case 'canViewBudgets':\n            return true;\n          case 'canManageBudgets':\n            return true;\n          case 'canViewProgress':\n            return true;\n          case 'canManageProgress':\n            return true;\n          case 'canViewQuotes':\n            return true;\n          case 'canManageQuotes':\n            return true;\n          case 'canViewProducts':\n            return true;\n          case 'canManageProducts':\n            return true;\n          case 'canViewInvoices':\n            return true;\n          case 'canManageInvoices':\n            return true;\n          case 'canApproveInvoices':\n            return true;\n          case 'canViewPurchaseOrders':\n            return true;\n          case 'canManagePurchaseOrders':\n            return true;\n          case 'canViewFileStorage':\n            return true;\n          case 'canManageFileStorage':\n            return true;\n          case 'canViewWorkers':\n            return true;\n          case 'canManageWorkers':\n            return true;\n          case 'canViewPayrollReports':\n            return true;\n          case 'canViewBudgetFinancialReports':\n            return true;\n          case 'canViewBudgetLabourHourReports':\n            return true;\n          case 'canViewQuoteReports':\n            return true;\n          case 'canViewCostFinancialReports':\n            return true;\n          case 'canViewCostLabourHourReports':\n            return true;\n          case 'canViewChargeupReports':\n            return true;\n          case 'canViewProgressReports':\n            return true;\n          case 'canViewSchedulingReports':\n            return true;\n          case 'canManageSchedulingReports':\n            return true;\n          case 'canViewAccessReports':\n            return true;\n          case 'canEstimate':\n            return true;\n          case 'canManageEstimateSettings':\n            return true;\n          case 'canUseReportBuilderReport':\n            return true;\n          case 'canCreateHealthAndSafety':\n            return true;\n          case 'canManageHealthAndSafety':\n            return true;\n          case 'canManageIntegrations':\n            return true;\n          case 'canViewUsers':\n            return true;\n          case 'canManageUsers':\n            return true;\n          case 'canViewFinancialReporting':\n            return true;\n          case 'canManageFinancialReporting':\n            return true;\n          case 'canViewStagePayments':\n            return true;\n          case 'canManageStagePayments':\n            return true;\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"permissionsValidationMap\", {\n        isCompanyAdministrator: this.validateIsCompanyAdministrator,\n        canManageEverything: this.validateCanManageEverything,\n        workers: this.validateWorkers,\n        canViewBills: () => null,\n        canManageBills: () => null,\n        canViewTimesheets: () => null,\n        canManageTimesheets: () => null,\n        canViewProjects: () => null,\n        canManageProjects: () => null,\n        canViewTasks: () => null,\n        canManageTasks: () => null,\n        canViewBudgets: () => null,\n        canManageBudgets: () => null,\n        canViewProgress: () => null,\n        canManageProgress: () => null,\n        canViewQuotes: () => null,\n        canManageQuotes: () => null,\n        canViewProducts: () => null,\n        canManageProducts: () => null,\n        canViewInvoices: () => null,\n        canManageInvoices: () => null,\n        canApproveInvoices: () => null,\n        canViewPurchaseOrders: () => null,\n        canManagePurchaseOrders: () => null,\n        canApprovePurchaseOrders: () => null,\n        canViewFileStorage: () => null,\n        canManageFileStorage: () => null,\n        canViewStagePayments: () => null,\n        canManageStagePayments: () => null,\n        canViewWorkers: () => null,\n        canManageWorkers: () => null,\n        canViewPayrollReports: () => null,\n        canViewBudgetFinancialReports: () => null,\n        canViewBudgetLabourHourReports: () => null,\n        canViewInvoicingReports: () => null,\n        canViewQuoteReports: () => null,\n        canViewCostFinancialReports: () => null,\n        canViewCostLabourHourReports: () => null,\n        canViewChargeupReports: () => null,\n        canViewProgressReports: () => null,\n        canViewSchedulingReports: () => null,\n        canViewAccessReports: () => null,\n        canManageSchedulingReports: () => null,\n        canEstimate: () => null,\n        canManageEstimateSettings: () => null,\n        canUseReportBuilderReport: () => null,\n        canCreateHealthAndSafety: () => null,\n        canManageHealthAndSafety: () => null,\n        canManageIntegrations: () => null,\n        canViewUsers: () => null,\n        canManageUsers: () => null,\n        canViewFinancialReporting: () => null,\n        canManageFinancialReporting: () => null\n      });\n      _defineProperty(this, \"getUserChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user) {\n          yield user.last;\n          return (0, _emberChangeset.Changeset)(user.last.value, this.userValidator, this.userValidationMap);\n        }\n      }), null, \"getUserChangeset\", null));\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user, workers) {\n          yield user.last;\n          yield workers.last;\n          const usersWorkers = workers.last.value.toArray().filter(w => user.last.value.includesClaimsAboutWorker(w.id, 'canManageTimesheets'));\n          return (0, _emberChangeset.Changeset)({\n            isCompanyAdministrator: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...administratorAttributes),\n            canManageEverything: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...managerAttributes),\n            workers: usersWorkers,\n            canViewBills: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBillsAttributes),\n            canManageBills: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageBillsAttributes),\n            canViewTimesheets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewTimesheetsAttributes),\n            canManageTimesheets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageTimesheetsAttributes),\n            canViewProjects: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProjectsAttributes),\n            canManageProjects: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageProjectsAttributes),\n            canViewTasks: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewTasksAttributes),\n            canManageTasks: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageTasksAttributes),\n            canViewBudgets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBudgetsAttributes),\n            canManageBudgets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageBudgetsAttributes),\n            canViewProgress: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProgressAttributes),\n            canManageProgress: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageProgressAttributes),\n            canViewQuotes: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewQuotesAttributes),\n            canManageQuotes: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageQuotesAttributes),\n            canViewProducts: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProductsAttributes),\n            canManageProducts: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageProductsAttributes),\n            canViewInvoices: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewInvoicesAttributes),\n            canManageInvoices: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageInvoicesAttributes),\n            canApproveInvoices: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canApproveInvoicesAttributes),\n            canViewPurchaseOrders: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewPurchaseOrdersAttributes),\n            canManagePurchaseOrders: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManagePurchaseOrdersAttributes),\n            canApprovePurchaseOrders: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canApprovePurchaseOrdersAttributes),\n            canViewStagePayments: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewStagePaymentsAttributes),\n            canManageStagePayments: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageStagePaymentsAttributes),\n            canViewFileStorage: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewFileStorageAttributes),\n            canManageFileStorage: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageFileStorageAttributes),\n            canViewWorkers: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewWorkersAttributes),\n            canManageWorkers: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageWorkersAttributes),\n            canViewPayrollReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewPayrollReportsAttributes),\n            canViewBudgetFinancialReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewInvoicingReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewInvoicingReportsAttributes),\n            canViewQuoteReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewQuoteReportsAttributes),\n            canViewCostFinancialReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewCostLabourHourReportsAttributes),\n            canViewChargeupReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewChargeupReportsAttributes),\n            canViewProgressReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProgressReportsAttributes),\n            canViewSchedulingReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewSchedulingReportsAttributes),\n            canManageSchedulingReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageSchedulingReportsAttributes),\n            canViewAccessReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewAccessReportsAttributes),\n            canEstimate: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageEstimatesAttributes),\n            canManageEstimateSettings: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageEstimateSettingsAttributes),\n            canUseReportBuilderReport: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canUseReportBuilderReportAttributes),\n            canCreateHealthAndSafety: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canCreateHealthAndSafetyAttributes),\n            canManageHealthAndSafety: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageHealthAndSafetyAttributes),\n            canManageIntegrations: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageIntegrationsAttributes),\n            canViewUsers: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewUsersAttributes),\n            canManageUsers: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageUsersAttributes),\n            canViewFinancialReporting: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewFinancialReportingAttributes),\n            canManageFinancialReporting: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageFinancialReportingAttributes)\n          }, this.permissionsValidator, this.permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          if (id === 'new') return this.store.createRecord('user', {\n            firstName: '',\n            lastName: '',\n            email: '',\n            phoneNumber: ''\n          });\n          const user = yield this.store.findRecord('user', id);\n\n          // fetch user's attributes\n          // TODO this should be possible with an includes but our API doesn't work properly\n          yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n            user: id,\n            entity: this.sessionData.entity.id\n          }), this.store.simpleQuery('user-worker-attribute', {\n            user: id,\n            entity: this.sessionData.entity.id\n          })]);\n          return user;\n        }\n      }), null, \"getUser\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const workers = yield this.store.query('worker', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            },\n            sort: 'firstName'\n          }).then(r => r.toArray());\n          return workers;\n        }\n      }), null, \"getWorkers\", null));\n    }\n    model({\n      user_id: id\n    }) {\n      this.getUser.perform(id);\n      this.getWorkers.perform();\n      this.getUserChangeset.perform(this.getUser);\n      this.getPermissionsChangeset.perform(this.getUser, this.getWorkers);\n      return {\n        basePath: this.basePath,\n        user: this.getUser,\n        userChangeset: this.getUserChangeset,\n        permissionsChangeset: this.getPermissionsChangeset,\n        workers: this.getWorkers\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"queryParams\", {\n        filter: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter) {\n          const _filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          if (filter === 'active') {\n            _filter.and.push({\n              field: 'isActive',\n              op: 'EQ',\n              value: true\n            });\n          } else if (filter === 'inactive') {\n            _filter.and.push({\n              field: 'isActive',\n              op: 'EQ',\n              value: false\n            });\n          }\n          const workers = yield this.store.query('worker', {\n            filter: _filter,\n            sort: 'firstName'\n          });\n          return workers;\n        }\n      }), null, \"getWorkers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model({\n      filter = 'active'\n    }) {\n      this.getWorkers.perform(filter);\n      return {\n        workers: this.getWorkers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\", \"portal/utils/email-validator\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.workerHealthAndSafetyAttributes = _exports.workerAttributes = _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const workerAttributes = _exports.workerAttributes = ['canViewProjects', 'canViewTasks'];\n  const workerHealthAndSafetyAttributes = _exports.workerHealthAndSafetyAttributes = ['canCreateHealthAndSafety'];\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"validateFirstName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 1 || this.intl.t('validation.firstName');\n      });\n      _defineProperty(this, \"validateLastName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 0 || this.intl.t('validation.lastName');\n      });\n      _defineProperty(this, \"validateEmail\", (newValue, oldValue) => {\n        const email = (newValue ?? oldValue) || '';\n        return (0, _emailValidator.default)(email) || this.intl.t('validation.Email');\n      });\n      _defineProperty(this, \"validatePhoneNumber\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validatePayRate\", (newValue, oldValue, changes, content) => {\n        const isContractor = changes.isContractor ?? content.isContractor;\n        // contractors don't need a pay rate\n        if (isContractor) return true;\n        const rate = newValue ?? oldValue;\n        return rate >= 0 || this.intl.t('validation.payRate');\n      });\n      _defineProperty(this, \"validateChargeOutRate\", (newValue, oldValue) => {\n        const rate = newValue ?? oldValue;\n        return rate >= 0 || this.intl.t('validation.chargeOutRate');\n      });\n      _defineProperty(this, \"validateCostRate\", (newValue, oldValue, changes, content) => {\n        const isContractor = changes.isContractor ?? content.isContractor;\n        // contractors don't need a pay rate\n        if (isContractor) return true;\n        const rate = newValue ?? oldValue;\n        return rate >= 0 || this.intl.t('validation.costRate');\n      });\n      _defineProperty(this, \"validateIsContractor\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateSmartPayrollEmployeeCode\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateSmartPayrollEmployeeDepartmentCode\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateXeroEmployee\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateXeroEarningsRate\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateEmergencyContactNameOne\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateEmergencyContactRelationshipOne\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateEmergencyContactPhoneNumberOne\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateEmergencyContactNameTwo\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateEmergencyContactRelationshipTwo\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateEmergencyContactPhoneNumberTwo\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"workerValidationMap\", {\n        firstName: this.validateFirstName,\n        lastName: this.validateLastName,\n        email: this.validateEmail,\n        phoneNumber: this.validatePhoneNumber,\n        payRate: this.validatePayRate,\n        chargeOutRate: this.validateChargeOutRate,\n        costRate: this.validateCostRate,\n        isContractor: this.validateIsContractor,\n        smartPayrollEmployeeCode: this.validateSmartPayrollEmployeeCode,\n        smartPayrollEmployeeDepartmentCode: this.validateSmartPayrollEmployeeDepartmentCode,\n        xeroEmployee: this.validateXeroEmployee,\n        xeroEarningsRate: this.validateXeroEarningsRate,\n        emergencyContactNameOne: this.validateEmergencyContactNameOne,\n        emergencyContactRelationshipOne: this.validateEmergencyContactRelationshipOne,\n        emergencyContactPhoneNumberOne: this.validateEmergencyContactPhoneNumberOne,\n        emergencyContactNameTwo: this.validateEmergencyContactNameTwo,\n        emergencyContactRelationshipTwo: this.validateEmergencyContactRelationshipTwo,\n        emergencyContactPhoneNumberTwo: this.validateEmergencyContactPhoneNumberTwo\n      });\n      _defineProperty(this, \"getWorkerChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (worker) {\n          yield worker.last;\n          return (0, _emberChangeset.Changeset)(worker.last.value, this.workerValidator, this.workerValidationMap);\n        }\n      }), null, \"getWorkerChangeset\", null));\n      _defineProperty(this, \"workerValidator\", ({\n        key,\n        newValue,\n        oldValue,\n        changes,\n        content\n      }) => {\n        switch (key) {\n          case 'firstName':\n            return this.validateFirstName(newValue, oldValue);\n          case 'lastName':\n            return this.validateLastName(newValue, oldValue);\n          case 'email':\n            return this.validateEmail(newValue, oldValue);\n          case 'phoneNumber':\n            return this.validatePhoneNumber(newValue, oldValue);\n          case 'payRate':\n            if (this.canUsePayRate) return this.validatePayRate(newValue, oldValue, changes, content);\n            return true;\n          case 'chargeOutRate':\n            if (this.canUseChargeOutRate) return this.validateChargeOutRate(newValue, oldValue);\n            return true;\n          case 'costRate':\n            if (this.canUseCostRate) return this.validateCostRate(newValue, oldValue, changes, content);\n            return true;\n          case 'isContractor':\n            return this.validateIsContractor(newValue, oldValue);\n          case 'smartPayrollEmployeeCode':\n            return this.validateSmartPayrollEmployeeCode(newValue, oldValue);\n          case 'smartPayrollEmployeeDepartmentCode':\n            return this.validateSmartPayrollEmployeeDepartmentCode(newValue, oldValue);\n          case 'xeroEmployee':\n            return this.validateXeroEmployee(newValue, oldValue);\n          case 'xeroEarningsRate':\n            return this.validateXeroEarningsRate(newValue, oldValue);\n          case 'emergencyContactNameOne':\n            return this.validateEmergencyContactNameOne(newValue, oldValue);\n          case 'emergencyContactRelationshipOne':\n            return this.validateEmergencyContactRelationshipOne(newValue, oldValue);\n          case 'emergencyContactPhoneNumberOne':\n            return this.validateEmergencyContactPhoneNumberOne(newValue, oldValue);\n          case 'emergencyContactNameTwo':\n            return this.validateEmergencyContactNameTwo(newValue, oldValue);\n          case 'emergencyContactRelationshipTwo':\n            return this.validateEmergencyContactRelationshipTwo(newValue, oldValue);\n          case 'emergencyContactPhoneNumberTwo':\n            return this.validateEmergencyContactPhoneNumberTwo(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"getWorkerPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (worker) {\n          yield worker.last;\n          return (0, _emberChangeset.Changeset)({\n            canSeeProjectsAndTasks: worker.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...workerAttributes) ?? true,\n            canCreateHealthAndSafety: worker.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...workerHealthAndSafetyAttributes) ?? true\n          });\n        }\n      }), null, \"getWorkerPermissionsChangeset\", null));\n      _defineProperty(this, \"getWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (worker_id) {\n          if (worker_id === 'new') return this.store.createRecord('worker', {\n            firstName: '',\n            lastName: '',\n            email: '',\n            phoneNumber: '',\n            entity: this.sessionData.entity\n          });\n          const [worker] = yield Promise.all([this.store.findRecord('worker', worker_id),\n          // manually request the attributes - find record \"includes\" doesn't work well\n          this.store.simpleQuery('worker-entity-attribute', {\n            worker: worker_id\n          })]);\n          return worker;\n        }\n      }), null, \"getWorker\", null));\n      _defineProperty(this, \"getLabourCostCalculators\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const labourCostCalculators = yield this.store.simpleQuery('labour-cost-calculator', {\n            entity: this.sessionData.entity.id\n          }, {\n            include: 'items'\n          });\n          return labourCostCalculators.toArray();\n        }\n      }), null, \"getLabourCostCalculators\", null));\n      _defineProperty(this, \"getAccountingPlatformEmployees\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const employees = yield this.accountingPlatform.loadAccountingPlatformEmployees.perform();\n          return employees.toArray();\n        }\n      }), null, \"getAccountingPlatformEmployees\", null));\n      _defineProperty(this, \"getXeroEarningsRates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.accountingPlatform.activePlatform === 'xero') return [];\n          const xeroEarningsRates = yield this.store.simpleQuery('xero-earnings-rate', {\n            entity: this.sessionData.entity.id\n          });\n          return xeroEarningsRates.toArray();\n        }\n      }), null, \"getXeroEarningsRates\", null));\n      _defineProperty(this, \"getWorkersTimesheets\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (worker) {\n          yield worker.last;\n          if (worker.isNew) return [];\n          const workersTimesheets = yield this.store.simpleQuery('timesheet', {\n            entity: this.sessionData.entity.id,\n            worker: worker.last.value.id\n          });\n          return workersTimesheets.toArray();\n        }\n      }), null, \"getWorkersTimesheets\", null));\n      _defineProperty(this, \"getProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.sessionData.entity.loadProfitMargins();\n        }\n      }), null, \"getProfitMargin\", null));\n    }\n    get canUsePayRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUsePayRate');\n    }\n    get canUseCostRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseCostRate');\n    }\n    get canUseChargeOutRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseChargeOutRate');\n    }\n    model({\n      worker_id\n    }) {\n      this.getWorker.perform(worker_id);\n      this.getWorkerChangeset.perform(this.getWorker);\n      this.getWorkerPermissionsChangeset.perform(this.getWorker);\n      this.getWorkersTimesheets.perform(this.getWorker);\n      this.getLabourCostCalculators.perform();\n      this.getXeroEarningsRates.perform();\n      this.getProfitMargin.perform();\n      this.getAccountingPlatformEmployees.perform();\n      return {\n        worker: this.getWorker,\n        basePath: this.basePath,\n        workerChangeset: this.getWorkerChangeset,\n        profitMargin: this.getProfitMargin,\n        workerPermissionsChangeset: this.getWorkerPermissionsChangeset,\n        labourCostCalculators: this.getLabourCostCalculators,\n        accountingPlatformEmployees: this.getAccountingPlatformEmployees,\n        xeroEarningsRates: this.getXeroEarningsRates,\n        workersTimesheets: this.getWorkersTimesheets,\n        reload: () => this.refresh()\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/profile\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"loadUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const user = yield this.store.findRecord('user', (0, _object.get)(this, 'sessionData.user.id'));\n          return user;\n        }\n      }), null, \"loadUser\", null));\n      _defineProperty(this, \"loadTerms\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const terms = yield this.portalApi.authGet('/terms-of-service');\n          return terms;\n        }\n      }), null, \"loadTerms\", null));\n    }\n    model() {\n      this.loadUser.perform();\n      this.loadTerms.perform();\n      return {\n        user: this.loadUser,\n        terms: this.loadTerms\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/error\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // the top level needs a route that doesn't auto redirect to prevent infinite loops back to the login route\n  // in most cases the only path from this page is to reauthenticate, but it's still an assumption\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    beforeModel(transition) {\n      // you can only be transitioned here\n      if (!transition.from) this.router.transitionTo('index');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n    }\n    async beforeModel() {\n      if (this.isDestroying || this.isDestroyed) return;\n\n      // check if the user is authenticated\n      if (this.session.isDestroying || this.session.isDestroyed) return;\n      if (!this.session.isAuthenticated) {\n        // if user is not authenticated go to login\n        return this.router.transitionTo('login');\n      }\n\n      // we are logged in, initialise the app\n      await this.sessionData.initApp();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/initiate-password-reset\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    beforeModel() {\n      this.session.prohibitAuthentication('index');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/loading\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    beforeModel(transition) {\n      // you can only be transitioned here\n      if (!transition.from) this.router.transitionTo('index');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/login-redirect\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let LoginRedirectRoute = _exports.default = (_class = class LoginRedirectRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      try {\n        await this.session.authenticate('authenticator:oidc');\n      } catch (error) {\n        this.router.transitionTo('error');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/routes/login\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _dec2 = (0, _service.inject)(), _class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      try {\n        // if this fails something is wrong with the identity server\n        await this.session.authenticate('authenticator:oidc');\n      } catch (_) {\n        this.router.transitionTo('error');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/logout-redirect\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let LogoutRedirectRoute = _exports.default = (_class = class LogoutRedirectRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      if (this.session.isAuthenticated) {\n        await this.session.invalidate({\n          logoutComplete: true\n        });\n      }\n      this.router.transitionTo('login');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/routes/no-access\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"ember-local-storage\"], function (_exports, _route, _service, _emberLocalStorage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-local-storage\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor4, this);\n    }\n    async beforeModel(transition) {\n      await this.session.requireAuthentication(transition, 'login');\n      if (!transition.from ||\n      // if you haven't been redirected here, reload the app\n      this.newFeatureFlags.includesFeatureFlags('hasAccessToPortal')) {\n        this.router.transitionTo('index');\n        return;\n      }\n\n      // if you have gotten here you don't have access to the entity\n      // remove the last entity from local storage\n      this.persistedSettings.set('lastEntity', null);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/reset-password\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {}\n  _exports.default = _default;\n});","define(\"portal/routes/terms-of-service\", [\"exports\", \"@ember/routing/route\", \"rsvp\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _rsvp, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"rsvp\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n    }\n    async beforeModel(transition) {\n      await this.session.requireAuthentication(transition, 'login');\n    }\n    model() {\n      return _rsvp.default.hash({\n        user: this.store.findRecord('user', (0, _object.get)(this, 'session.data.authenticated.user.id')),\n        terms: this.portalApi.authGet('/terms-of-service')\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/serializers/api-v2-serializer\", [\"exports\", \"@ember-data/serializer/rest\"], function (_exports, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/rest\"eaimeta@70e063a35619d71f\n  class ApiV2Serializer extends _rest.default {\n    normalize(modelClass, resourceHash) {\n      let data = {\n        id: resourceHash.id,\n        type: modelClass.modelName,\n        attributes: {\n          ...resourceHash\n        },\n        relationships: this.extractRelationships(modelClass, resourceHash)\n      };\n      return {\n        data: data\n      };\n    }\n    extractRelationships(modelClass, resourceHash) {\n      let relationships = {};\n      modelClass.eachRelationship((key, relationshipMeta) => {\n        let relationship = resourceHash[key];\n        if (relationship) {\n          relationships[key] = {\n            data: Array.isArray(relationship) ? relationship.map(id => ({\n              id,\n              type: relationshipMeta.type\n            })) : {\n              id: relationship,\n              type: relationshipMeta.type\n            }\n          };\n        }\n      });\n      return relationships;\n    }\n    normalizeResponse(store, primaryModelClass, payload, id, requestType) {\n      if (requestType === 'findRecord') {\n        return this.normalize(primaryModelClass, {\n          id,\n          ...payload\n        });\n      }\n      if (requestType === 'createRecord' || requestType === 'updateRecord') {\n        return {\n          data: {\n            id: payload._id,\n            type: primaryModelClass.modelName\n          }\n        };\n      }\n      if (requestType === 'query') {\n        const results = payload.data.reduce((documentHash, item) => {\n          let {\n            data\n          } = this.normalize(primaryModelClass, {\n            id: item._id,\n            ...item\n          });\n          documentHash.data.push(data);\n          return documentHash;\n        }, {\n          data: [],\n          included: []\n        });\n        results.meta = {\n          totalRecords: payload?.pagination.totalRecords || undefined,\n          totalPages: payload?.pagination.totalPages || undefined,\n          currentPage: payload?.pagination.currentPage || undefined\n        };\n        return results;\n      }\n      return super.normalizeResponse(store, primaryModelClass, payload, id, requestType);\n    }\n  }\n  _exports.default = ApiV2Serializer;\n});","define(\"portal/serializers/application\", [\"exports\", \"@ember-data/serializer/json-api\", \"lodash\", \"@ember/string\"], function (_exports, _jsonApi, _lodash, _string) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/json-api\",0,\"lodash\",0,\"@ember/string\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class ApiV2JSONAPISerializer extends _jsonApi.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"isNewSerializerAPI\", true);\n    }\n    keyForAttribute(key) {\n      // eslint-disable-next-line ember/no-string-prototype-extensions\n      return (0, _string.camelize)(key);\n    }\n    keyForRelationship(key) {\n      // eslint-disable-next-line ember/no-string-prototype-extensions\n      return (0, _string.camelize)(key);\n    }\n    serialize(snapshot, options) {\n      const json = super.serialize(snapshot, options);\n\n      // check if the snapshot has meta and include it in the payload\n      if (snapshot.adapterOptions?.meta) {\n        json.meta = snapshot.adapterOptions.meta;\n      }\n      return json;\n    }\n    normalizeResponse(store, primaryModelClass, payload, id, requestType) {\n      // reason to clone is normalizeResponse is modifying payload object and  is stripping of meta values\n      const _payload = _lodash.default.cloneDeep(payload);\n      let normalizedResponse = super.normalizeResponse(store, primaryModelClass, payload, id, requestType);\n      if (Array.isArray(payload.data)) {\n        normalizedResponse.data.forEach((record, index) => {\n          const resourceMeta = _payload.data[index]?.meta;\n          if (resourceMeta) {\n            record.attributes = {\n              ...record.attributes,\n              _meta: resourceMeta\n            };\n          }\n        });\n      } else if (payload.data) {\n        const resourceMeta = _payload.data?.meta;\n        if (resourceMeta) {\n          normalizedResponse.data.attributes = {\n            ...normalizedResponse.data.attributes,\n            _meta: resourceMeta\n          };\n        }\n      }\n      if (Array.isArray(payload.included)) {\n        normalizedResponse.included.forEach((record, index) => {\n          const includedMeta = _payload.included[index]?.meta;\n          if (includedMeta) {\n            record.attributes = {\n              ...record.attributes,\n              _meta: includedMeta\n            };\n          }\n        });\n      }\n\n      // pagination info\n      if (payload.meta) {\n        normalizedResponse.meta = {\n          ...normalizedResponse.meta,\n          ...payload.meta\n        };\n      }\n      return normalizedResponse;\n    }\n  }\n  _exports.default = ApiV2JSONAPISerializer;\n});","define(\"portal/serializers/entity-product\", [\"exports\", \"portal/serializers/api-v2-serializer\"], function (_exports, _apiV2Serializer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/serializers/api-v2-serializer\"eaimeta@70e063a35619d71f\n  class EntityProductSerializer extends _apiV2Serializer.default {}\n  _exports.default = EntityProductSerializer;\n});","define(\"portal/serializers/project-product\", [\"exports\", \"portal/serializers/api-v2-serializer\"], function (_exports, _apiV2Serializer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/serializers/api-v2-serializer\"eaimeta@70e063a35619d71f\n  class ProjectProductSerializer extends _apiV2Serializer.default {}\n  _exports.default = ProjectProductSerializer;\n});","define(\"portal/serializers/task-product\", [\"exports\", \"portal/serializers/api-v2-serializer\"], function (_exports, _apiV2Serializer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/serializers/api-v2-serializer\"eaimeta@70e063a35619d71f\n  class TaskProductSerializer extends _apiV2Serializer.default {}\n  _exports.default = TaskProductSerializer;\n});","define(\"portal/services/-ensure-registered\", [\"exports\", \"@embroider/util/services/ensure-registered\"], function (_exports, _ensureRegistered) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _ensureRegistered.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@embroider/util/services/ensure-registered\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/accounting-platform\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/service\", \"portal/config/environment\", \"portal/utils/search-filter\"], function (_exports, _asyncArrowRuntime, _service, _environment, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/service\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"ember-concurrency\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const AccountingPlatforms = {\n    xero: 'xero',\n    quickbooks: 'quickbooks'\n  };\n  let AccountingPlatformService = _exports.default = (_class = class AccountingPlatformService extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor, this);\n      _initializerDefineProperty(this, \"quickbooks\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _defineProperty(this, \"sendBill\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (bill, options) {\n          if (!bill) return;\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            return this.xeroIntegration.sendBill(bill, options);\n          }\n          if (this.activePlatform === AccountingPlatforms.quickbooks) {\n            return this.quickbooks.sendBill(bill, options);\n          }\n        }\n      }), null, \"sendBill\", null));\n      _defineProperty(this, \"sendInvoice\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoice, options = {}) {\n          if (!invoice) return;\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            return this.xeroIntegration.sendInvoice(invoice, options);\n          }\n          if (this.activePlatform === AccountingPlatforms.quickbooks) {\n            return this.quickbooks.sendInvoice(invoice, options);\n          }\n        }\n      }), null, \"sendInvoice\", null));\n      _defineProperty(this, \"updateContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity, contact) {\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            return this.xeroIntegration.updateXeroSuppliers(entity, contact);\n          }\n          if (this.activePlatform === AccountingPlatforms.quickbooks) {\n            return this.quickbooks.updateContacts(entity, contact);\n          }\n        }\n      }), null, \"updateContacts\", null));\n      _defineProperty(this, \"getAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            return this.xeroIntegration.getAccounts(entity);\n          }\n          if (this.activePlatform === AccountingPlatforms.quickbooks) {\n            return this.quickbooks.getAccounts(entity);\n          }\n        }\n      }), null, \"getAccounts\", null));\n      _defineProperty(this, \"getEmployees\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            return this.xeroIntegration.getEmployees(entity);\n          }\n          if (this.activePlatform === AccountingPlatforms.quickbooks) {\n            return this.quickbooks.getEmployees(entity);\n          }\n        }\n      }), null, \"getEmployees\", null));\n      _defineProperty(this, \"getEarningRates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            return this.xeroIntegration.getXeroEarningsRates(entity);\n          }\n        }\n      }), null, \"getEarningRates\", null));\n      _defineProperty(this, \"createContact\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity, contact) {\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            return this.xeroIntegration.createXeroContact(entity, contact);\n          }\n          if (this.activePlatform === AccountingPlatforms.quickbooks) {\n            return this.quickbooks.createContact(entity, contact);\n          }\n        }\n      }), null, \"createContact\", null));\n      _defineProperty(this, \"loadAccountingPlatformEmployees\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            //xero and un attached\n            return this.store.query('xero-employee', {\n              filter\n            });\n          }\n          if (this.activePlatform === AccountingPlatforms.quickbooks) {\n            return this.store.query('quickbooks-employee', {\n              filter\n            });\n          }\n          return [];\n        }\n      }), null, \"loadAccountingPlatformEmployees\", null));\n      _defineProperty(this, \"loadActivePlatformGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (search, page) {\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            filter.and.push({\n              or: [{\n                and: [{\n                  field: 'xeroAccountId',\n                  op: 'IS_NOT_NULL',\n                  value: null\n                }, {\n                  field: 'quickbooksAccountId',\n                  op: 'IS_NULL',\n                  value: null\n                }]\n              }, {\n                and: [{\n                  field: 'xeroAccountId',\n                  op: 'IS_NULL',\n                  value: null\n                }, {\n                  field: 'quickbooksAccountId',\n                  op: 'IS_NULL',\n                  value: null\n                }]\n              }]\n            });\n          } else if (this.activePlatform === AccountingPlatforms.quickbooks) {\n            filter.and.push({\n              or: [{\n                and: [{\n                  field: 'quickbooksAccountId',\n                  op: 'IS_NOT_NULL',\n                  value: null\n                }, {\n                  field: 'xeroAccountId',\n                  op: 'IS_NULL',\n                  value: null\n                }]\n              }, {\n                and: [{\n                  field: 'quickbooksAccountId',\n                  op: 'IS_NULL',\n                  value: null\n                }, {\n                  field: 'xeroAccountId',\n                  op: 'IS_NULL',\n                  value: null\n                }]\n              }]\n            });\n          } else {\n            filter.and.push({\n              and: [{\n                field: 'quickbooksAccountId',\n                op: 'IS_NULL',\n                value: null\n              }, {\n                field: 'xeroAccountId',\n                op: 'IS_NULL',\n                value: null\n              }]\n            });\n          }\n          if (search) {\n            filter.and.push((0, _searchFilter.default)(['code', 'name'], search));\n          }\n          const req = {\n            filter,\n            sort: 'code,name'\n          };\n          if (page) {\n            req.page = page;\n          }\n          return this.store.query('gl-account', req);\n        }\n      }), null, \"loadActivePlatformGlAccounts\", null));\n    }\n    get activePlatform() {\n      if (this.xeroIntegration?.ready) return AccountingPlatforms.xero;\n      if (this.quickbooks?.ready) return AccountingPlatforms.quickbooks;\n      return null;\n    }\n    get glAccountVisibleFields() {\n      if (this.activePlatform === AccountingPlatforms.quickbooks) {\n        return ['purchasesGlAccount', 'name'];\n      }\n      return ['purchasesGlAccount', 'salesGlAccount', 'code', 'name', 'taxRate'];\n    }\n    get invoiceItemTaxVisibleFields() {\n      if (this.activePlatform === AccountingPlatforms.quickbooks) {\n        return ['unitPrice', 'quantity'];\n      }\n      return ['unitPrice', 'quantity', 'glAccount', 'Total', 'taxRate'];\n    }\n    get isActive() {\n      return Boolean(this.activePlatform);\n    }\n    get label() {\n      switch (this.activePlatform) {\n        case AccountingPlatforms.xero:\n          return 'Xero';\n        case AccountingPlatforms.quickbooks:\n          return 'QuickBooks';\n        default:\n          return '';\n      }\n    }\n    get glAccountsSearchField() {\n      if (this.activePlatform === AccountingPlatforms.quickbooks) return 'name';\n      return 'code';\n    }\n    viewInvoice(invoice) {\n      if (!invoice) return;\n      if (this.activePlatform === AccountingPlatforms.xero) {\n        if (!invoice.xeroInvoiceId) return;\n        window.open(`https://go.xero.com/organisationlogin/default.aspx?shortcode=${this.xeroIntegration.companyId}${invoice.xeroDeepLinkPath}`, '_blank');\n        return;\n      }\n      if (this.activePlatform === AccountingPlatforms.quickbooks) {\n        if (!invoice.quickbooksInvoiceId) return;\n        if (invoice.invoiceType === 'INVOICE') {\n          window.open(`${_environment.default.urls.quickbooksUrl}/app/invoice?txnId=${invoice.quickbooksInvoiceId}`, '_blank');\n        } else {\n          window.open(`${_environment.default.urls.quickbooksUrl}/app/creditmemo?txnId=${invoice.quickbooksInvoiceId}`, '_blank');\n        }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"quickbooks\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/services/bills-data\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _service, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let BillsDataService = _exports.default = (_class = class BillsDataService extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"bills\", _descriptor2, this);\n      _initializerDefineProperty(this, \"pageNumber\", _descriptor3, this);\n      _initializerDefineProperty(this, \"hasNextPage\", _descriptor4, this);\n      _defineProperty(this, \"lastLoadArgs\", null);\n      _defineProperty(this, \"_loadBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter, fields, sort, pageSize) {\n          this.pageNumber++;\n          const nextPage = yield this.store.query('bill', {\n            filter,\n            fields,\n            sort,\n            page: {\n              size: pageSize,\n              number: this.pageNumber\n            },\n            include: 'items'\n          });\n          this.updateHasNextPage(nextPage, pageSize);\n          return nextPage;\n        }\n      }), null, \"_loadBills\", \"drop\"));\n      _defineProperty(this, \"loadBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter, fields, sort, pageSize) {\n          this.lastLoadArgs = {\n            filter,\n            fields,\n            sort,\n            pageSize\n          };\n          this.pageNumber = 0;\n          const firstPage = yield this._loadBills.perform(filter, fields, sort, pageSize);\n          this.bills = firstPage;\n        }\n      }), null, \"loadBills\", \"drop\"));\n      _defineProperty(this, \"reloadBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.lastLoadArgs) return;\n          const {\n            filter,\n            fields,\n            sort,\n            pageSize\n          } = this.lastLoadArgs;\n          yield this.loadBills.perform(filter, fields, sort, pageSize);\n        }\n      }), null, \"reloadBills\", \"drop\"));\n      _defineProperty(this, \"loadMoreBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter, fields, sort, pageSize) {\n          if (!this.hasNextPage) return;\n          const nextPage = yield this._loadBills.perform(filter, fields, sort, pageSize);\n          this.bills = [...this.bills, ...nextPage];\n        }\n      }), null, \"loadMoreBills\", \"drop\"));\n    }\n    updateHasNextPage(page, pageSize) {\n      const currentPage = Number(page.meta?.currentPage);\n      const totalPages = Number(page.meta?.totalPages);\n      if (currentPage && totalPages) {\n        this.hasNextPage = currentPage < totalPages;\n        return;\n      }\n      this.hasNextPage = page.length >= pageSize;\n    }\n    addBill(bill) {\n      this.bills = [bill, ...this.bills];\n    }\n    removeBill(bill) {\n      const index = this.bills.indexOf(bill);\n      if (index > -1) {\n        this.bills = this.bills.toSpliced(index, 1);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"bills\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"pageNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hasNextPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"addBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeBill\"), _class.prototype), _class);\n});","define(\"portal/services/builda-price\", [\"exports\", \"@ember/service\", \"portal/utils/csv-builder\", \"portal/utils/download\", \"portal/config/environment\"], function (_exports, _service, _csvBuilder, _download, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/service\",0,\"portal/utils/csv-builder\",0,\"portal/utils/download\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor3, this);\n    }\n    commitProject(projectId, options) {\n      return this.portalApi.authPost(`/commit/project/${projectId}`, options);\n    }\n    duplicateProject(projectId, options) {\n      return this.portalApiV2.authPost(`/copy-resource/project/${projectId}`, options);\n    }\n    addTasksFromTemplate(projectId, taskTemplate) {\n      return this.portalApi.authPost(`/project/${projectId}/add-tasks-from-template`, taskTemplate);\n    }\n    migrateToBuildaPrice(entityId) {\n      return this.portalApi.authPost(`/data-migration/to-builda-price/${entityId}`);\n    }\n    updateProjectList(payload) {\n      return this.portalApi.authPost('/update/project-list', payload);\n    }\n    updateTaskList(payload) {\n      return this.portalApi.authPost(`/update/task-list`, payload);\n    }\n    updateCompanyFeatures(entityId, payload) {\n      return this.portalApiV2.authPost(`/update/company-features/${entityId}`, payload);\n    }\n    updateDraftProgressPosition(payload) {\n      return this.portalApi.authPost(`/update/draft-progress-position`, payload);\n    }\n    getMeFromIdentityId(token, identityUserId) {\n      return this.portalApiV2.authGet(`/identity/me/${identityUserId}`, undefined, token);\n    }\n    updateInvoiceItems(invoiceItems) {\n      return this.portalApi.authPatch(`/update/invoice-items`, invoiceItems);\n    }\n    addTasksFromFile(projectId, items) {\n      return this.portalApiV2.authPost(`/projects/${projectId}/add-tasks-from-file`, items);\n    }\n    getDuplicateSuppliers(payload) {\n      return this.portalApiV2.authGet(`/duplicate-suppliers/find`, payload);\n    }\n    mergeDuplicateSuppliers(payload) {\n      return this.portalApiV2.authPost(`/duplicate-suppliers/merge`, payload);\n    }\n    updateTaskTemplate(payload) {\n      return this.portalApi.authPost(`/update/task-template`, payload);\n    }\n    downloadExcel(filename, payload) {\n      return this.portalApi.authGetExcel('/generate-xlsx', payload).then(blob => (0, _csvBuilder.downloadXlsx)(blob, `${filename}.xlsx`));\n    }\n    downloadPurchaseOrderPDF(filename, payload) {\n      return this.portalApiV2.authGetBlob('/purchase-orders/export', payload).then(blob => (0, _download.download)(blob, filename, 'application/pdf'));\n    }\n    downloadInvoicePDF(filename, payload) {\n      return this.portalApiV2.authGetBlob('/invoices/export', payload).then(blob => (0, _download.download)(blob, filename, 'application/pdf'));\n    }\n    getInvoiceBreakdownHTML(filename, payload) {\n      return this.portalApiV2.authPostHtml('/invoices/export-breakdown-html', payload);\n    }\n    getInvoiceBillAttachmentsZip(payload) {\n      return this.portalApiV2.authGetBlob('/invoices/bill/attachments', payload);\n    }\n    downloadInvoiceBreakdownPDF(filename, payload) {\n      return this.portalApiV2.authGetBlob('/invoices/export-breakdown', payload).then(blob => (0, _download.download)(blob, filename, 'application/pdf'));\n    }\n    sendPurchaseOrder(payload) {\n      return this.portalApiV2.authPost('/purchase-orders/send', payload);\n    }\n    searchProducts(payload) {\n      return this.portalApiV2.authGet('/search-products', payload);\n    }\n    validatePurchaseOrderNumber(payload) {\n      return this.portalApiV2.authGet('/purchase-orders/validate', payload);\n    }\n    validateInvoiceNumber(payload) {\n      return this.portalApiV2.authGet('/invoices/validate', payload);\n    }\n    getInvoiceItemTotals(payload) {\n      return this.portalApiV2.authGet('/invoices/invoice-item-totals', payload);\n    }\n    inviteUser(payload, canUseBuildaPrice, canUseFinancialReporting) {\n      let url;\n      if (canUseBuildaPrice) url = '/invite-user/builda-price';else if (canUseFinancialReporting) url = '/invite-user/financials';else throw new Error('No module available');\n      return this.portalApi.authPost(url, Object.assign(payload, {\n        callback: _environment.default.urls.app + '/reset-password',\n        appURL: _environment.default.urls.app\n      }));\n    }\n    changePassword(payload) {\n      return this.portalApi.authPatch('/auth/change-password', payload);\n    }\n    stagePaymentsValues(id) {\n      return this.portalApiV2.authGet(`/stage-payments/value/${id}`);\n    }\n    downloadStagePaymentsPDF(filename, payload) {\n      return this.portalApiV2.authGetBlob('/stage-payments/export', payload).then(blob => (0, _download.download)(blob, filename, 'application/pdf'));\n    }\n    taskCostTotals(payload) {\n      return this.portalApi.authGet(`/task-cost-totals`, payload);\n    }\n    taskProgressDirects(payload) {\n      return this.portalApi.authGet(`/task-progress-directs`, payload);\n    }\n    projectQuoteTotals(payload) {\n      return this.portalApi.authGet(`/project-quote-totals`, payload);\n    }\n    projectBudgetTotals(payload) {\n      return this.portalApi.authGet(`/project-budget-totals`, payload);\n    }\n    projectProgressTotals(payload) {\n      return this.portalApi.authGet(`/project-progress-totals`, payload);\n    }\n    projectCostTotals(payload) {\n      return this.portalApi.authGet(`/project-cost-totals`, payload);\n    }\n    createCreditNoteFromInvoice(payload) {\n      return this.portalApiV2.authPost('/invoices/credit-note-from-invoice', payload);\n    }\n    getSystemAnnouncements(language) {\n      return this.portalApiV2.authGet(`/resources/system-announcements?language=${language}`);\n    }\n    updateSystemAnnouncements(payload) {\n      return this.portalApiV2.authPost('/resources/system-announcements', payload);\n    }\n    generateAdminBillingReport(payload) {\n      return this.portalApiV2.authPost('/admin-billing-report', payload);\n    }\n    submitFilesToIPS(entityId, files) {\n      const payload = new FormData();\n      for (const file of files) {\n        payload.append('files', file);\n      }\n      return this.portalApiV2.authPostForm(`/ips/file/${entityId}`, payload);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/cache\", [\"exports\", \"@ember/service\", \"@ember/object\", \"@ember/debug\", \"@ember/array\", \"@ember/utils\", \"lodash\"], function (_exports, _service, _object, _debug, _array, _utils, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/debug\",0,\"@ember/array\",0,\"@ember/utils\",0,\"lodash\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _service.default.extend({\n    _cache: {},\n    store(cacheName, key, value) {\n      (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    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='ACCEPTED'>{{t 'common.Accepted'}}</si.option>\n                <si.option @value='ARCHIVED'>{{t 'common.Archived'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held'}}</si.option>\n                <si.option @value='PAID'>{{t 'common.Paid'}}</si.option>\n              </SelectInput>\n            </div>\n  \n            <div class='mt-3'>\n              <label class='no-wrap mb-1'>{{t 'common.Type'}}</label>\n              <SelectInput\n                @value={{this.billType}}\n                @action={{fn (mut this.billType)}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value=''>All</si.option>\n                <si.option @value='BILL'>{{t 'common.Bill'}}</si.option>\n                <si.option @value='CREDIT_NOTE'>\n                  {{t 'common.Credit note'}}\n                </si.option>\n              </SelectInput>\n            </div>\n  \n            <div class='mt-3'>\n              <label class='no-wrap mb-1'>{{t 'common.Allocation type'}}</label>\n              <SelectInput\n                @value={{this.allocationType}}\n                @action={{fn (mut this.allocationType)}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value=''>All</si.option>\n                <si.option @value='LABOUR'> {{t 'common.Labour'}}</si.option>\n                <si.option @value='MATERIALS'>\n                  {{t 'common.Materials'}}\n                </si.option>\n                <si.option @value='SUBCONTRACTORS'>\n                  {{t 'common.Subcontractors'}}\n                </si.option>\n              </SelectInput>\n            </div>\n  \n            <div>\n              <label class='align-items-center mt-3'>\n                {{t 'common.From date'}}\n              </label>\n              <input\n                class='form-control w-100'\n                type='date'\n                value={{this.startDate}}\n                {{on 'change' this.onFromDateChange}}\n              />\n            </div>\n  \n            <div>\n              <label class='align-items-center mt-3'>\n                {{t 'common.To date'}}\n              </label>\n              <input\n                class='form-control w-100'\n                type='date'\n                value={{this.endDate}}\n                {{on 'change' this.onToDateChange}}\n              />\n            </div>\n          </po.Content>\n        </PopOver>\n      </div>\n  \n      <div class='d-flex px-2'>\n        {{#if this.status}}\n          <FilterPill {{on 'click' (fn (mut this.status) '')}}>\n            {{t 'common.Status'}}:\n            {{this.humanReadableStatusPill}}\n          </FilterPill>\n        {{/if}}\n  \n        {{#if this.startDate}}\n          <FilterPill {{on 'click' (fn (mut this.startDate) undefined)}}>\n            {{t 'common.Start date'}}:\n            {{this.startDate}}\n          </FilterPill>\n        {{/if}}\n  \n        {{#if this.endDate}}\n          <FilterPill {{on 'click' (fn (mut this.endDate) undefined)}}>\n            {{t 'common.End date'}}:\n            {{this.endDate}}\n          </FilterPill>\n        {{/if}}\n  \n        {{#if this.billType}}\n          <FilterPill {{on 'click' (fn (mut this.billType) '')}}>\n            {{t 'common.Type'}}:\n            {{this.humanReadableBillTypePill}}\n          </FilterPill>\n        {{/if}}\n        {{#if this.allocationType}}\n          <FilterPill {{on 'click' (fn (mut this.allocationType) '')}}>\n            {{t 'common.Allocation type'}}:\n            {{this.humanReadableAllocationTypePill}}\n          </FilterPill>\n        {{/if}}\n      </div>\n  \n      <BillsTable\n        @filter={{this.model.filter}}\n        @pageSize={{this.model.pageSize}}\n        @sort={{this.model.sort}}\n        @fields={{this.model.fields}}\n        @onOrderBy={{fn (mut this.sort)}}\n        @condensed={{or\n          (is-active 'entity.builda-price.operations.incoming.bills.bill')\n          (not (media 'isDesktop'))\n        }}\n        @billStatus={{this.status}}\n      />\n    </div>\n  \n    {{#if (is-active 'entity.builda-price.operations.incoming.bills.bill')}}\n      <div class='bill-layout-right overflow-auto border-start'>\n        {{outlet}}\n      </div>\n    {{/if}}\n  </div>\n  \n  {{#if this.showPdfUploader}}\n    <IpsUploader @onClose={{fn (mut this.showPdfUploader) false}} />\n  {{/if}}\n  \n  {{#if this.showBillsUploader}}\n    <BillsUploader\n      @onUploadBillsCSV={{this.onUploadBillsCSV}}\n      @onClose={{fn (mut this.showBillsUploader) false}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"rqFECMbw\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Bills\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"ms-auto d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"canManageBills\\\"],null],[[[1,\\\"      \\\"],[8,[39,5],null,[[\\\"@buttonText\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@route\\\",\\\"@model\\\",\\\"@btnClass\\\",\\\"@popOverFixed\\\"],[[28,[37,1],[\\\"common.New bill\\\"],null],\\\"plus\\\",[30,1],\\\"entity.builda-price.operations.incoming.bills.bill\\\",\\\"new\\\",\\\"btn btn-success\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,6],[[24,0,\\\"dropdown-item text-nowrap fs-5\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.operations.incoming.bills.bill\\\",\\\"new-credit-note\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"entity.builda-price.operations.incoming.bills.New credit note\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBillsUploader\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Import\\\"],null]],[1,\\\"\\\\n          CSV\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5 d-flex align-items-center gap-2\\\"],[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"ips\\\",\\\"canSubmitDocuments\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showPdfUploader\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,1],[\\\"common.Import\\\"],null]],[1,\\\" PDF\\\"],[13],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"badge rounded-pill text-bg-secondary align-self-center lh-1\\\"],[12],[1,[28,[35,1],[\\\"common.IPS\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[1,\\\"  \\\"],[8,[39,13],[[24,0,\\\"mx-3 mt-3 mb-0\\\"]],[[\\\"@alertOnly\\\"],[true]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"bill-layout-container\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[15,0,[29,[\\\"bill-layout-left overflow-auto d-flex flex-column\\\\n      \\\",[52,[28,[37,14],[\\\"entity.builda-price.operations.incoming.bills.bill\\\"],null],\\\"is-condensed\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex p-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,15],[[24,0,\\\"form-control me-3\\\"],[16,\\\"placeholder\\\",[28,[37,1],[\\\"entity.builda-price.operations.incoming.bills.Search for bills or bill items\\\"],null]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,\\\"data-test-bill-search\\\",\\\"\\\"],[4,[38,8],[\\\"input\\\",[28,[37,16],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"search\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],null,[[\\\"@disableBlur\\\",\\\"@direction\\\"],[true,\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[\\\"filter\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"py-3 px-3\\\"],[24,5,\\\"width: 250px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"\\\"]],[[\\\"default\\\"],[[[[1,\\\"All\\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ACCEPTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Accepted\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Archived\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Held\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"PAID\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Paid\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Type\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"billType\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"billType\\\"]]],null]],null],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"\\\"]],[[\\\"default\\\"],[[[[1,\\\"All\\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"BILL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Bill\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CREDIT_NOTE\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"common.Credit note\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[4]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Allocation type\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"allocationType\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"allocationType\\\"]]],null]],null],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"\\\"]],[[\\\"default\\\"],[[[[1,\\\"All\\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"LABOUR\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[1,[28,[35,1],[\\\"common.Labour\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"MATERIALS\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"SUBCONTRACTORS\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[5]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"common.From date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,2,[30,0,[\\\"startDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,8],[\\\"change\\\",[30,0,[\\\"onFromDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"common.To date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,2,[30,0,[\\\"endDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,8],[\\\"change\\\",[30,0,[\\\"onToDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex px-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"status\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"status\\\"]]],null],\\\"\\\"],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"humanReadableStatusPill\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"startDate\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"startDate\\\"]]],null],[27]],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Start date\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"startDate\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"endDate\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"endDate\\\"]]],null],[27]],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.End date\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"endDate\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billType\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"billType\\\"]]],null],\\\"\\\"],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Type\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"humanReadableBillTypePill\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"allocationType\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"allocationType\\\"]]],null],\\\"\\\"],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Allocation type\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"humanReadableAllocationTypePill\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,22],null,[[\\\"@filter\\\",\\\"@pageSize\\\",\\\"@sort\\\",\\\"@fields\\\",\\\"@onOrderBy\\\",\\\"@condensed\\\",\\\"@billStatus\\\"],[[30,0,[\\\"model\\\",\\\"filter\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"sort\\\"]],[30,0,[\\\"model\\\",\\\"fields\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"sort\\\"]]],null]],null],[28,[37,23],[[28,[37,14],[\\\"entity.builda-price.operations.incoming.bills.bill\\\"],null],[28,[37,11],[[28,[37,24],[\\\"isDesktop\\\"],null]],null]],null],[30,0,[\\\"status\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,14],[\\\"entity.builda-price.operations.incoming.bills.bill\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"bill-layout-right overflow-auto border-start\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,26],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showPdfUploader\\\"]],[[[1,\\\"  \\\"],[8,[39,27],null,[[\\\"@onClose\\\"],[[28,[37,9],[[28,[37,10],[[30,0,[\\\"showPdfUploader\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBillsUploader\\\"]],[[[1,\\\"  \\\"],[8,[39,28],null,[[\\\"@onUploadBillsCSV\\\",\\\"@onClose\\\"],[[30,0,[\\\"onUploadBillsCSV\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBillsUploader\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@isAllocating\\\",\\\"po\\\",\\\"si\\\",\\\"si\\\",\\\"si\\\"],false,[\\\"page-header\\\",\\\"t\\\",\\\"div\\\",\\\"if\\\",\\\"includes-feature-flags\\\",\\\"dropdown-button\\\",\\\"link-to\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"span\\\",\\\"ips-usage\\\",\\\"is-active\\\",\\\"input\\\",\\\"perform\\\",\\\"pop-over\\\",\\\"fa-icon\\\",\\\"label\\\",\\\"select-input\\\",\\\"filter-pill\\\",\\\"bills-table\\\",\\\"or\\\",\\\"media\\\",\\\"component\\\",\\\"-outlet\\\",\\\"ips-uploader\\\",\\\"bills-uploader\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/bills/bill\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <BillEditor @bill={{this.model.bill}} @billStatus={{this.model.billStatus}} />\n  */\n  {\n    \"id\": \"ptuW+ZWY\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@bill\\\",\\\"@billStatus\\\"],[[30,0,[\\\"model\\\",\\\"bill\\\"]],[30,0,[\\\"model\\\",\\\"billStatus\\\"]]]],null]],[],false,[\\\"bill-editor\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills/bill.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/statements\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 h-100 d-flex flex-column'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Statements'}}</h2>\n      {{/if}}\n    </header>\n  \n    {{#if this.ips.ready}}\n      <IpsUsage @alertOnly={{true}} class='mb-3 flex-shrink-0' />\n    {{/if}}\n  \n    <iframe\n      src={{this.iframeSrc}}\n      class='buildaprice-frame flex-grow-1'\n      title={{t 'common.Statements'}}\n    ></iframe>\n  </article>\n  */\n  {\n    \"id\": \"M0VnM65f\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 h-100 d-flex flex-column\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,5],[\\\"common.Statements\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[1,\\\"    \\\"],[8,[39,6],[[24,0,\\\"mb-3 flex-shrink-0\\\"]],[[\\\"@alertOnly\\\"],[true]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,\\\"iframe\\\"],[15,\\\"src\\\",[30,0,[\\\"iframeSrc\\\"]]],[14,0,\\\"buildaprice-frame flex-grow-1\\\"],[15,\\\"title\\\",[28,[37,5],[\\\"common.Statements\\\"],null]],[12],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"ips-usage\\\",\\\"iframe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/statements.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/timesheets-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"6IH+Ee33\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/timesheets-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/timesheets\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Timesheets')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{! TODO not actually sticky anymore due to compatibility with embed route }}\n    {{! look at fixing when there is time }}\n    <div class='timesheets__sticky-header'>\n      <div class='border-bottom mb-3 d-flex align-items-center pb-3'>\n        {{#if (media 'isDesktop')}}\n          <h1 class='m-0'>\n            {{t 'common.Timesheets'}}\n          </h1>\n        {{/if}}\n        <div class='ms-auto'>\n          <LinkTo\n            @route={{concat this.model.basePath '.timesheets.timesheet'}}\n            @query={{hash date=(moment-format this.today 'YYYY-MM-DD') worker=''}}\n            class='button button--add button--spaced'\n            data-test-timesheet\n          >\n            {{t\n              'entity.builda-price.operations.incoming.timesheets.New timesheet'\n            }}\n          </LinkTo>\n        </div>\n      </div>\n  \n      <div class='timesheets__controls'>\n        {{#if this.showForemanControls}}\n          <button\n            class='button button--spaced'\n            disabled={{not this.filteredTimesheets.length}}\n            type='button'\n            {{on 'click' (action 'toggleGroupsSelected')}}\n          >\n            {{if\n              this.allSelected\n              (t 'common.Deselect all')\n              (t 'common.Select all')\n            }}\n          </button>\n  \n          <OverlaidDropdown\n            @buttonText={{t 'common.Actions'}}\n            @class='button--spaced'\n            @disabled={{not this.anySelected}}\n            @buttonClasses='button button--secondary'\n            @title={{concat this.nSelected ' ' (t 'common.selected')}}\n          >\n            {{#if (or this.acceptingTimesheets)}}\n              <div class='overlaid-dropdown__option text-center'>\n                <LoadingIcon @type='spinner' />\n              </div>\n            {{else}}\n              <div\n                class='overlaid-dropdown__option'\n                {{on 'click' (action 'acceptSelectedTimesheets')}}\n              >\n                {{t\n                  'entity.builda-price.operations.incoming.timesheets.Accept selected'\n                }}\n              </div>\n              <div\n                class='overlaid-dropdown__option'\n                {{on 'click' (action 'undoAcceptSelectedTimesheets')}}\n              >\n                {{t\n                  'entity.builda-price.operations.incoming.timesheets.Return to pending'\n                }}\n              </div>\n            {{/if}}\n          </OverlaidDropdown>\n        {{/if}}\n  \n        <div class='float-end'>\n          {{t 'common.Date range'}}:&nbsp;\n          <DateRangeSelector\n            @align='right'\n            @startDate={{this.jsStartDate}}\n            @endDate={{this.jsEndDate}}\n            @onApply={{action 'setDateRange'}}\n          />\n  \n          &nbsp;&nbsp;\n  \n          <div class='timesheets__controls-select button--spaced'>\n            {{t 'common.Status'}}:\n            <SelectInput\n              @value={{this.selectedTimesheetStatus}}\n              @action={{fn (mut this.selectedTimesheetStatus)}}\n              @class='select-box'\n              as |si|\n            >\n              <si.option @value='all'>{{t 'common.All'}}</si.option>\n              <si.option @value='pending'>{{t 'common.Pending'}}</si.option>\n              <si.option @value='accepted'>{{t 'common.Accepted'}}</si.option>\n            </SelectInput>\n          </div>\n  \n          &nbsp;&nbsp;\n  \n          <span class='timesheets__controls-search'>\n            <FaIcon @icon='search' />\n            <Input\n              @value={{this.searchString}}\n              class='text-input'\n              placeholder={{t 'common.workersProjectsOrTasks'}}\n            />\n          </span>\n        </div>\n      </div>\n    </div>\n  \n    <div class='timesheets__timesheets-section mt-5'>\n      {{#if this.filteredTimesheets.length}}\n        <TimesheetsTablePm\n          @groupedTimesheetData={{this.groupedTimesheets}}\n          @toggleGroupSelected={{action 'toggleGroupSelected'}}\n          @toggleGroupExpanded={{action 'toggleGroupExpanded'}}\n          @link={{concat this.model.basePath '.timesheets.timesheet'}}\n          @allGroupsSelected={{this.allGroupsSelected}}\n          @acceptAndLockTimesheet={{action 'acceptAndLockTimesheet'}}\n          @undoAcceptAndLockTimesheet={{action 'undoAcceptAndLockTimesheet'}}\n          @acceptingTimesheets={{this.acceptingTimesheets}}\n          @showForemanControls={{this.showForemanControls}}\n        />\n      {{else}}\n        <div class='error-page error-page--no-data'>\n          <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n          <h3 class='h3 error-page__title'>{{t\n              'shared.timesheet.No timesheets'\n            }}</h3>\n        </div>\n      {{/if}}\n    </div>\n  </article>\n  {{outlet}}\n  */\n  {\n    \"id\": \"n2KwyL8Q\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Timesheets\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"  \\\"],[10,0],[14,0,\\\"timesheets__sticky-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"border-bottom mb-3 d-flex align-items-center pb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h1\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Timesheets\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,9],[[24,0,\\\"button button--add button--spaced\\\"],[24,\\\"data-test-timesheet\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[[28,[37,10],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".timesheets.timesheet\\\"],null],[28,[37,11],null,[[\\\"date\\\",\\\"worker\\\"],[[28,[37,12],[[30,0,[\\\"today\\\"]],\\\"YYYY-MM-DD\\\"],null],\\\"\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.timesheets.New timesheet\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"timesheets__controls\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showForemanControls\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced\\\"],[16,\\\"disabled\\\",[28,[37,14],[[30,0,[\\\"filteredTimesheets\\\",\\\"length\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0],\\\"toggleGroupsSelected\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[52,[30,0,[\\\"allSelected\\\"]],[28,[37,4],[\\\"common.Deselect all\\\"],null],[28,[37,4],[\\\"common.Select all\\\"],null]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,17],null,[[\\\"@buttonText\\\",\\\"@class\\\",\\\"@disabled\\\",\\\"@buttonClasses\\\",\\\"@title\\\"],[[28,[37,4],[\\\"common.Actions\\\"],null],\\\"button--spaced\\\",[28,[37,14],[[30,0,[\\\"anySelected\\\"]]],null],\\\"button button--secondary\\\",[28,[37,10],[[30,0,[\\\"nSelected\\\"]],\\\" \\\",[28,[37,4],[\\\"common.selected\\\"],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,0,[\\\"acceptingTimesheets\\\"]]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"overlaid-dropdown__option text-center\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,19],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0],\\\"acceptSelectedTimesheets\\\"],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.timesheets.Accept selected\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0],\\\"undoAcceptSelectedTimesheets\\\"],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.timesheets.Return to pending\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Date range\\\"],null]],[1,\\\": \\\\n        \\\"],[8,[39,20],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"right\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[28,[37,16],[[30,0],\\\"setDateRange\\\"],null]]],null],[1,\\\"\\\\n\\\\n          \\\\n\\\\n        \\\"],[10,0],[14,0,\\\"timesheets__controls-select button--spaced\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n          \\\"],[8,[39,21],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"selectedTimesheetStatus\\\"]],[28,[37,22],[[28,[37,23],[[30,0,[\\\"selectedTimesheetStatus\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"all\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"pending\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Pending\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"accepted\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Accepted\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n          \\\\n\\\\n        \\\"],[10,1],[14,0,\\\"timesheets__controls-search\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,25],null,[[\\\"@icon\\\"],[\\\"search\\\"]],null],[1,\\\"\\\\n          \\\"],[8,[39,26],[[24,0,\\\"text-input\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"common.workersProjectsOrTasks\\\"],null]]],[[\\\"@value\\\"],[[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"timesheets__timesheets-section mt-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"filteredTimesheets\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[8,[39,27],null,[[\\\"@groupedTimesheetData\\\",\\\"@toggleGroupSelected\\\",\\\"@toggleGroupExpanded\\\",\\\"@link\\\",\\\"@allGroupsSelected\\\",\\\"@acceptAndLockTimesheet\\\",\\\"@undoAcceptAndLockTimesheet\\\",\\\"@acceptingTimesheets\\\",\\\"@showForemanControls\\\"],[[30,0,[\\\"groupedTimesheets\\\"]],[28,[37,16],[[30,0],\\\"toggleGroupSelected\\\"],null],[28,[37,16],[[30,0],\\\"toggleGroupExpanded\\\"],null],[28,[37,10],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".timesheets.timesheet\\\"],null],[30,0,[\\\"allGroupsSelected\\\"]],[28,[37,16],[[30,0],\\\"acceptAndLockTimesheet\\\"],null],[28,[37,16],[[30,0],\\\"undoAcceptAndLockTimesheet\\\"],null],[30,0,[\\\"acceptingTimesheets\\\"]],[30,0,[\\\"showForemanControls\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,25],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,4],[\\\"shared.timesheet.No timesheets\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[46,[28,[37,30],null,null],null,null,null]],[\\\"si\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"div\\\",\\\"if\\\",\\\"h1\\\",\\\"link-to\\\",\\\"concat\\\",\\\"hash\\\",\\\"moment-format\\\",\\\"button\\\",\\\"not\\\",\\\"on\\\",\\\"action\\\",\\\"overlaid-dropdown\\\",\\\"or\\\",\\\"loading-icon\\\",\\\"date-range-selector\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"span\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"timesheets-table-pm\\\",\\\"h2\\\",\\\"h3\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/timesheets.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/timesheets/timesheet\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.date}}\n    <ModalDialog\n      @onClose={{action 'clear'}}\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      {{! TODO action bubbles }}\n      {{! close=(action 'clear') }}\n      <div class='timesheet'>\n        {{#if this.isLoading}}\n          <div class='timesheet__placeholder'>\n            <p class='text-center'>\n              <LoadingIcon @type='spinner' />\n            </p>\n          </div>\n        {{else}}\n          <div class='timesheet__selectors'>\n            <div class='timesheet__selectors-row'>\n              <div class='timesheet__selectors-column'>\n                <h3 class='h3'>{{t 'common.Worker'}}</h3>\n  \n                <div\n                  class='select-box-replacement timesheet__worker-date-row-input'\n                >\n                  {{#if this.selectedWorker}}\n                    <span data-test-worker>{{this.selectedWorker.fullName}}</span>\n                  {{else}}\n                    <span\n                      data-test-worker\n                      class='select-box-replacement__placeholder'\n                    >{{t 'shared.timesheet.Select a worker'}}</span>\n                  {{/if}}\n  \n                  <select\n                    class='select-box-replacement__select-box'\n                    oninput={{action (mut this.worker) value='target.value'}}\n                    data-test-worker-select\n                  >\n                    {{#unless this.selectedWorker}}\n                      <option selected>–</option>\n                    {{/unless}}\n  \n                    {{#each this.activeWorkers as |worker|}}\n                      <option\n                        value={{worker.id}}\n                        selected={{eq worker this.selectedWorker}}\n                      >{{worker.fullName}}</option>\n                    {{/each}}\n                  </select>\n                </div>\n              </div>\n  \n              <div class='timesheet__selectors-column'>\n                <h3 class='h3'>{{t 'common.Date'}}</h3>\n                <input\n                  class='form-control'\n                  type='date'\n                  value={{this.selectedDate}}\n                  {{on 'change' (fn (mut this.selectedDate))}}\n                  autocomplete='off'\n                />\n              </div>\n            </div>\n  \n            {{! (and '' '') doesn't work  }}\n            {{#if this.model.hasDateAndWorker}}\n              {{#if this.timesheetsByProject.projectMetas}}\n                <div class='timesheet__selectors-row'>\n                  <div class='timesheet__selectors-column'>\n                    <h4 class='h4'>{{if\n                        this.canCurrentlyBeForeman\n                        (t 'common.workerS')\n                        (t 'common.Daily')\n                      }}\n                      note</h4>\n                    <Textarea\n                      placeholder={{t\n                        'entity.builda-price.operations.incoming.timesheets.timesheet.workerSNotes'\n                      }}\n                      disabled={{not this.workerIsSelf}}\n                      @value={{this.model.note.body}}\n                      class='timesheet__notes-row-input text-input'\n                      data-test-note='note'\n                      rows={{4}}\n                    />\n                  </div>\n  \n                  {{#if this.canCurrentlyBeForeman}}\n                    <div class='timesheet__selectors-column'>\n                      <h4 class='h4'>{{t 'shared.timesheet.Admin note'}}</h4>\n                      <Textarea\n                        placeholder={{t\n                          'entity.builda-price.operations.incoming.timesheets.timesheet.adminSNotes'\n                        }}\n                        @value={{this.model.note.adminNote}}\n                        class='timesheet__notes-row-input text-input'\n                        data-test-note='note'\n                        rows={{4}}\n                      />\n                    </div>\n                  {{/if}}\n                </div>\n              {{/if}}\n            {{/if}}\n          </div>\n  \n          <div class='timesheet__detail'>\n            {{#if this.model.hasDateAndWorker}}\n              {{#each this.filteredProjectMetas as |group groupIndex|}}\n                <div\n                  class='timesheet__detail\n                    {{unless\n                      (or group.canBeForeman group.isSelf)\n                      \"timesheets-table__entry--disabled\"\n                    }}\n                    {{if\n                      (and\n                        (not group.canBeForeman)\n                        (eq group.timesheetStatus.status \"accepted\")\n                      )\n                      \"timesheets-table__entry--disabled\"\n                    }}'\n                >\n                  <div\n                    class='timesheet__title'\n                    data-test-timesheet-project={{group.project.id}}\n                  >\n                    <h3 class='h3'>{{group.project.name}}</h3>\n                    &nbsp; &nbsp;\n                    {{#if group.canBeForeman}}\n                      <SelectInput\n                        @class='select-box'\n                        @value={{or group.timesheetStatus.status 'pending'}}\n                        @action={{action 'changeStatus' group}}\n                        as |si|\n                      >\n                        {{#each this.statuses as |status|}}\n                          <si.option\n                            @value={{status.value}}\n                          >{{status.label}}</si.option>\n                        {{/each}}\n                      </SelectInput>\n                    {{else}}\n                      <div\n                        class='timesheets-table__entry-status\n                          {{if\n                            (eq group.timesheetStatus.status \"accepted\")\n                            \"timesheets-table__entry-status--accepted\"\n                          }}'\n                      >\n                        {{timesheet-status-label group.timesheetStatus.status}}\n                      </div>\n                    {{/if}}\n                  </div>\n  \n                  {{#if this.projectMeta.timesheetStatus.didEdit}}\n                    <div class='timesheets-table__card-note--edited'>\n                      <span><FaIcon @icon='exclamation-triangle' />\n                        {{t 'shared.timesheet.Edited by admin because'}}:</span>\n                      <br />\n                      {{or\n                        this.projectMeta.timesheetStatus.editNote\n                        (t 'shared.timesheet.No reason given')\n                      }}\n                    </div>\n                  {{/if}}\n  \n                  <table class='data-table timesheet__table'>\n                    <tbody>\n                      {{#each group.timesheets as |timesheet sheetIndex|}}\n                        {{#unless timesheet.isDeleted}}\n                          <TimesheetLinePm\n                            @deleteTimesheet={{action\n                              'deleteTimesheet'\n                              timesheet\n                            }}\n                            @setTask={{action 'setTask' timesheet}}\n                            @timesheet={{timesheet}}\n                            @group={{group}}\n                            @index={{concat groupIndex '-' sheetIndex}}\n                            @disabled={{or\n                              (and (not group.canBeForeman) (not group.isSelf))\n                              (and\n                                (not group.canBeForeman)\n                                (eq group.timesheetStatus.status 'accepted')\n                              )\n                            }}\n                          />\n                        {{/unless}}\n                      {{/each}}\n                    </tbody>\n                  </table>\n  \n                  {{#if\n                    (and\n                      group.hasTasksToSelect (or group.isSelf group.canBeForeman)\n                    )\n                  }}\n                    {{#unless\n                      (and\n                        (not group.canBeForeman)\n                        (eq group.timesheetStatus.status 'accepted')\n                      )\n                    }}\n                      <button\n                        class='button button--add center timesheet__button'\n                        data-test-add-cc={{group.project.id}}\n                        type='button'\n                        {{action 'addTask' group.project}}\n                      >\n                        {{t\n                          'entity.builda-price.operations.incoming.timesheets.timesheet.Add task for'\n                        }}\n                        {{group.project.name}}\n                      </button>\n                    {{/unless}}\n                  {{/if}}\n                </div>\n              {{/each}}\n  \n              {{#if this.remainingProjects.length}}\n                <div class='timesheet__add-project'>\n                  <span class='button button--add'>{{t\n                      'entity.builda-price.operations.incoming.timesheets.timesheet.Add a project'\n                    }}</span>\n  \n                  <div class='select-box-replacement__select-box'>\n                    <PowerSelect\n                      @tagName='div'\n                      @searchEnabled={{true}}\n                      @options={{this.remainingProjects}}\n                      @selected={{this.timesheet.task}}\n                      @searchField='name'\n                      @onChange={{action 'setNextProject'}}\n                      data-test-job-select\n                      as |project|\n                    >\n                      {{project.name}}\n                    </PowerSelect>\n                  </div>\n                </div>\n              {{/if}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <footer class='block-module__footer'>\n        <button\n          type='button'\n          class='button button--plain button--spaced'\n          {{action 'clear'}}\n        >\n          {{t 'common.Close'}}\n        </button>\n  \n        {{#if\n          (and\n            this.model.hasDateAndWorker\n            (or this.workerIsSelf this.canCurrentlyBeForeman)\n            this.timesheetsByProject.projectMetas.length\n          )\n        }}\n          <LoadingButton\n            @isLoading={{this.isSaving}}\n            @class='button button--spaced float-end'\n            @action={{action 'save'}}\n            data-test-save='save'\n          >\n            {{t 'common.Save'}}\n          </LoadingButton>\n        {{/if}}\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showReasonDialog}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{action this.set 'showReasonDialog' false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <div class='block-module__header'>\n        {{t\n          'entity.builda-price.operations.incoming.timesheets.timesheet.pleaseGiveAReasonForHavingEditedNameTimesheets'\n          name=this.selectedWorker.firstName\n        }}\n      </div>\n      {{#each this.timesheetsByProject.projectMetas as |projectMeta|}}\n        {{#if projectMeta.canBeForeman}}\n          {{projectMeta.project.name}}\n          <br />\n          <Textarea\n            class='timesheet__notes-row-input text-input'\n            @value={{projectMeta.timesheetStatus.editNote}}\n          />\n        {{/if}}\n      {{/each}}\n      <div class='block-module__footer'>\n        <LoadingButton\n          @class='button button--primary float-end'\n          @buttonText={{t 'common.Submit'}}\n          @action={{action 'save' true}}\n          @isLoading={{this.isSaving}}\n        />\n        <button\n          class='button button--secondary'\n          type='button'\n          {{action this.set 'showReasonDialog' false}}\n        >{{t 'common.Cancel'}}</button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"z1PhBjPq\",\n    \"block\": \"[[[41,[30,0,[\\\"date\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@onClose\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[[28,[37,2],[[30,0],\\\"clear\\\"],null],\\\"modal\\\",true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[1,\\\"    \\\"],[10,0],[14,0,\\\"timesheet\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"timesheet__placeholder\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"timesheet__selectors\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"timesheet__selectors-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"timesheet__selectors-column\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[28,[35,7],[\\\"common.Worker\\\"],null]],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"select-box-replacement timesheet__worker-date-row-input\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedWorker\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,\\\"data-test-worker\\\",\\\"\\\"],[12],[1,[30,0,[\\\"selectedWorker\\\",\\\"fullName\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,1],[14,\\\"data-test-worker\\\",\\\"\\\"],[14,0,\\\"select-box-replacement__placeholder\\\"],[12],[1,[28,[35,7],[\\\"shared.timesheet.Select a worker\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                \\\"],[10,\\\"select\\\"],[14,0,\\\"select-box-replacement__select-box\\\"],[15,\\\"oninput\\\",[28,[37,2],[[30,0],[28,[37,10],[[30,0,[\\\"worker\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,\\\"data-test-worker-select\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"selectedWorker\\\"]]],[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[14,\\\"selected\\\",\\\"\\\"],[12],[1,\\\"–\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"activeWorkers\\\"]]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[30,1,[\\\"id\\\"]]],[15,\\\"selected\\\",[28,[37,15],[[30,1],[30,0,[\\\"selectedWorker\\\"]]],null]],[12],[1,[30,1,[\\\"fullName\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"timesheet__selectors-column\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[28,[35,7],[\\\"common.Date\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control\\\"],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[24,4,\\\"date\\\"],[4,[38,17],[\\\"change\\\",[28,[37,18],[[28,[37,10],[[30,0,[\\\"selectedDate\\\"]]],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"hasDateAndWorker\\\"]],[[[41,[30,0,[\\\"timesheetsByProject\\\",\\\"projectMetas\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"timesheet__selectors-row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"timesheet__selectors-column\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,[52,[30,0,[\\\"canCurrentlyBeForeman\\\"]],[28,[37,7],[\\\"common.workerS\\\"],null],[28,[37,7],[\\\"common.Daily\\\"],null]]],[1,\\\"\\\\n                    note\\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,20],[[16,\\\"placeholder\\\",[28,[37,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.workerSNotes\\\"],null]],[16,\\\"disabled\\\",[28,[37,21],[[30,0,[\\\"workerIsSelf\\\"]]],null]],[24,0,\\\"timesheet__notes-row-input text-input\\\"],[24,\\\"data-test-note\\\",\\\"note\\\"],[16,\\\"rows\\\",4]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"note\\\",\\\"body\\\"]]]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canCurrentlyBeForeman\\\"]],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"timesheet__selectors-column\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,[28,[35,7],[\\\"shared.timesheet.Admin note\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[8,[39,20],[[16,\\\"placeholder\\\",[28,[37,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.adminSNotes\\\"],null]],[24,0,\\\"timesheet__notes-row-input text-input\\\"],[24,\\\"data-test-note\\\",\\\"note\\\"],[16,\\\"rows\\\",4]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"note\\\",\\\"adminNote\\\"]]]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"timesheet__detail\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"hasDateAndWorker\\\"]],[[[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"filteredProjectMetas\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[15,0,[29,[\\\"timesheet__detail\\\\n                  \\\",[52,[51,[28,[37,22],[[30,2,[\\\"canBeForeman\\\"]],[30,2,[\\\"isSelf\\\"]]],null]],\\\"timesheets-table__entry--disabled\\\"],\\\"\\\\n                  \\\",[52,[28,[37,23],[[28,[37,21],[[30,2,[\\\"canBeForeman\\\"]]],null],[28,[37,15],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null]],null],\\\"timesheets-table__entry--disabled\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"timesheet__title\\\"],[15,\\\"data-test-timesheet-project\\\",[30,2,[\\\"project\\\",\\\"id\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[30,2,[\\\"project\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n                     \\\\n\\\"],[41,[30,2,[\\\"canBeForeman\\\"]],[[[1,\\\"                    \\\"],[8,[39,24],null,[[\\\"@class\\\",\\\"@value\\\",\\\"@action\\\"],[\\\"select-box\\\",[28,[37,22],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"pending\\\"],null],[28,[37,2],[[30,0],\\\"changeStatus\\\",[30,2]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"statuses\\\"]]],null]],null],null,[[[1,\\\"                        \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,5,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,5,[\\\"label\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                    \\\"]],[4]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[15,0,[29,[\\\"timesheets-table__entry-status\\\\n                        \\\",[52,[28,[37,15],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null],\\\"timesheets-table__entry-status--accepted\\\"]]]],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,25],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]]],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"projectMeta\\\",\\\"timesheetStatus\\\",\\\"didEdit\\\"]],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"timesheets-table__card-note--edited\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[12],[8,[39,26],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n                      \\\"],[1,[28,[35,7],[\\\"shared.timesheet.Edited by admin because\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[1,[28,[35,22],[[30,0,[\\\"projectMeta\\\",\\\"timesheetStatus\\\",\\\"editNote\\\"]],[28,[37,7],[\\\"shared.timesheet.No reason given\\\"],null]],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table timesheet__table\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,2,[\\\"timesheets\\\"]]],null]],null],null,[[[41,[51,[30,6,[\\\"isDeleted\\\"]]],[[[1,\\\"                        \\\"],[8,[39,30],null,[[\\\"@deleteTimesheet\\\",\\\"@setTask\\\",\\\"@timesheet\\\",\\\"@group\\\",\\\"@index\\\",\\\"@disabled\\\"],[[28,[37,2],[[30,0],\\\"deleteTimesheet\\\",[30,6]],null],[28,[37,2],[[30,0],\\\"setTask\\\",[30,6]],null],[30,6],[30,2],[28,[37,31],[[30,3],\\\"-\\\",[30,7]],null],[28,[37,22],[[28,[37,23],[[28,[37,21],[[30,2,[\\\"canBeForeman\\\"]]],null],[28,[37,21],[[30,2,[\\\"isSelf\\\"]]],null]],null],[28,[37,23],[[28,[37,21],[[30,2,[\\\"canBeForeman\\\"]]],null],[28,[37,15],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[6,7]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,23],[[30,2,[\\\"hasTasksToSelect\\\"]],[28,[37,22],[[30,2,[\\\"isSelf\\\"]],[30,2,[\\\"canBeForeman\\\"]]],null]],null],[[[41,[51,[28,[37,23],[[28,[37,21],[[30,2,[\\\"canBeForeman\\\"]]],null],[28,[37,15],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null]],null]],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add center timesheet__button\\\"],[16,\\\"data-test-add-cc\\\",[30,2,[\\\"project\\\",\\\"id\\\"]]],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"addTask\\\",[30,2,[\\\"project\\\"]]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.Add task for\\\"],null]],[1,\\\"\\\\n                      \\\"],[1,[30,2,[\\\"project\\\",\\\"name\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"remainingProjects\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"timesheet__add-project\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"button button--add\\\"],[12],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.Add a project\\\"],null]],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"select-box-replacement__select-box\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,33],[[24,\\\"data-test-job-select\\\",\\\"\\\"]],[[\\\"@tagName\\\",\\\"@searchEnabled\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@searchField\\\",\\\"@onChange\\\"],[\\\"div\\\",true,[30,0,[\\\"remainingProjects\\\"]],[30,0,[\\\"timesheet\\\",\\\"task\\\"]],\\\"name\\\",[28,[37,2],[[30,0],\\\"setNextProject\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[30,8,[\\\"name\\\"]]],[1,\\\"\\\\n                  \\\"]],[8]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"clear\\\"],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[\\\"common.Close\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,23],[[30,0,[\\\"model\\\",\\\"hasDateAndWorker\\\"]],[28,[37,22],[[30,0,[\\\"workerIsSelf\\\"]],[30,0,[\\\"canCurrentlyBeForeman\\\"]]],null],[30,0,[\\\"timesheetsByProject\\\",\\\"projectMetas\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,35],[[24,\\\"data-test-save\\\",\\\"save\\\"]],[[\\\"@isLoading\\\",\\\"@class\\\",\\\"@action\\\"],[[30,0,[\\\"isSaving\\\"]],\\\"button button--spaced float-end\\\",[28,[37,2],[[30,0],\\\"save\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showReasonDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,2],[[30,0],[30,0,[\\\"set\\\"]],\\\"showReasonDialog\\\",false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.pleaseGiveAReasonForHavingEditedNameTimesheets\\\"],[[\\\"name\\\"],[[30,0,[\\\"selectedWorker\\\",\\\"firstName\\\"]]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"timesheetsByProject\\\",\\\"projectMetas\\\"]]],null]],null],null,[[[41,[30,9,[\\\"canBeForeman\\\"]],[[[1,\\\"        \\\"],[1,[30,9,[\\\"project\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[8,[39,20],[[24,0,\\\"timesheet__notes-row-input text-input\\\"]],[[\\\"@value\\\"],[[30,9,[\\\"timesheetStatus\\\",\\\"editNote\\\"]]]],null],[1,\\\"\\\"]],[]],null]],[9]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,35],null,[[\\\"@class\\\",\\\"@buttonText\\\",\\\"@action\\\",\\\"@isLoading\\\"],[\\\"button button--primary float-end\\\",[28,[37,7],[\\\"common.Submit\\\"],null],[28,[37,2],[[30,0],\\\"save\\\",true],null],[30,0,[\\\"isSaving\\\"]]]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--secondary\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],[30,0,[\\\"set\\\"]],\\\"showReasonDialog\\\",false],null],[12],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"worker\\\",\\\"group\\\",\\\"groupIndex\\\",\\\"si\\\",\\\"status\\\",\\\"timesheet\\\",\\\"sheetIndex\\\",\\\"project\\\",\\\"projectMeta\\\"],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"action\\\",\\\"div\\\",\\\"p\\\",\\\"loading-icon\\\",\\\"h3\\\",\\\"t\\\",\\\"span\\\",\\\"select\\\",\\\"mut\\\",\\\"unless\\\",\\\"option\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"input\\\",\\\"on\\\",\\\"fn\\\",\\\"h4\\\",\\\"textarea\\\",\\\"not\\\",\\\"or\\\",\\\"and\\\",\\\"select-input\\\",\\\"timesheet-status-label\\\",\\\"fa-icon\\\",\\\"br\\\",\\\"table\\\",\\\"tbody\\\",\\\"timesheet-line-pm\\\",\\\"concat\\\",\\\"button\\\",\\\"power-select\\\",\\\"footer\\\",\\\"loading-button\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/timesheets/timesheet.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <ModuleNavigation::Operations::Outgoing />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Dashboard')\n      }}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"5Toau6h8\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Dashboard\\\"],null]]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"module-navigation/operations/outgoing\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/invoices/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Invoices'}}</h2>\n        {{/if}}\n  \n        {{#if (includes-feature-flags 'canManageInvoices')}}\n          <button\n            type='button'\n            class='btn btn-secondary text-white text-nowrap m-1'\n            disabled={{this.isLoading}}\n            {{on 'click' (fn (mut this.showInvoicesUploader) true)}}\n          >\n            <FaIcon @icon='upload' />&nbsp;&nbsp;{{t\n              'entity.builda-price.operations.outgoing.invoices.Import invoices'\n            }}\n          </button>\n          <button\n            type='button'\n            class='btn btn-secondary text-white text-nowrap m-1'\n            disabled={{or this.isLoading this.downloadAsCSV.isRunning}}\n            {{on 'click' (fn (mut this.showDownloadCsvModal) true)}}\n            data-test-download-csv\n          >\n            {{t 'shared.report.Download as CSV'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            {{on 'click' this.openNewInvoiceForm}}\n            disabled={{this.isLoading}}\n            data-test-add-new-invoice\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;\n            {{t 'common.New'}}\n          </button>\n        {{/if}}\n      </header>\n  \n      <div\n        class='d-flex align-items-center justify-content-end flex-wrap-reverse mb-2'\n      >\n        {{#if (and this.startDate this.endDate)}}\n          <PageFilters::Pill @onClose={{this.clearDateRange}}>\n            {{t 'common.Date range'}}:\n            {{moment-format this.startDate (t 'date.shortSlashDmy')}}\n            {{t 'common.to'}}\n            {{moment-format this.endDate (t 'date.shortSlashDmy')}}\n          </PageFilters::Pill>\n        {{/if}}\n        {{#if (not-eq this.invoiceType 'ALL')}}\n          <PageFilters::Pill @onClose={{fn (mut this.invoiceType) 'ALL'}}>\n            {{t 'common.Type'}}:\n            {{#if (eq this.invoiceType 'INVOICE')}}\n              {{t 'common.Invoice'}}\n            {{else}}\n              {{t 'common.Credit note'}}\n            {{/if}}\n          </PageFilters::Pill>\n        {{/if}}\n        {{#if (not-eq this.status 'ALL')}}\n          <PageFilters::Pill @onClose={{fn (mut this.status) 'ALL'}}>\n            {{t 'common.Status'}}:\n            {{#if (eq this.status 'DRAFT')}}\n              {{t 'common.Draft'}}\n            {{else if (eq this.status 'AWAITING_APPROVAL')}}\n              {{t 'common.Awaiting approval'}}\n            {{else if (eq this.status 'COMPLETED')}}\n              {{t 'common.Sent'}}\n            {{else if (eq this.status 'APPROVED')}}\n              {{t 'common.Approved'}}\n            {{/if}}\n          </PageFilters::Pill>\n        {{/if}}\n        {{#if this.contact}}\n          <PageFilters::Pill @onClose={{this.clearFilterContact}}>\n            {{t 'common.Contact'}}:\n            {{this.contact}}\n          </PageFilters::Pill>\n        {{/if}}\n  \n        <PageFilters class='m-1' @align='right' @disable={{this.isLoading}}>\n          <PageFilters::Item @label={{t 'common.Date range'}}>\n            <DateRangeSelector\n              @align='right'\n              @startDate={{this.jsStartDate}}\n              @endDate={{this.jsEndDate}}\n              @onApply={{this.setDateRange}}\n            />\n          </PageFilters::Item>\n  \n          <PageFilters::Item @label={{t 'common.Type'}}>\n            <SelectInput\n              class='select-box'\n              @action={{fn (mut this.invoiceType)}}\n              @value={{this.invoiceType}}\n              as |si|\n            >\n              <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n              <si.option @value='INVOICE'>{{t 'common.Invoice'}}</si.option>\n              <si.option @value='CREDIT_NOTE'>{{t\n                  'common.Credit note'\n                }}</si.option>\n            </SelectInput>\n          </PageFilters::Item>\n  \n          <PageFilters::Item @label={{t 'common.Status'}}>\n            <SelectInput\n              class='select-box'\n              @action={{fn (mut this.status)}}\n              @value={{this.status}}\n              as |si|\n            >\n              <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n              <si.option @value='DRAFT'>{{t 'common.Draft'}}</si.option>\n              <si.option @value='AWAITING_APPROVAL'>{{t\n                  'common.Awaiting approval'\n                }}</si.option>\n              <si.option @value='APPROVED'>{{t 'common.Approved'}}</si.option>\n              <si.option @value='COMPLETED'>{{t 'common.Completed'}}</si.option>\n            </SelectInput>\n          </PageFilters::Item>\n  \n          <PageFilters::Item @label={{t 'common.Contact'}}>\n            <SearchSelector\n              @onSelect={{this.setFilterContact}}\n              @onLoad={{this.loadContacts}}\n              @noDataMessage={{t 'common.Create a contact'}}\n              @noDataRoute='entity.settings.contacts.contact'\n              @showNoDataRouteWithResults={{true}}\n              @key='contact'\n              @optionKeys={{array 'name'}}\n              @model={{this.contactFilterModel}}\n            />\n          </PageFilters::Item>\n        </PageFilters>\n  \n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t 'common.Search'}}\n          aria-label='Search…'\n          @type='search'\n          @value={{this.invoiceSearchTerm}}\n          disabled={{this.isLoading}}\n          {{on 'input' (perform this.onChangeInvoiceSearchTerm)}}\n          autofocus={{true}}\n          data-test-invoice-search\n        />\n      </div>\n  \n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        {{#if this.model.invoices.lastSuccessful.value.length}}\n          {{#if (media 'isDesktop')}}\n            <div class='px-3'>\n              <div class='row'>\n                <div\n                  class='col-3 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'invoiceNumber')}}\n                >\n                  {{t 'common.Invoice number'}}\n                  {{#if this.invoiceNumberIconName}}\n                    <FaIcon @icon={{this.invoiceNumberIconName}} />\n                  {{/if}}\n                </div>\n                <div class='col-2 fw-bold'>{{t 'common.Contact'}}</div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'issueDate')}}\n                >\n                  {{t 'common.Issue date'}}\n                  {{#if this.issueDateIconName}}\n                    <FaIcon @icon={{this.issueDateIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'dateCreated')}}\n                >\n                  {{t 'common.Created date'}}\n                  {{#if this.dateCreatedIconName}}\n                    <FaIcon @icon={{this.dateCreatedIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-1 fw-bold text-center'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'status')}}\n                >\n                  {{t 'common.Status'}}\n                  {{#if this.statusIconName}}\n                    <FaIcon @icon={{this.statusIconName}} />\n                  {{/if}}\n                </div>\n                <div class='col-1 fw-bold text-center'>\n                  {{t 'common.Total'}}\n                </div>\n                <div class='col-1 fw-bold'></div>\n              </div>\n            </div>\n          {{/if}}\n  \n          <InfinityScroll\n            @onLoadMore={{perform this.onLoadMoreInvoices}}\n            as |didInsert|\n          >\n            <div\n              class='overflow-auto'\n              style='height: calc(100vh - 320px);'\n              {{did-insert didInsert}}\n            >\n              {{#each this.model.invoices.lastSuccessful.value as |invoice|}}\n                <div class='py-2'>\n                  <LinkTo\n                    @route='entity.builda-price.operations.outgoing.invoices.invoice'\n                    @model={{invoice.id}}\n                    class='project-card__card card shadow-sm text-dark p-3'\n                    role='button'\n                    data-test-project={{invoice.id}}\n                  >\n                    <div class='row align-items-center'>\n                      <div\n                        class='col project-card__project-name fs-2 d-flex align-items-center'\n                        data-test-project-card-name\n                      >\n                        {{invoice.invoiceNumber}}\n                        {{#if (eq invoice.invoiceType 'CREDIT_NOTE')}}\n                          <span class='badge bg-info ms-1 fs-7'>\n                            {{invoice.typeLabel}}\n                          </span>\n                        {{/if}}\n                      </div>\n  \n                      {{#if (media 'isDesktop')}}\n                        <div class='col-2 fs-5'>\n                          {{#if invoice.toContact.name}}\n                            {{invoice.toContact.name}}\n                          {{else}}\n                            —\n                          {{/if}}\n                        </div>\n  \n                        <div class='col-2 fs-5'>\n                          {{#if invoice.issueDate}}\n                            {{moment-format\n                              invoice.issueDate\n                              (t 'date.shortWithWeekday')\n                            }}\n                          {{else}}\n                            —\n                          {{/if}}\n                        </div>\n  \n                        <div class='col-2 fs-5'>\n                          {{#if invoice.dateCreated}}\n                            {{moment-format\n                              invoice.dateCreated\n                              (t 'date.shortWithWeekday')\n                            }}\n                          {{else}}\n                            —\n                          {{/if}}\n                        </div>\n                      {{/if}}\n                      <div class='col-lg-1 col-3 d-flex justify-content-center'>\n                        <span\n                          class='badge rounded-pill fs-6 px-3 py-2\n                            {{if (eq invoice.status \"COMPLETED\") \"bg-success\"}}\n                            {{if (eq invoice.status \"DRAFT\") \"bg-secondary\"}}\n                            {{if\n                              (eq invoice.status \"AWAITING_APPROVAL\")\n                              \"bg-warning text-dark\"\n                            }}\n                            {{if (eq invoice.status \"APPROVED\") \"bg-info\"}}\n                            '\n                        >\n                          {{invoice.statusLabel}}\n                        </span>\n                      </div>\n                      <div class='col-lg-1 col fs-5 text-center text-nowrap'>\n                        {{number-format\n                          invoice.totalPrice\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </div>\n  \n                      <div\n                        class='col-1 d-flex align-items-center justify-content-end'\n                      >\n                        <FaIcon @icon='chevron-right' class='fs-2' />\n                      </div>\n                    </div>\n                  </LinkTo>\n                </div>\n              {{/each}}\n            </div>\n          </InfinityScroll>\n        {{else}}\n          <div class='error-page error-page--no-data'>\n            <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n            <h3 class='h3 error-page__title'>{{t\n                'entity.builda-price.operations.outgoing.invoices.No invoices'\n              }}</h3>\n          </div>\n        {{/if}}\n      {{/if}}\n    </article>\n  {{/if}}\n  \n  {{#if this.invoiceChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.onClose}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <form data-test-new-invoice-form>\n          <PtlInput\n            @type='select'\n            @required={{true}}\n            @label={{t 'common.Type'}}\n            @key='invoiceType'\n            @options={{this.invoiceTypes}}\n            @selectNoBlankOption={{true}}\n            @disabled={{this.onSaveInvoice.isRunning}}\n            @model={{this.invoiceChangeSet}}\n            @onChange={{this.onChangeInvoiceType}}\n            @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n          />\n          {{#if (eq this.invoiceChangeSet.invoiceType 'CREDIT_NOTE')}}\n            <div class='mb-3'>\n              <label class='mb-1'>\n                {{t\n                  'entity.builda-price.operations.outgoing.invoices.From Invoice number'\n                }}&nbsp;\n                <InfoPopup\n                  @class='ms-1'\n                  @text={{t\n                    'entity.builda-price.operations.outgoing.invoices.fromInvoiceInfo'\n                  }}\n                />\n              </label>\n  \n              <SearchSelector\n                @onSelect={{this.setReferencedInvoice}}\n                disabled={{or this.onSaveInvoice.isRunning}}\n                @onLoad={{this.loadCompletedInvoices}}\n                @noDataMessage={{t\n                  'entity.builda-price.operations.outgoing.invoices.No invoices'\n                }}\n                @key='referencedInvoice'\n                @optionKeys={{array 'invoiceNumber'}}\n                @model={{this.invoiceChangeSet}}\n                @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n              />\n            </div>\n          {{/if}}\n          <PtlInput\n            @type='text'\n            @required={{true}}\n            @label={{t 'common.Invoice number'}}\n            @key='invoiceNumber'\n            @model={{this.invoiceChangeSet}}\n            disabled={{or this.onSaveInvoice.isRunning}}\n            placeholder={{this.nextInvoiceNumber}}\n            @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n          />\n  \n          {{#if\n            (or\n              (not-eq this.invoiceChangeSet.invoiceType 'CREDIT_NOTE')\n              (and\n                (eq this.invoiceChangeSet.invoiceType 'CREDIT_NOTE')\n                (not this.invoiceChangeSet.referenceInvoiceNumber)\n              )\n            )\n          }}\n            <div class='mb-3'>\n              <label class='mb-1'>{{t 'common.Contact'}}\n                <sup class='text-danger'>*</sup>\n              </label>\n              <SearchSelector\n                @onSelect={{this.setToContact}}\n                @onLoad={{this.loadContacts}}\n                @noDataMessage={{t 'common.Create a contact'}}\n                @noDataRoute='entity.settings.contacts.contact'\n                @showNoDataRouteWithResults={{true}}\n                @key='toContact'\n                @optionKeys={{array 'name'}}\n                @model={{this.invoiceChangeSet}}\n                @disabled={{or this.onSaveInvoice.isRunning}}\n                @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n              />\n            </div>\n          {{/if}}\n  \n          <PtlInput\n            @type='date'\n            @label={{t 'common.Issue date'}}\n            @key='issueDate'\n            @model={{this.invoiceChangeSet}}\n            disabled={{or this.onSaveInvoice.isRunning}}\n            @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n          />\n  \n          {{#unless (eq this.invoiceChangeSet.invoiceType 'CREDIT_NOTE')}}\n            <PtlInput\n              @type='date'\n              @label={{t 'common.Due date'}}\n              @key='dueDate'\n              @model={{this.invoiceChangeSet}}\n              disabled={{or this.onSaveInvoice.isRunning}}\n              @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n            />\n          {{/unless}}\n        </form>\n      </div>\n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            data-test-new-invoice-close-button\n            disabled={{this.onSaveInvoice.isRunning}}\n            {{on 'click' this.onClose}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.onSaveInvoice.isRunning}}\n            {{on 'click' (perform this.onSaveInvoice this.invoiceChangeSet)}}\n          >\n            {{#if this.onSaveInvoice.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Creating'}}&hellip;\n            {{else}}\n              {{t 'common.Create'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showDownloadCsvModal}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.showDownloadCsvModal) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        <p>{{t\n            'entity.builda-price.operations.outgoing.invoices.downloadCSVMessage'\n          }}</p>\n  \n        <DateRangeSelector\n          @align='right'\n          @startDate={{this.jsExportFromDate}}\n          @endDate={{this.jsExportToDate}}\n          @onApply={{this.setExportDateRange}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            disabled={{this.downloadAsCSV.isRunning}}\n            {{on 'click' (fn (mut this.showDownloadCsvModal) false)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.downloadAsCSV.isRunning}}\n            {{on 'click' (perform this.downloadAsCSV)}}\n          >\n            {{#if this.downloadAsCSV.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Downloading'}}&hellip;\n            {{else}}\n              {{t 'common.Download'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showInvoicesUploader}}\n    <InvoicesUploader\n      @onUploadInvoices={{this.onUploadInvoiceCSV}}\n      @onClose={{fn (mut this.showInvoicesUploader) false}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"fUJ0jHj1\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Invoices\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canManageInvoices\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"showInvoicesUploader\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.invoices.Import invoices\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"downloadAsCSV\\\",\\\"isRunning\\\"]]],null]],[24,\\\"data-test-download-csv\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"showDownloadCsvModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.report.Download as CSV\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"data-test-add-new-invoice\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"openNewInvoiceForm\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\\n          \\\"],[1,[28,[35,6],[\\\"common.New\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-end flex-wrap-reverse mb-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"startDate\\\"]],[30,0,[\\\"endDate\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,16],null,[[\\\"@onClose\\\"],[[30,0,[\\\"clearDateRange\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Date range\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[28,[35,17],[[30,0,[\\\"startDate\\\"]],[28,[37,6],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.to\\\"],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,0,[\\\"endDate\\\"]],[28,[37,6],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,18],[[30,0,[\\\"invoiceType\\\"]],\\\"ALL\\\"],null],[[[1,\\\"        \\\"],[8,[39,16],null,[[\\\"@onClose\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"invoiceType\\\"]]],null],\\\"ALL\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Type\\\"],null]],[1,\\\":\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"invoiceType\\\"]],\\\"INVOICE\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Invoice\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Credit note\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,18],[[30,0,[\\\"status\\\"]],\\\"ALL\\\"],null],[[[1,\\\"        \\\"],[8,[39,16],null,[[\\\"@onClose\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"status\\\"]]],null],\\\"ALL\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"status\\\"]],\\\"DRAFT\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Draft\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Awaiting approval\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Sent\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"status\\\"]],\\\"APPROVED\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Approved\\\"],null]],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]]]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"contact\\\"]],[[[1,\\\"        \\\"],[8,[39,16],null,[[\\\"@onClose\\\"],[[30,0,[\\\"clearFilterContact\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Contact\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"contact\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,20],[[24,0,\\\"m-1\\\"]],[[\\\"@align\\\",\\\"@disable\\\"],[\\\"right\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Date range\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"right\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Type\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,23],[[24,0,\\\"select-box\\\"]],[[\\\"@action\\\",\\\"@value\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"invoiceType\\\"]]],null]],null],[30,0,[\\\"invoiceType\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"INVOICE\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Invoice\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CREDIT_NOTE\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Credit note\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Status\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,23],[[24,0,\\\"select-box\\\"]],[[\\\"@action\\\",\\\"@value\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"status\\\"]]],null]],null],[30,0,[\\\"status\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"AWAITING_APPROVAL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Awaiting approval\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"APPROVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Approved\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"COMPLETED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Completed\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[2]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Contact\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,24],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataRoute\\\",\\\"@showNoDataRouteWithResults\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\"],[[30,0,[\\\"setFilterContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,6],[\\\"common.Create a contact\\\"],null],\\\"entity.settings.contacts.contact\\\",true,\\\"contact\\\",[28,[37,25],[\\\"name\\\"],null],[30,0,[\\\"contactFilterModel\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,26],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"aria-label\\\",\\\"Search…\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[16,\\\"autofocus\\\",true],[24,\\\"data-test-invoice-search\\\",\\\"\\\"],[4,[38,9],[\\\"input\\\",[28,[37,27],[[30,0,[\\\"onChangeInvoiceSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"search\\\",[30,0,[\\\"invoiceSearchTerm\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"lastSuccessful\\\",\\\"value\\\",\\\"length\\\"]],[[[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-3 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"sortColumn\\\"]],\\\"invoiceNumber\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Invoice number\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceNumberIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[30,0,[\\\"invoiceNumberIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-2 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Contact\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"sortColumn\\\"]],\\\"issueDate\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Issue date\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"issueDateIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[30,0,[\\\"issueDateIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"sortColumn\\\"]],\\\"dateCreated\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Created date\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"dateCreatedIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[30,0,[\\\"dateCreatedIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-1 fw-bold text-center\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"sortColumn\\\"]],\\\"status\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"statusIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[30,0,[\\\"statusIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-1 fw-bold text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-1 fw-bold\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,28],null,[[\\\"@onLoadMore\\\"],[[28,[37,27],[[30,0,[\\\"onLoadMoreInvoices\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"overflow-auto\\\"],[24,5,\\\"height: calc(100vh - 320px);\\\"],[4,[38,29],[[30,3]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,31],[[28,[37,31],[[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"lastSuccessful\\\",\\\"value\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[14,0,\\\"py-2\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,32],[[24,0,\\\"project-card__card card shadow-sm text-dark p-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-test-project\\\",[30,4,[\\\"id\\\"]]]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.operations.outgoing.invoices.invoice\\\",[30,4,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col project-card__project-name fs-2 d-flex align-items-center\\\"],[14,\\\"data-test-project-card-name\\\",\\\"\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,4,[\\\"invoiceNumber\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,4,[\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"badge bg-info ms-1 fs-7\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[30,4,[\\\"typeLabel\\\"]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"                      \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"toContact\\\",\\\"name\\\"]],[[[1,\\\"                          \\\"],[1,[30,4,[\\\"toContact\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          —\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\\n                      \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"issueDate\\\"]],[[[1,\\\"                          \\\"],[1,[28,[35,17],[[30,4,[\\\"issueDate\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          —\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\\n                      \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"dateCreated\\\"]],[[[1,\\\"                          \\\"],[1,[28,[35,17],[[30,4,[\\\"dateCreated\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          —\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[10,0],[14,0,\\\"col-lg-1 col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n                          \\\",[52,[28,[37,19],[[30,4,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],\\\"bg-success\\\"],\\\"\\\\n                          \\\",[52,[28,[37,19],[[30,4,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n                          \\\",[52,[28,[37,19],[[30,4,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n                          \\\",[52,[28,[37,19],[[30,4,[\\\"status\\\"]],\\\"APPROVED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n                          \\\"]]],[12],[1,\\\"\\\\n                        \\\"],[1,[30,4,[\\\"statusLabel\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-lg-1 col fs-5 text-center text-nowrap\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,34],[[30,4,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"col-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,12],[[24,0,\\\"fs-2\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.invoices.No invoices\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,36],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"onClose\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"form\\\"],[14,\\\"data-test-new-invoice-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,38],null,[[\\\"@type\\\",\\\"@required\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@selectNoBlankOption\\\",\\\"@disabled\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",true,[28,[37,6],[\\\"common.Type\\\"],null],\\\"invoiceType\\\",[30,0,[\\\"invoiceTypes\\\"]],true,[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]],[30,0,[\\\"invoiceChangeSet\\\"]],[30,0,[\\\"onChangeInvoiceType\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"invoiceChangeSet\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.invoices.From Invoice number\\\"],null]],[1,\\\" \\\\n              \\\"],[8,[39,41],null,[[\\\"@class\\\",\\\"@text\\\"],[\\\"ms-1\\\",[28,[37,6],[\\\"entity.builda-price.operations.outgoing.invoices.fromInvoiceInfo\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,24],[[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setReferencedInvoice\\\"]],[30,0,[\\\"loadCompletedInvoices\\\"]],[28,[37,6],[\\\"entity.builda-price.operations.outgoing.invoices.No invoices\\\"],null],\\\"referencedInvoice\\\",[28,[37,25],[\\\"invoiceNumber\\\"],null],[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,38],[[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null]],[16,\\\"placeholder\\\",[30,0,[\\\"nextInvoiceNumber\\\"]]]],[[\\\"@type\\\",\\\"@required\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",true,[28,[37,6],[\\\"common.Invoice number\\\"],null],\\\"invoiceNumber\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,13],[[28,[37,18],[[30,0,[\\\"invoiceChangeSet\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[28,[37,15],[[28,[37,19],[[30,0,[\\\"invoiceChangeSet\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[28,[37,42],[[30,0,[\\\"invoiceChangeSet\\\",\\\"referenceInvoiceNumber\\\"]]],null]],null]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,6],[\\\"common.Contact\\\"],null]],[1,\\\"\\\\n              \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,24],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataRoute\\\",\\\"@showNoDataRouteWithResults\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setToContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,6],[\\\"common.Create a contact\\\"],null],\\\"entity.settings.contacts.contact\\\",true,\\\"toContact\\\",[28,[37,25],[\\\"name\\\"],null],[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,38],[[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.Issue date\\\"],null],\\\"issueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,19],[[30,0,[\\\"invoiceChangeSet\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null]],[[[1,\\\"          \\\"],[8,[39,38],[[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-invoice-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"onClose\\\"]]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"onSaveInvoice\\\"]],[30,0,[\\\"invoiceChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Creating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDownloadCsvModal\\\"]],[[[1,\\\"  \\\"],[8,[39,36],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"showDownloadCsvModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.invoices.downloadCSVMessage\\\"],null]],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,22],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"right\\\",[30,0,[\\\"jsExportFromDate\\\"]],[30,0,[\\\"jsExportToDate\\\"]],[30,0,[\\\"setExportDateRange\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCSV\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"showDownloadCsvModal\\\"]]],null],false],null]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCSV\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"downloadAsCSV\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCSV\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showInvoicesUploader\\\"]],[[[1,\\\"  \\\"],[8,[39,46],null,[[\\\"@onUploadInvoices\\\",\\\"@onClose\\\"],[[30,0,[\\\"onUploadInvoiceCSV\\\"]],[28,[37,10],[[28,[37,11],[[30,0,[\\\"showInvoicesUploader\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"si\\\",\\\"didInsert\\\",\\\"invoice\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"article\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"or\\\",\\\"div\\\",\\\"and\\\",\\\"page-filters/pill\\\",\\\"moment-format\\\",\\\"not-eq\\\",\\\"eq\\\",\\\"page-filters\\\",\\\"page-filters/item\\\",\\\"date-range-selector\\\",\\\"select-input\\\",\\\"search-selector\\\",\\\"array\\\",\\\"input\\\",\\\"perform\\\",\\\"infinity-scroll\\\",\\\"did-insert\\\",\\\"each\\\",\\\"-track-array\\\",\\\"link-to\\\",\\\"span\\\",\\\"number-format\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"form\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"label\\\",\\\"info-popup\\\",\\\"not\\\",\\\"sup\\\",\\\"unless\\\",\\\"p\\\",\\\"invoices-uploader\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/invoices/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/invoices/invoice\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Invoice')}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.outgoing.invoices.index'\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4'>\n    <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n  \n      {{#unless this.isLoading}}\n  \n        <h2 class='flex-grow-1 m-0 my-2 d-flex align-items-center'>\n          {{this.model.invoice.last.value.typeLabel}}&nbsp;{{this.model.invoice.last.value.invoiceNumber}}\n          <span\n            class='badge ms-1 fs-7\n              {{if (eq this.status \"COMPLETED\") \"bg-success\"}}\n              {{if (eq this.status \"DRAFT\") \"bg-secondary\"}}\n              {{if (eq this.status \"AWAITING_APPROVAL\") \"bg-warning text-dark\"}}\n              {{if (eq this.status \"APPROVED\") \"bg-info\"}}\n              '\n          >\n            {{this.invoice.statusLabel}}\n          </span>\n        </h2>\n  \n        <LinkTo\n          @route='entity.builda-price.reports.company.notes'\n          @query={{hash invoiceId=this.model.invoice.last.value.id}}\n          class='btn btn-link p-0 m-1'\n        >View timesheet notes\n          <FaIcon class='ms-1' @icon='external-link-alt' />\n        </LinkTo>\n  \n        <button\n          type='button'\n          class='btn btn-link text-primary text-decoration-underline m-1'\n          {{on 'click' this.showConfigureBreakdownOptionsModalDialog}}\n        >\n          {{t\n            'entity.builda-price.operations.outgoing.invoices.invoice.Breakdown options'\n          }}\n        </button>\n  \n        {{#if (eq this.relatedDocuments.length 1)}}\n          <button\n            type='button'\n            class='btn btn-primary text-white m-1'\n            disabled={{this.isLoading}}\n            {{on\n              'click'\n              (perform\n                (get this.relatedDocuments '0.action')\n                (get this.relatedDocuments '0.id')\n              )\n            }}\n          >\n            {{get this.relatedDocuments '0.label'}}\n          </button>\n        {{else if (gt this.relatedDocuments.length 1)}}\n          <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n            <button type='button' class='btn btn-primary text-white m-1'>\n              {{this.relatedDocuments.length}}\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Related documents'\n              }}&nbsp;&nbsp;\n              <FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              {{#each this.relatedDocuments as |document|}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform document.action document.id)}}\n                >\n                  {{document.label}}\n                </button>\n              {{/each}}\n            </po.Content>\n          </PopOver>\n        {{/if}}\n  \n        {{#if this.invoiceItems.length}}\n          {{#if this.accountingPlatform.isActive}}\n            {{#if\n              (or\n                (and\n                  (eq this.accountingPlatform.activePlatform 'xero')\n                  this.invoice.xeroInvoiceId\n                )\n                (and\n                  (eq this.accountingPlatform.activePlatform 'quickbooks')\n                  this.invoice.quickbooksInvoiceId\n                )\n              )\n            }}\n              <button\n                type='button'\n                class='btn btn-link text-primary text-decoration-underline m-1'\n                {{on 'click' (perform this.viewInAccountingPackage)}}\n                disabled={{this.viewInAccountingPackage.isRunning}}\n              >\n                {{#if this.viewInAccountingPackage.isRunning}}\n                  {{t 'common.Sending'}}&hellip;\n                {{else}}\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.viewInLabel'\n                    label=this.accountingPlatform.label\n                  }}\n                  <FaIcon class='ms-1' @icon='external-link-alt' />\n                {{/if}}\n              </button>\n            {{/if}}\n  \n            {{!other accounting packages go here}}\n          {{/if}}\n  \n          {{#if\n            (and\n              this.invoiceActions.primaryAction\n              (not this.invoiceActions.secondaryActions.length)\n            )\n          }}\n            <button\n              type='button'\n              class='btn btn-primary text-white m-1'\n              disabled={{or this.isLoading this.isActionsRunning}}\n              {{on\n                'click'\n                (perform\n                  this.invoiceActions.primaryAction.action\n                  this.invoiceActions.primaryAction.targetStatus\n                )\n              }}\n            >\n              {{#if this.isActionsRunning}}\n                {{t 'common.Syncing'}}&hellip;\n              {{else}}\n                {{this.invoiceActions.primaryAction.name}}\n              {{/if}}\n            </button>\n          {{else if\n            (and\n              this.invoiceActions.primaryAction\n              this.invoiceActions.secondaryActions.length\n            )\n          }}\n            <div class='m-1 d-flex'>\n              <button\n                type='button'\n                class='btn btn-primary rounded-0 rounded-start text-white'\n                disabled={{or this.isLoading this.isActionsRunning}}\n                {{on\n                  'click'\n                  (perform\n                    this.invoiceActions.primaryAction.action\n                    this.invoiceActions.primaryAction.targetStatus\n                    this.invoiceActions.primaryAction.syncToAccountingPackage\n                  )\n                }}\n              >\n                {{#if this.isActionsRunning}}\n                  {{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{this.invoiceActions.primaryAction.name}}\n                {{/if}}\n              </button>\n  \n              <PopOver\n                @direction='bottom-left'\n                @disabled={{or this.isLoading this.isActionsRunning}}\n                as |po|\n              >\n                <button\n                  type='button'\n                  class='btn btn-primary rounded-0 rounded-end text-white'\n                  disabled={{or this.isLoading this.isActionsRunning}}\n                >\n                  <FaIcon @icon='caret-down' />\n                </button>\n                <po.Content>\n                  {{#each this.invoiceActions.secondaryActions as |action|}}\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      {{on\n                        'click'\n                        (perform\n                          action.action\n                          action.targetStatus\n                          action.syncToAccountingPackage\n                        )\n                      }}\n                      disabled={{action.action.isRunning}}\n                    >\n                      {{#if action.action.isRunning}}\n                        {{t 'common.Updating'}}&hellip;\n                      {{else}}\n                        {{action.name}}\n                      {{/if}}\n                    </button>\n                  {{/each}}\n                </po.Content>\n              </PopOver>\n            </div>\n          {{/if}}\n        {{/if}}\n  \n        {{#if this.canUseFileStorage}}\n          <AttachmentDropdownList\n            @buttonClass='btn btn-secondary text-white m-1'\n            @attachments={{this.model.invoice.last.value.myAttachments}}\n            @parent={{this.model.invoice.last.value}}\n            @onUploadComplete={{this.attachmentsUploadComplete}}\n            @onDownloadAttachment={{this.downloadAttachment}}\n            @onDeleteAttachment={{this.deleteAttachment}}\n            @isDragAndDropVisible={{this.canManageFileStorage}}\n          />\n        {{/if}}\n  \n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn this.setDownloadInvoice 'pdf')}}\n              disabled={{this.isDownloadingInvoice}}\n            >\n              {{#if this.isDownloadingInvoice}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn this.setDownloadInvoice 'csv')}}\n              disabled={{this.isDownloadingInvoice}}\n            >\n              {{#if this.isDownloadingInvoice}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as CSV'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn this.setDownloadInvoice 'excel')}}\n              disabled={{this.isDownloadingInvoice}}\n            >\n              {{#if this.isDownloadingInvoice}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as Excel'}}\n              {{/if}}\n            </button>\n          </po.Content>\n        </PopOver>\n      {{/unless}}\n  \n    </header>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='d-flex flex-column border rounded mb-4'>\n        <div class='pt-3 px-3 flex-grow-1 d-flex align-items-center'>\n          <h4 class='m-0 p-0'>{{t 'common.Details'}}</h4>\n          <button\n            class='ms-auto btn btn-sm btn-primary\n              {{if\n                this.invoiceChangeSet.isInvalid\n                \"invoice__edit-button--warning\"\n              }}'\n            type='button'\n            {{on 'click' (fn (mut this.isEditingInvoice) true)}}\n            id={{this.invoiceEditButtonId}}\n          >\n            {{t 'common.Edit'}}&nbsp;\n            <FaIcon @icon='edit' />\n          </button>\n        </div>\n  \n        <div class='row m-0'>\n          <div class='col flex-column d-flex p-3'>\n            <h5 class='mb-1'>{{t 'common.Invoice number'}}</h5>\n            <p class='m-0'>\n              {{this.invoice.invoiceNumber}}\n            </p>\n          </div>\n          <div class='col flex-column d-flex p-3'>\n            <h5 class='mb-1'>{{t 'common.Contact'}}</h5>\n            <p class='m-0'>\n              {{#if (includes-feature-flags 'canUseSuppliers')}}\n                {{#if this.invoice.toContact.name}}\n                  <div\n                    role='button'\n                    {{on 'click' this.goToSupplier}}\n                    class='btn btn-link p-0'\n                  >\n                    {{this.invoice.toContact.name}}&nbsp;\n                    <FaIcon @icon='external-link-alt' />\n                  </div>\n                {{else}}\n                  &mdash;\n                {{/if}}\n              {{else}}\n                {{this.invoice.toContact.name}}\n              {{/if}}\n            </p>\n          </div>\n          <div class='col flex-column d-flex p-3'>\n            <h5 class='mb-1'>{{t 'common.Issue date'}}</h5>\n            <p class='m-0'>\n              {{#if this.invoice.issueDate}}\n                {{moment-format\n                  this.invoice.issueDate\n                  (t 'date.shortWithWeekday')\n                }}\n              {{else}}\n                &mdash;\n              {{/if}}\n            </p>\n          </div>\n          <div class='col flex-column d-flex p-3'>\n            <h5 class='mb-1'>{{t 'common.Due date'}}</h5>\n            <p class='m-0'>\n              {{#if this.invoice.dueDate}}\n                {{moment-format this.invoice.dueDate (t 'date.shortWithWeekday')}}\n              {{else}}\n                &mdash;\n              {{/if}}\n            </p>\n          </div>\n        </div>\n      </div>\n  \n      <div class='mb-2 d-flex justify-content-end align-items-center'>\n        {{#if this.canEdit}}\n          <div class='flex-grow-1'>\n            {{#if this.selectedItemIndexes.size}}\n              <button\n                class='btn btn-link text-danger text-decoration-underline'\n                type='button'\n                {{on 'click' (perform this.deleteInvoiceItems)}}\n                disabled={{not this.selectedItemIndexes.size}}\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Delete items'\n                }}\n              </button>\n            {{/if}}\n          </div>\n          {{#if this.canAddItems}}\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap'\n              disabled={{this.deleteInvoiceItems.isRunning}}\n              {{on 'click' this.addInvoiceItem}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n            </button>\n          {{/if}}\n        {{/if}}\n      </div>\n  \n      <div class='invoice__invoice-items-table-container'>\n        <PaginationTable\n          @tableHeader={{this.itemTableHeader}}\n          @tableData={{this.itemTableData}}\n          @noDataText={{t 'common.No items'}}\n          @isLoading={{this.model.invoiceItems.isRunning}}\n          @hidePagination={{true}}\n          @class='table-bordered\n            {{if this.invoiceTotalError \"invoice__invoice-items-table--invalid\"}}'\n          @validationMessage={{this.invoiceTotalError}}\n        />\n      </div>\n      <div class='invoice__footer mt-3'>\n        {{#if this.canManageOrApproveInvoice}}\n          <div class='d-flex align-items-center justify-content-between mt-3'>\n            <div>\n              {{#if\n                (and\n                  (eq this.status 'COMPLETED')\n                  (not-eq this.invoice.invoiceType 'CREDIT_NOTE')\n                  (not this.relatedDocuments.length)\n                )\n              }}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{or\n                    this.saveInvoice.isRunning\n                    this.onDeleteInvoice.isRunning\n                  }}\n                  {{on 'click' (fn (mut this.isCreatingCreditNote) true)}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.Create credit note'\n                  }}\n                </button>\n              {{else if (not-eq this.status 'COMPLETED')}}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{or\n                    this.saveInvoice.isRunning\n                    this.onDeleteInvoice.isRunning\n                  }}\n                  {{on 'click' (fn (mut this.isDeletingInvoice) true)}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.Delete invoice'\n                  }}\n                </button>\n              {{/if}}\n            </div>\n            {{#if this.totalFooter}}\n              {{#if this.totalFooter}}\n                <div class='my-2 text-end'>\n                  <div class='mb-1'>{{t 'common.Subtotal'}}:\n                    {{this.totalFooter.subtotal}}</div>\n                  <div class='mb-1'>{{t 'common.Tax'}}:\n                    {{this.totalFooter.tax}}</div>\n                  <div class='mb-1'>{{t 'common.Total'}}:\n                    {{this.totalFooter.total}}</div>\n                </div>\n              {{/if}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.isDeletingInvoice}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{fn (mut this.isDeletingInvoice) false}}\n      @translucentOverlay={{true}}\n    >\n      <div\n        class='modal-content'\n        {{did-insert (perform this.validateInvoiceSafeToDelete)}}\n      >\n        {{#if this.validateInvoiceSafeToDelete.isRunning}}\n          <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n        {{else}}\n          <div class='modal-body'>\n            {{#unless this.validateInvoiceSafeToDelete.last.value}}\n              <div class='alert alert-warning pb-0 pt-0'>\n                <p>\n                  {{html-safe\n                    (t\n                      'entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoiceCalculationDependencyWarning'\n                    )\n                  }}\n                </p>\n              </div>\n            {{/unless}}\n  \n            <p class='ms-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoicePrompt'\n              }}\n            </p>\n          </div>\n  \n          <div class='modal-footer'>\n            <button\n              class='btn btn-danger text-white'\n              type='button'\n              disabled={{this.onDeleteInvoice.isRunning}}\n              {{on 'click' (perform this.onDeleteInvoice)}}\n            >\n              {{#if this.onDeleteInvoice.isRunning}}\n                {{t 'common.Deleting'}}&hellip;\n              {{else}}\n                {{t 'common.Delete'}}\n              {{/if}}\n            </button>\n            <button\n              class='btn btn-secondary text-white'\n              type='button'\n              disabled={{this.onDeleteInvoice.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingInvoice) false)}}\n            >{{t 'common.Cancel'}}</button>\n          </div>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isCreatingCreditNote}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{fn (mut this.isCreatingCreditNote) false}}\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-content'>\n        <div class='modal-body'>\n          <p>\n            {{t\n              'entity.builda-price.operations.outgoing.invoices.invoice.createCreditNoteConfirmMessage'\n            }}\n          </p>\n        </div>\n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary text-white'\n            type='button'\n            disabled={{this.createCreditNote.isRunning}}\n            {{on 'click' (fn (mut this.isCreatingCreditNote) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-primary text-white'\n            type='button'\n            disabled={{this.createCreditNote.isRunning}}\n            {{on 'click' (perform this.createCreditNote)}}\n          >\n            {{#if this.createCreditNote.isRunning}}\n              {{t 'common.Creating'}}&hellip;\n            {{else}}\n              {{t 'common.Create'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isRevertCompletedToDraftInvoice}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{fn (mut this.isRevertCompletedToDraftInvoice) false}}\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-content'>\n        <div class='modal-body'>\n          <p>\n            {{t\n              'entity.builda-price.operations.outgoing.invoices.invoice.revertDraftInvoicePrompt'\n            }}\n          </p>\n        </div>\n  \n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary text-white'\n            type='button'\n            disabled={{this.changeStatus.isRunning}}\n            {{on 'click' (fn (mut this.isRevertCompletedToDraftInvoice) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-danger text-white'\n            type='button'\n            disabled={{this.changeStatus.isRunning}}\n            {{on 'click' (perform this.changeStatus 'DRAFT' false)}}\n          >\n            {{#if this.changeStatus.isRunning}}\n              {{t 'common.Reverting'}}&hellip;\n            {{else}}\n              {{t 'common.Revert'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isEditingInvoice}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{this.closeInvoiceEditModal}}\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-content'>\n        <div class='modal-body'>\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Invoice number'}}\n            @key='invoiceNumber'\n            @required={{true}}\n            @model={{this.invoiceChangeSet}}\n            disabled={{or this.saveInvoice.isRunning (not this.canEdit)}}\n            @forceValidationVisible={{gt this.saveInvoice.performCount 0}}\n          />\n  \n          <div class='mb-2'>\n            <label class='mb-1'>\n              {{t 'common.Contact'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <SearchSelector\n              @onSelect={{this.setToContact}}\n              @onLoad={{this.loadContacts}}\n              @noDataMessage={{t 'common.Create a contact'}}\n              @noDataRoute='entity.settings.contacts.contact'\n              @showNoDataRouteWithResults={{true}}\n              @key='toContact'\n              @optionKeys={{array 'name'}}\n              @model={{this.invoiceChangeSet}}\n              @forceValidationVisible={{gt this.saveInvoice.performCount 0}}\n              @disabled={{or this.saveInvoice.isRunning (not this.canEdit)}}\n            />\n            {{#if\n              (and\n                this.invoiceChangeSet.toContact\n                (includes-feature-flags 'canUseSuppliers')\n              )\n            }}\n              <div\n                role='button'\n                {{on 'click' this.goToSupplier}}\n                class='form-text link me-auto'\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.See details'\n                }}&nbsp;\n                <FaIcon @icon='external-link-alt' />\n              </div>\n            {{/if}}\n          </div>\n  \n          <PtlInput\n            @type='date'\n            @label={{t 'common.Issue date'}}\n            @key='issueDate'\n            @model={{this.invoiceChangeSet}}\n            disabled={{or this.saveInvoice.isRunning (not this.canEdit)}}\n            @forceValidationVisible={{gt this.saveInvoice.performCount 0}}\n          />\n  \n          <PtlInput\n            @type='date'\n            @label={{t 'common.Due date'}}\n            @key='dueDate'\n            @model={{this.invoiceChangeSet}}\n            @forceValidationVisible={{gt this.saveInvoice.performCount 0}}\n            disabled={{or this.saveInvoice.isRunning (not this.canEdit)}}\n          />\n        </div>\n  \n        <div class='modal-footer'>\n          <button\n            type='button'\n            class='btn btn-secondary'\n            {{on 'click' this.closeInvoiceEditModal}}\n            disabled={{this.saveInvoice.isRunning}}\n          >\n            {{t 'common.Close'}}\n          </button>\n  \n          {{#if this.canEdit}}\n            <button\n              type='button'\n              class='btn btn-primary'\n              disabled={{this.saveInvoice.isRunning}}\n              {{on 'click' (perform this.saveInvoice)}}\n            >\n              {{#if this.saveInvoice.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.currentInvoiceItem}}\n    <InvoiceItemEditorModal\n      @headerText={{this.invoiceItemEditorHeader}}\n      @item={{this.currentInvoiceItem}}\n      @onClose={{this.closeInvoiceItemEditor}}\n      @onSave={{this.saveInvoiceItem}}\n      @onDelete={{this.deleteInvoiceItem}}\n      @editDisabled={{not this.canEdit}}\n      @allocationDisabled={{not this.canAllocate}}\n    />\n  {{/if}}\n  \n  {{#if this.downloadInvoice}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.downloadInvoice) null}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.operations.outgoing.invoices.invoice.reportExportOptionDescription'\n          }}\n        </p>\n        {{#each this.exportOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <Input\n              @type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              @checked={{option.value}}\n              id={{index}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.downloadInvoice) null)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' this.downloadInvoice}}\n          disabled={{this.isDownloadingInvoice}}\n        >\n          {{#if this.isDownloadingInvoice}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showConfigureBreakdownOptionsModal}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.showConfigureBreakdownOptionsModal) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t\n            'entity.builda-price.operations.outgoing.invoices.invoice.Breakdown options'\n          }}\n        </h5>\n      </div>\n  \n      <div\n        class='modal-body p-0 d-flex align-items-stretch justify-content-center invoice__break-down-options-modal-body'\n      >\n        {{#if this.initInvoiceBreakdown.isRunning}}\n          <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n        {{else}}\n          <div class='overflow-auto p-3 border-right' style='min-width: 380px;'>\n            {{#if\n              (and\n                this.canManageOrApproveInvoice\n                this.hasCompanyBreakdownOptionChanges\n              )\n            }}\n              <button\n                type='button'\n                class='btn btn-link text-decoration-underline ps-0 mb-2'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  this.saveBreakdownOptionsAsCompanyDefault.isRunning\n                }}\n                {{on 'click' (perform this.saveBreakdownOptionsAsCompanyDefault)}}\n              >\n                {{#if this.saveBreakdownOptionsAsCompanyDefault.isRunning}}\n                  {{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.Save as company default?'\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n            <PtlInput\n              @type='textarea'\n              @label={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Additional notes'\n              }}\n              @key='breakdownNotes'\n              @model={{this.invoiceBreakdownOptions}}\n              {{on 'blur' (perform this.getInvoiceBreakdownHtml)}}\n              disabled={{or\n                this.saveBreakdownOptions.isRunning\n                (not this.canManageOrApproveInvoice)\n              }}\n            />\n  \n            <PtlInput\n              @containerClass='form-check mb-2'\n              @type='checkbox'\n              @label={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Include billable'\n              }}\n              @key='includeBillable'\n              @model={{this.invoiceBreakdownOptions}}\n              @description={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.includeBillableDescription'\n              }}\n              disabled={{or\n                this.saveBreakdownOptions.isRunning\n                (not this.canManageOrApproveInvoice)\n              }}\n              {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n            />\n            <PtlInput\n              @containerClass='form-check mb-2'\n              @type='checkbox'\n              @label={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Include previously invoiced'\n              }}\n              @key='includeInvoiced'\n              @model={{this.invoiceBreakdownOptions}}\n              @description={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.includeInvoicedDescription'\n              }}\n              disabled={{or\n                this.saveBreakdownOptions.isRunning\n                (not this.canManageOrApproveInvoice)\n              }}\n              {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n            />\n            <label class='mb-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.First group by'\n              }}\n            </label>\n            <div class='d-flex align-items-center gap-3 ms-1'>\n              <PtlInput\n                @type='radio'\n                @key='firstGroupBy'\n                @id='groupByTask'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t 'common.Task'}}\n                @value='TASK'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeFirstGroupBy}}\n              />\n              <PtlInput\n                @type='radio'\n                @key='firstGroupBy'\n                @id='groupByAllocationType'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t 'common.Allocation type'}}\n                @value='ALLOCATION_TYPE'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeFirstGroupBy}}\n              />\n            </div>\n  \n            <label class='mb-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Labour bills'\n              }}\n            </label>\n            <div class='d-flex align-items-center gap-3 ms-1'>\n              <PtlInput\n                @type='radio'\n                @key='labourDetail'\n                @id='labourSection'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Total only'\n                }}\n                @value='TOTAL'\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='labourDetail'\n                @id='labourBill'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t 'common.Bill'}}\n                @value='BILL'\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='labourDetail'\n                @id='labourItem'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Bill item'\n                }}\n                @value='BILL_ITEM'\n                @containerClass='mb-1'\n              />\n            </div>\n            <div class='ms-1'>\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin'\n                }}\n                @key='includeLabourBillsProfitMargins'\n                @model={{this.invoiceBreakdownOptions}}\n                @description={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription'\n                }}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n              />\n            </div>\n  \n            <label class='mb-1'>\n              {{t 'common.Timesheets'}}\n            </label>\n            <div class='ms-1 mb-1'>\n              <GroupingSelector\n                @groups={{this.timesheetGroupingOptions}}\n                @value={{this.invoiceBreakdownOptions.timesheetDetails}}\n                @onChange={{pipe\n                  (fn (mut this.invoiceBreakdownOptions.timesheetDetails))\n                  (perform this.getInvoiceBreakdownHtml)\n                }}\n                as |gs|\n              >\n                {{#each gs.axes as |axis i|}}\n                  <label class='pdf-export-options__grouping-label'>\n                    {{#if (eq i 0)}}\n                      {{t 'shared.report-builder.First break down by'}}…\n                    {{else}}\n                      …{{t 'shared.report-builder.and then by'}}…\n                    {{/if}}\n                  </label>\n  \n                  <select\n                    class='pdf-export-options__grouping-control'\n                    {{on 'change' (action axis.update value='target.value')}}\n                    disabled={{or\n                      this.saveBreakdownOptions.isRunning\n                      (not this.canManageOrApproveInvoice)\n                    }}\n                  >\n                    {{#each axis.options as |opt|}}\n                      <option value={{opt.key}} selected={{opt.isSelected}}>\n                        {{opt.name}}\n                      </option>\n                    {{/each}}\n                  </select>\n                  <br />\n                {{/each}}\n              </GroupingSelector>\n            </div>\n  \n            {{#if\n              this.sessionData.entity.effectiveProfitMargin.additionalLabourMargin.value\n            }}\n              <div class='ms-1'>\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.Additional margin'\n                  }}\n                  @key='includeTimesheetsProfitMargins'\n                  @model={{this.invoiceBreakdownOptions}}\n                  @description={{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.includeTimesheetsProfitMarginsDescription'\n                  }}\n                  disabled={{or\n                    this.saveBreakdownOptions.isRunning\n                    (not this.canManageOrApproveInvoice)\n                  }}\n                  {{on\n                    'change'\n                    (fn\n                      this.onToggleTimesheetMargin\n                      'includeTimesheetsProfitMargins'\n                      'includeTimesheetsCostMargins'\n                    )\n                  }}\n                />\n              </div>\n            {{/if}}\n  \n            <div class='ms-1'>\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin'\n                }}\n                @key='includeTimesheetsCostMargins'\n                @model={{this.invoiceBreakdownOptions}}\n                @description={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.includeTimesheetsCostMarginsDescription'\n                }}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on\n                  'change'\n                  (fn\n                    this.onToggleTimesheetMargin\n                    'includeTimesheetsCostMargins'\n                    'includeTimesheetsProfitMargins'\n                  )\n                }}\n              />\n            </div>\n  \n            <label class='mb-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Material bills'\n              }}\n            </label>\n            <div class='d-flex align-items-center gap-3 ms-1'>\n              <PtlInput\n                @type='radio'\n                @key='materialsDetail'\n                @id='materialsSection'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Total only'\n                }}\n                @value='TOTAL'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='materialsDetail'\n                @id='materialsBill'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t 'common.Bill'}}\n                @value='BILL'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='materialsDetail'\n                @id='materialsItem'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Bill item'\n                }}\n                @value='BILL_ITEM'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @containerClass='mb-1'\n              />\n            </div>\n  \n            <div class='ms-1'>\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin'\n                }}\n                @key='includeMaterialBillsProfitMargins'\n                @model={{this.invoiceBreakdownOptions}}\n                @description={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription'\n                }}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n              />\n            </div>\n  \n            <label class='mb-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Subcontractor bills'\n              }}\n            </label>\n            <div class='d-flex align-items-center gap-3 ms-1'>\n              <PtlInput\n                @type='radio'\n                @key='subcontractorsDetail'\n                @id='subcontractorsSection'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Total only'\n                }}\n                @value='TOTAL'\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='subcontractorsDetail'\n                @id='subcontractorsBill'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t 'common.Bill'}}\n                @value='BILL'\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='subcontractorsDetail'\n                @id='subcontractorsItem'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Bill item'\n                }}\n                @value='BILL_ITEM'\n                @containerClass='mb-1'\n              />\n            </div>\n  \n            <div class='ms-1'>\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin'\n                }}\n                @key='includeSubcontractorBillsProfitMargins'\n                @model={{this.invoiceBreakdownOptions}}\n                @description={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription'\n                }}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n              />\n            </div>\n  \n          </div>\n  \n          <div class='d-flex flex-column p-3'>\n            <div class='mb-2 d-flex align-items-center'>\n              <h5 class='mb-0'>{{t 'common.Preview'}}</h5>\n              {{#if this.invoiceItems.length}}\n                <span class='badge bg-success ms-2'>{{t 'common.LIVE'}}</span>\n                <span class='text-muted small ms-2'>\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.layoutMayDifferSlightlyFromPDFVersion'\n                  }}\n                </span>\n              {{/if}}\n            </div>\n  \n            {{#if this.invoiceItems.length}}\n              <iframe\n                title='Live preview'\n                srcdoc={{this.getInvoiceBreakdownHtml.lastSuccessful.value}}\n                class='flex-grow-1 p-3 rounded border invoice__break-down-options-modal-document-width'\n              ></iframe>\n            {{else}}\n              <div\n                class='flex-grow-1 d-flex align-items-center justify-content-center'\n              >\n                <p class='text-muted'>\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.noInvoiceItemInBreakdown'\n                  }}\n                </p>\n              </div>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.showConfigureBreakdownOptionsModal) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        {{#if this.canManageOrApproveInvoice}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            disabled={{or\n              this.saveBreakdownOptions.isRunning\n              this.saveBreakdownOptionsAsCompanyDefault.isRunning\n            }}\n            {{on 'click' (perform this.saveBreakdownOptions)}}\n          >\n            {{#if this.saveBreakdownOptions.isRunning}}\n              <span class='spinner-border spinner-border-sm'></span>\n              &nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Save options'\n              }}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"2vCrElAB\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Invoice\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.outgoing.invoices.index\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"typeLabel\\\"]]],[1,\\\" \\\"],[1,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"invoiceNumber\\\"]]],[1,\\\"\\\\n        \\\"],[10,1],[15,0,[29,[\\\"badge ms-1 fs-7\\\\n            \\\",[52,[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],\\\"bg-success\\\"],\\\"\\\\n            \\\",[52,[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n            \\\",[52,[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n            \\\",[52,[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"APPROVED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n            \\\"]]],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"invoice\\\",\\\"statusLabel\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,12],[[24,0,\\\"btn btn-link p-0 m-1\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[\\\"entity.builda-price.reports.company.notes\\\",[28,[37,13],null,[[\\\"invoiceId\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]]]]],[[\\\"default\\\"],[[[[1,\\\"View timesheet notes\\\\n        \\\"],[8,[39,14],[[24,0,\\\"ms-1\\\"]],[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline m-1\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"showConfigureBreakdownOptionsModalDialog\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Breakdown options\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]],1],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"relatedDocuments\\\"]],\\\"0.action\\\"],null],[28,[37,18],[[30,0,[\\\"relatedDocuments\\\"]],\\\"0.id\\\"],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,18],[[30,0,[\\\"relatedDocuments\\\"]],\\\"0.label\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]],1],null],[[[1,\\\"        \\\"],[8,[39,20],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]]],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Related documents\\\"],null]],[1,\\\"  \\\\n            \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"relatedDocuments\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,2,[\\\"action\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,2,[\\\"label\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceItems\\\",\\\"length\\\"]],[[[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[41,[28,[37,23],[[28,[37,24],[[28,[37,11],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"xero\\\"],null],[30,0,[\\\"invoice\\\",\\\"xeroInvoiceId\\\"]]],null],[28,[37,24],[[28,[37,11],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"quickbooks\\\"],null],[30,0,[\\\"invoice\\\",\\\"quickbooksInvoiceId\\\"]]],null]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"viewInAccountingPackage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"viewInAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"viewInAccountingPackage\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Sending\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.viewInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n                \\\"],[8,[39,14],[[24,0,\\\"ms-1\\\"]],[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\"]],[28,[37,25],[[30,0,[\\\"invoiceActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isActionsRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,24],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\"]],[30,0,[\\\"invoiceActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"m-1 d-flex\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary rounded-0 rounded-start text-white\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]],[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"syncToAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isActionsRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,20],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[28,[37,23],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary rounded-0 rounded-end text-white\\\"],[15,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"invoiceActions\\\",\\\"secondaryActions\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,4,[\\\"action\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,4,[\\\"action\\\"]],[30,4,[\\\"targetStatus\\\"]],[30,4,[\\\"syncToAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"action\\\",\\\"isRunning\\\"]],[[[1,\\\"                      \\\"],[1,[28,[35,4],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]],null]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseFileStorage\\\"]],[[[1,\\\"        \\\"],[8,[39,27],null,[[\\\"@buttonClass\\\",\\\"@attachments\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@onDownloadAttachment\\\",\\\"@onDeleteAttachment\\\",\\\"@isDragAndDropVisible\\\"],[\\\"btn btn-secondary text-white m-1\\\",[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"myAttachments\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"attachmentsUploadComplete\\\"]],[30,0,[\\\"downloadAttachment\\\"]],[30,0,[\\\"deleteAttachment\\\"]],[30,0,[\\\"canManageFileStorage\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,5,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDownloadingInvoice\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"setDownloadInvoice\\\"]],\\\"pdf\\\"],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloadingInvoice\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDownloadingInvoice\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"setDownloadInvoice\\\"]],\\\"csv\\\"],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloadingInvoice\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDownloadingInvoice\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"setDownloadInvoice\\\"]],\\\"excel\\\"],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloadingInvoice\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as Excel\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[5]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,29],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex flex-column border rounded mb-4\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pt-3 px-3 flex-grow-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 p-0\\\"],[12],[1,[28,[35,4],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"ms-auto btn btn-sm btn-primary\\\\n            \\\",[52,[30,0,[\\\"invoiceChangeSet\\\",\\\"isInvalid\\\"]],\\\"invoice__edit-button--warning\\\"]]]],[16,1,[30,0,[\\\"invoiceEditButtonId\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isEditingInvoice\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Edit\\\"],null]],[1,\\\" \\\\n          \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"edit\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"row m-0\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col flex-column d-flex p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Invoice number\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"invoice\\\",\\\"invoiceNumber\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col flex-column d-flex p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Contact\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,34],[\\\"canUseSuppliers\\\"],null],[[[41,[30,0,[\\\"invoice\\\",\\\"toContact\\\",\\\"name\\\"]],[[[1,\\\"                \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"btn btn-link p-0\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"goToSupplier\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"invoice\\\",\\\"toContact\\\",\\\"name\\\"]]],[1,\\\" \\\\n                  \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                —\\\\n\\\"]],[]]]],[]],[[[1,\\\"              \\\"],[1,[30,0,[\\\"invoice\\\",\\\"toContact\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col flex-column d-flex p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Issue date\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,35],[[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col flex-column d-flex p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Due date\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoice\\\",\\\"dueDate\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,35],[[30,0,[\\\"invoice\\\",\\\"dueDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"mb-2 d-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEdit\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,25],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"deleteInvoiceItems\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Delete items\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAddItems\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteInvoiceItems\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"addInvoiceItem\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"invoice__invoice-items-table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,36],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@hidePagination\\\",\\\"@class\\\",\\\"@validationMessage\\\"],[[30,0,[\\\"itemTableHeader\\\"]],[30,0,[\\\"itemTableData\\\"]],[28,[37,4],[\\\"common.No items\\\"],null],[30,0,[\\\"model\\\",\\\"invoiceItems\\\",\\\"isRunning\\\"]],true,[29,[\\\"table-bordered\\\\n          \\\",[52,[30,0,[\\\"invoiceTotalError\\\"]],\\\"invoice__invoice-items-table--invalid\\\"]]],[30,0,[\\\"invoiceTotalError\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"invoice__footer mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageOrApproveInvoice\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-between mt-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],[28,[37,37],[[30,0,[\\\"invoice\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[28,[37,25],[[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isCreatingCreditNote\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Create credit note\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,37],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isDeletingInvoice\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Delete invoice\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]],null]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"totalFooter\\\"]],[[[41,[30,0,[\\\"totalFooter\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"my-2 text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Subtotal\\\"],null]],[1,\\\":\\\\n                  \\\"],[1,[30,0,[\\\"totalFooter\\\",\\\"subtotal\\\"]]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Tax\\\"],null]],[1,\\\":\\\\n                  \\\"],[1,[30,0,[\\\"totalFooter\\\",\\\"tax\\\"]]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[1,\\\":\\\\n                  \\\"],[1,[30,0,[\\\"totalFooter\\\",\\\"total\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeletingInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isDeletingInvoice\\\"]]],null],false],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,0,\\\"modal-content\\\"],[4,[38,39],[[28,[37,17],[[30,0,[\\\"validateInvoiceSafeToDelete\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"validateInvoiceSafeToDelete\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,29],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validateInvoiceSafeToDelete\\\",\\\"last\\\",\\\"value\\\"]]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"alert alert-warning pb-0 pt-0\\\"],[12],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,40],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoiceCalculationDependencyWarning\\\"],null]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoicePrompt\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"onDeleteInvoice\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isDeletingInvoice\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isCreatingCreditNote\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isCreatingCreditNote\\\"]]],null],false],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.createCreditNoteConfirmMessage\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createCreditNote\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isCreatingCreditNote\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createCreditNote\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"createCreditNote\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createCreditNote\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Creating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRevertCompletedToDraftInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isRevertCompletedToDraftInvoice\\\"]]],null],false],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.revertDraftInvoicePrompt\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"changeStatus\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isRevertCompletedToDraftInvoice\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"changeStatus\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"changeStatus\\\"]],\\\"DRAFT\\\",false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"changeStatus\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Reverting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Revert\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditingInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[30,0,[\\\"closeInvoiceEditModal\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Invoice number\\\"],null],\\\"invoiceNumber\\\",true,[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,19],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Contact\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,44],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataRoute\\\",\\\"@showNoDataRouteWithResults\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[[30,0,[\\\"setToContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,4],[\\\"common.Create a contact\\\"],null],\\\"entity.settings.contacts.contact\\\",true,\\\"toContact\\\",[28,[37,45],[\\\"name\\\"],null],[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,19],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null],[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[30,0,[\\\"invoiceChangeSet\\\",\\\"toContact\\\"]],[28,[37,34],[\\\"canUseSuppliers\\\"],null]],null],[[[1,\\\"            \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"form-text link me-auto\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"goToSupplier\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.See details\\\"],null]],[1,\\\" \\\\n              \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,4],[\\\"common.Issue date\\\"],null],\\\"issueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,19],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,4],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,19],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"closeInvoiceEditModal\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Close\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canEdit\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveInvoice\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"currentInvoiceItem\\\"]],[[[1,\\\"  \\\"],[8,[39,46],null,[[\\\"@headerText\\\",\\\"@item\\\",\\\"@onClose\\\",\\\"@onSave\\\",\\\"@onDelete\\\",\\\"@editDisabled\\\",\\\"@allocationDisabled\\\"],[[30,0,[\\\"invoiceItemEditorHeader\\\"]],[30,0,[\\\"currentInvoiceItem\\\"]],[30,0,[\\\"closeInvoiceItemEditor\\\"]],[30,0,[\\\"saveInvoiceItem\\\"]],[30,0,[\\\"deleteInvoiceItem\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null],[28,[37,25],[[30,0,[\\\"canAllocate\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"downloadInvoice\\\"]]],null],null],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.reportExportOptionDescription\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"exportOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,47],[[24,0,\\\"form-check-input\\\"],[16,3,[30,6,[\\\"name\\\"]]],[16,1,[30,7]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,6,[\\\"value\\\"]]]],null],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,7]],[12],[1,[30,6,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[6,7]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"downloadInvoice\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDownloadingInvoice\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"downloadInvoice\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloadingInvoice\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showConfigureBreakdownOptionsModal\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"showConfigureBreakdownOptionsModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Breakdown options\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body p-0 d-flex align-items-stretch justify-content-center invoice__break-down-options-modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"initInvoiceBreakdown\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,29],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"overflow-auto p-3 border-right\\\"],[14,5,\\\"min-width: 380px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[30,0,[\\\"canManageOrApproveInvoice\\\"]],[30,0,[\\\"hasCompanyBreakdownOptionChanges\\\"]]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline ps-0 mb-2\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Save as company default?\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"blur\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Additional notes\\\"],null],\\\"breakdownNotes\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"form-check mb-2\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Include billable\\\"],null],\\\"includeBillable\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeBillableDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"form-check mb-2\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Include previously invoiced\\\"],null],\\\"includeInvoiced\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeInvoicedDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.First group by\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeFirstGroupBy\\\"]]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"firstGroupBy\\\",\\\"groupByTask\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Task\\\"],null],\\\"TASK\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeFirstGroupBy\\\"]]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"firstGroupBy\\\",\\\"groupByAllocationType\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Allocation type\\\"],null],\\\"ALLOCATION_TYPE\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Labour bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin\\\"],null],\\\"includeLabourBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Timesheets\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ms-1 mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,48],null,[[\\\"@groups\\\",\\\"@value\\\",\\\"@onChange\\\"],[[30,0,[\\\"timesheetGroupingOptions\\\"]],[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]],[28,[37,49],[[28,[37,28],[[28,[37,31],[[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]]],null]],null],[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,8,[\\\"axes\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"label\\\"],[14,0,\\\"pdf-export-options__grouping-label\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,10],0],null],[[[1,\\\"                    \\\"],[1,[28,[35,4],[\\\"shared.report-builder.First break down by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                    …\\\"],[1,[28,[35,4],[\\\"shared.report-builder.and then by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[11,\\\"select\\\"],[24,0,\\\"pdf-export-options__grouping-control\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,51],[[30,0],[30,9,[\\\"update\\\"]]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,9,[\\\"options\\\"]]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[30,11,[\\\"key\\\"]]],[15,\\\"selected\\\",[30,11,[\\\"isSelected\\\"]]],[12],[1,\\\"\\\\n                      \\\"],[1,[30,11,[\\\"name\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[9,10]],null],[1,\\\"            \\\"]],[8]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"additionalLabourMargin\\\",\\\"value\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,28],[[30,0,[\\\"onToggleTimesheetMargin\\\"]],\\\"includeTimesheetsProfitMargins\\\",\\\"includeTimesheetsCostMargins\\\"],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Additional margin\\\"],null],\\\"includeTimesheetsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeTimesheetsProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,28],[[30,0,[\\\"onToggleTimesheetMargin\\\"]],\\\"includeTimesheetsCostMargins\\\",\\\"includeTimesheetsProfitMargins\\\"],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin\\\"],null],\\\"includeTimesheetsCostMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeTimesheetsCostMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Material bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin\\\"],null],\\\"includeMaterialBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Subcontractor bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin\\\"],null],\\\"includeSubcontractorBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-column p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,4],[\\\"common.Preview\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceItems\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"badge bg-success ms-2\\\"],[12],[1,[28,[35,4],[\\\"common.LIVE\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"text-muted small ms-2\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.layoutMayDifferSlightlyFromPDFVersion\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invoiceItems\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[10,\\\"iframe\\\"],[14,\\\"title\\\",\\\"Live preview\\\"],[15,\\\"srcdoc\\\",[30,0,[\\\"getInvoiceBreakdownHtml\\\",\\\"lastSuccessful\\\",\\\"value\\\"]]],[14,0,\\\"flex-grow-1 p-3 rounded border invoice__break-down-options-modal-document-width\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-grow-1 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n              \\\"],[10,2],[14,0,\\\"text-muted\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.noInvoiceItemInBreakdown\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"showConfigureBreakdownOptionsModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageOrApproveInvoice\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveBreakdownOptions\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Save options\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"document\\\",\\\"po\\\",\\\"action\\\",\\\"po\\\",\\\"option\\\",\\\"index\\\",\\\"gs\\\",\\\"axis\\\",\\\"i\\\",\\\"opt\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"span\\\",\\\"if\\\",\\\"eq\\\",\\\"link-to\\\",\\\"hash\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"get\\\",\\\"gt\\\",\\\"pop-over\\\",\\\"each\\\",\\\"-track-array\\\",\\\"or\\\",\\\"and\\\",\\\"not\\\",\\\"div\\\",\\\"attachment-dropdown-list\\\",\\\"fn\\\",\\\"loading-icon\\\",\\\"h4\\\",\\\"mut\\\",\\\"h5\\\",\\\"p\\\",\\\"includes-feature-flags\\\",\\\"moment-format\\\",\\\"pagination-table\\\",\\\"not-eq\\\",\\\"modal-dialog\\\",\\\"did-insert\\\",\\\"html-safe\\\",\\\"ptl-input\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"invoice-item-editor-modal\\\",\\\"input\\\",\\\"grouping-selector\\\",\\\"pipe\\\",\\\"select\\\",\\\"action\\\",\\\"option\\\",\\\"br\\\",\\\"iframe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/invoices/invoice.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/payroll-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"3GK8+Z7x\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/payroll-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/payroll\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Payroll')}}\n    />\n  {{/unless}}\n  <article class='m-4 payroll-page-wrapper'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <div class='float-end'>\n  \n          <PopOver class='float-end' @direction='bottom-left' as |po|>\n            <button type='button' class='btn btn-secondary text-white'>\n              {{t 'common.Export'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{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            <div class='btn-group m-1' role='group'>\n              <button\n                type='button'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{or\n                  (not this.ganttChartIsVisible)\n                  this.projectIsSetting\n                }}\n                {{on 'click' this.downloadPDF}}\n              >\n                <FaIcon @icon='download' />\n              </button>\n            </div>\n  \n            <div class='btn-group m-1 position-relative' role='group'>\n              <PopOver @direction='bottom-right' {{on 'click' this.noop}} as |po|>\n                <button\n                  type='button'\n                  class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                  disabled={{this.projectIsSetting}}\n                >\n                  <FaIcon @icon='cog' />\n                </button>\n                <po.Content>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttCriticalPathsEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttCriticalPathsEnabled}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Critical paths'}}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttDependenciesEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttDependenciesEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Draw dependencies'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' (fn this.toggleSetting 'ganttFillTicksEnabled')}}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttFillTicksEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Stretch tasks to fill ticks'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttNonWorkingTimeEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttNonWorkingTimeEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Highlight non-working time'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttColumnLinesEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttColumnLinesEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Show column lines'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' (fn this.toggleSetting 'ganttRollupsEnabled')}}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttRollupsEnabled}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Show rollups'}}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttProgressLineEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttProgressLineEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Show progress lines'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttParentAreaEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttParentAreaEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Show parent area'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' (fn this.toggleSetting 'ganttLabelsEnabled')}}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttLabelsEnabled}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Task labels'}}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttSubGridConfigsEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttSubGridConfigsEnabled}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Hide schedule'}}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' (fn this.toggleSetting 'ganttTableCollapsed')}}\n                    data-test-hide-table-setting\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttTableCollapsed}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Hide table'}}\n                  </label>\n                </po.Content>\n              </PopOver>\n            </div>\n          </div>\n  \n          <span class='m-1'>\n            <input\n              class='form-control'\n              placeholder={{t 'common.Search'}}\n              aria-label='Search'\n              value={{this.searchString}}\n              {{on 'input' this.onSearchChange}}\n            />\n          </span>\n  \n          {{#if this.canUseImportAndManage}}\n            <span class='m-1'>\n              <button\n                type='button'\n                class='btn btn-primary'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' (fn (mut this.taskImportModalVisible) true)}}\n              >\n                <FaIcon @icon='tasks' />&nbsp;{{t\n                  'entity.builda-price.scheduling.timeline.Import tasks'\n                }}\n              </button>\n            </span>\n          {{/if}}\n  \n          <span class='m-1'>\n            {{#if this.onSyncGantt.isRunning}}\n              <button type='button' class='btn btn-primary' disabled={{true}}>\n                <span class='spinner-border spinner-border-sm'></span>&nbsp;{{t\n                  'common.Saving'\n                }}&hellip;\n              </button>\n            {{else}}\n              <button\n                type='button'\n                disabled={{or\n                  (not this.undoCount)\n                  (or (not this.ganttChartIsVisible) this.projectIsSetting)\n                }}\n                class='btn btn-primary text-nowrap'\n                {{on 'click' (perform this.onSyncGantt)}}\n              >\n                <FaIcon @icon='save' />&nbsp;{{t 'common.Save'}}\n              </button>\n            {{/if}}\n          </span>\n        {{/if}}\n      </div>\n  \n      {{#if this.ganttChartIsVisible}}\n        <div id='gantt-chart-container' class='flex-fill'></div>\n      {{else}}\n        <div class='p-3 d-flex flex-column align-items-center'>\n          <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n          <p class='fs-4 mt-0 mb-3'>\n            <b>\n              {{t\n                'entity.builda-price.scheduling.timeline.Choose a project to view its timeline'\n              }}\n            </b>\n          </p>\n        </div>\n      {{/if}}\n    {{else}}\n      <div class='p-3 d-flex flex-column align-items-center'>\n        <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n        <p class='fs-4 mt-0 mb-3'>\n          <b>\n            {{t\n              'entity.builda-price.scheduling.timeline.There are no projects yet'\n            }}\n          </b>\n        </p>\n        {{#if (includes-feature-flags 'canManageProjects')}}\n          <LinkTo @route='entity.builda-price.projects' class='btn btn-primary'>\n            {{t 'entity.builda-price.scheduling.timeline.Create a project'}}\n          </LinkTo>\n        {{/if}}\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.taskImportModalVisible}}\n    <TimelineTaskImportModal\n      @projects={{this.manageableProjects}}\n      @onClose={{this.onTaskImportModalClose}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"WjhouiId\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"d-flex flex-column h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"px-4 pt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h1\\\"],[14,0,\\\"ms-0 me-3 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@options\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@selected\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"projects\\\",\\\"last\\\",\\\"value\\\"]],true,\\\"name\\\",[30,0,[\\\"selectedProjects\\\"]],[28,[37,6],[\\\"common.Select a project\\\"],null],[30,0,[\\\"onSetProjects\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"projects\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"d-flex align-items-center mx-4 mb-3 flex-wrap\\\"],[4,[38,9],[[28,[37,10],[[30,0,[\\\"initializeGanttChart\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ganttChartIsVisible\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center flex-lg-grow-1 flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"m-1 d-flex\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"position-relative\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"undoCount\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"position-absolute gantt-chart__badge top-0 start-100 translate-middle badge rounded-pill bg-danger\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"undoCount\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Undo\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center rounded-0 rounded-start\\\"],[16,\\\"disabled\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"undoCount\\\"]]],null],[30,0,[\\\"projectIsSetting\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onUndo\\\"]]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"undo\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"position-relative\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"redoCount\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"position-absolute gantt-chart__badge top-0 start-100 translate-middle badge rounded-pill bg-danger\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"redoCount\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Redo\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center rounded-0 rounded-end\\\"],[24,5,\\\"margin-left: -1px;\\\"],[16,\\\"disabled\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"redoCount\\\"]]],null],[30,0,[\\\"projectIsSetting\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onRedo\\\"]]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"redo\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"btn-group m-1\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Expand all\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onCollapseAllClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"angle-double-down\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Collapse all\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onExpandAllClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"angle-double-up\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"btn-group m-1\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Zoom in\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onZoomInClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"search-plus\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Zoom out\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onZoomOutClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"search-minus\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Zoom to fit\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onZoomToFitClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"compress-arrows-alt\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"btn-group m-1\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Previous time span\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onShiftPreviousClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"caret-left\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Go to today\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onGoToTodayClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"calendar-day\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Next time span\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onShiftNextClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"caret-right\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"btn-group m-1\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"ganttChartIsVisible\\\"]]],null],[30,0,[\\\"projectIsSetting\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"downloadPDF\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"btn-group m-1 position-relative\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,17],[[4,[38,15],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[15,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"cog\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[30,2,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttCriticalPathsEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttCriticalPathsEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Critical paths\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttDependenciesEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttDependenciesEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Draw dependencies\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttFillTicksEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttFillTicksEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Stretch tasks to fill ticks\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttNonWorkingTimeEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttNonWorkingTimeEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Highlight non-working time\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttColumnLinesEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttColumnLinesEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Show column lines\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttRollupsEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttRollupsEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Show rollups\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttProgressLineEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttProgressLineEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Show progress lines\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttParentAreaEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttParentAreaEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Show parent area\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttLabelsEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttLabelsEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Task labels\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttSubGridConfigsEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttSubGridConfigsEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Hide schedule\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-hide-table-setting\\\",\\\"\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttTableCollapsed\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttTableCollapsed\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Hide table\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[2]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"aria-label\\\",\\\"Search\\\"],[16,2,[30,0,[\\\"searchString\\\"]]],[4,[38,15],[\\\"input\\\",[30,0,[\\\"onSearchChange\\\"]]],null],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canUseImportAndManage\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[28,[37,21],[[30,0,[\\\"taskImportModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"tasks\\\"]],null],[1,\\\" \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Import tasks\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onSyncGantt\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\" \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"undoCount\\\"]]],null],[28,[37,13],[[28,[37,14],[[30,0,[\\\"ganttChartIsVisible\\\"]]],null],[30,0,[\\\"projectIsSetting\\\"]]],null]],null]],[24,0,\\\"btn btn-primary text-nowrap\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"onSyncGantt\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"save\\\"]],null],[1,\\\" \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"ganttChartIsVisible\\\"]],[[[1,\\\"      \\\"],[10,0],[14,1,\\\"gantt-chart-container\\\"],[14,0,\\\"flex-fill\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"p-3 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Choose a project to view its timeline\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"p-3 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.There are no projects yet\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[\\\"canManageProjects\\\"],null],[[[1,\\\"        \\\"],[8,[39,25],[[24,0,\\\"btn btn-primary\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Create a project\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"taskImportModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@projects\\\",\\\"@onClose\\\"],[[30,0,[\\\"manageableProjects\\\"]],[30,0,[\\\"onTaskImportModalClose\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"project\\\",\\\"po\\\"],false,[\\\"article\\\",\\\"div\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h1\\\",\\\"t\\\",\\\"power-select-multiple\\\",\\\"loading-icon\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"span\\\",\\\"button\\\",\\\"or\\\",\\\"not\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"pop-over\\\",\\\"label\\\",\\\"fn\\\",\\\"input\\\",\\\"mut\\\",\\\"p\\\",\\\"b\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"timeline-task-import-modal\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/scheduling/timeline.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/disabled\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='m-4 text-center'>\n    <h1 class='h1'>Your company has been disabled.</h1>\n    <p class='p'>This is usually due to a subscription cancellation or a\n      non-payment.</p>\n  \n    {{#if\n      (and\n        (includes-feature-flags 'userIsEntityAdmin') this.hasChargebeeSubscription\n      )\n    }}\n      <p class='p'>\n        <button\n          class='button'\n          type='button'\n          {{on 'click' this.openChargebee}}\n        >Manage your subscription</button>\n      </p>\n    {{else}}\n      <p class='p'>\n        If you believe this to be in error, please\n        <a\n          class='link'\n          href='https://buildaprice.zendesk.com/hc/en-us/requests/new'\n          target='_blank'\n          rel='noopener noreferrer'\n        >click here</a>\n        to contact support.\n      </p>\n      <button class='button' type='button' {{on 'click' this.logout}}>Sign out</button>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"xLSsrIsY\",\n    \"block\": \"[[[10,0],[14,0,\\\"m-4 text-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Your company has been disabled.\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,\\\"This is usually due to a subscription cancellation or a\\\\n    non-payment.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,4],[[28,[37,5],[\\\"userIsEntityAdmin\\\"],null],[30,0,[\\\"hasChargebeeSubscription\\\"]]],null],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"openChargebee\\\"]]],null],[12],[1,\\\"Manage your subscription\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,\\\"\\\\n      If you believe this to be in error, please\\\\n      \\\"],[10,3],[14,0,\\\"link\\\"],[14,6,\\\"https://buildaprice.zendesk.com/hc/en-us/requests/new\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"click here\\\"],[13],[1,\\\"\\\\n      to contact support.\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"logout\\\"]]],null],[12],[1,\\\"Sign out\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"div\\\",\\\"h1\\\",\\\"p\\\",\\\"if\\\",\\\"and\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"a\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/disabled.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"LKh/yDVu\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <EmberWormhole @to='title-bar__content'>\n  \n      {{#if (includes-feature-flags 'isAPBCustomer')}}\n        <a\n          href='https://www.buildaprice.co.nz'\n          target='_blank'\n          rel='noopener noreferrer'\n          class='btn btn-light btn-sm'\n        >\n          <img width='20' src={{this.buildaPriceLogoSrc}} />&nbsp;&nbsp;Powered by\n          Builda Price\n        </a>\n      {{/if}}\n  \n      <div\n        class='flex-grow-1 d-flex align-items-center justify-content-end text-light'\n      >\n        {{! month picker }}\n        <div class='d-flex align-items-center me-3'>\n          <MonthPicker @period={{this.sessionData.period}} @dark={{true}} />\n        </div>\n  \n        {{! support button }}\n        <a\n          href='https://support.otbs.co.nz/hc/en-us/categories/202045998-Financial-Portal'\n          target='_blank'\n          class='d-flex align-items-center link-light title-bar__icon'\n          rel='noopener noreferrer'\n        >\n          <FaIcon @icon='question-circle' />\n        </a>\n      </div>\n    </EmberWormhole>\n  \n    <div class='page__container'>\n      <ModuleNavigation::Financials />\n  \n      <main class='page__container-content'>\n        {{outlet}}\n      </main>\n    </div>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-avatar-content'\n      @send={{component\n        'mobile-title-bar/avatar/avatar-link'\n        label='Support'\n        link='https://support.otbs.co.nz/hc/en-us/categories/202045998-Financial-Portal'\n      }}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-right-content'\n      @send={{component\n        'month-picker'\n        period=this.sessionData.period\n        compact=true\n      }}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'module-navigation/financials'}}\n    />\n    <main class='page__container-content'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"2evM6Xty\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@to\\\"],[\\\"title-bar__content\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,3],[\\\"isAPBCustomer\\\"],null],[[[1,\\\"      \\\"],[10,3],[14,6,\\\"https://www.buildaprice.co.nz\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,0,\\\"btn btn-light btn-sm\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"img\\\"],[14,\\\"width\\\",\\\"20\\\"],[15,\\\"src\\\",[30,0,[\\\"buildaPriceLogoSrc\\\"]]],[12],[13],[1,\\\"  Powered by\\\\n        Builda Price\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1 d-flex align-items-center justify-content-end text-light\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center me-3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@period\\\",\\\"@dark\\\"],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],true]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[10,3],[14,6,\\\"https://support.otbs.co.nz/hc/en-us/categories/202045998-Financial-Portal\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"d-flex align-items-center link-light title-bar__icon\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@icon\\\"],[\\\"question-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,13],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-avatar-content\\\",[50,\\\"mobile-title-bar/avatar/avatar-link\\\",0,null,[[\\\"label\\\",\\\"link\\\"],[\\\"Support\\\",\\\"https://support.otbs.co.nz/hc/en-us/categories/202045998-Financial-Portal\\\"]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,13],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-right-content\\\",[50,\\\"month-picker\\\",0,null,[[\\\"period\\\",\\\"compact\\\"],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],true]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,13],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,13],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/financials\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"ember-wormhole\\\",\\\"includes-feature-flags\\\",\\\"a\\\",\\\"img\\\",\\\"div\\\",\\\"month-picker\\\",\\\"fa-icon\\\",\\\"module-navigation/financials\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/chart-of-accounts-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"Ts96xiYg\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/chart-of-accounts-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/chart-of-accounts\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Chart of accounts'}}\n    />\n  {{/unless}}\n  {{#unless this.isLoading}}\n    <StickyTop>\n      <div class='width--medium'>\n        <LoadingButton\n          @action={{action 'save'}}\n          @class='button float-end coa-editor__save-button'\n          @isLoading={{this.isSaving}}\n        >Save</LoadingButton>\n      </div>\n    </StickyTop>\n  {{/unless}}\n  \n  <div class='width--medium m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>Chart of accounts</h1>\n      </header>\n    {{/if}}\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='coa-editor block-module'>\n        <header class='block-module__header'>\n          <h2 class='h2'>Profit &amp; Loss</h2>\n        </header>\n  \n        <CoaEditor\n          @class='profit-and-loss-list'\n          @accounts={{this.model}}\n          @nestedAccounts={{this.nestedAccounts.profit-and-loss}}\n          @deleteAccount={{action 'deleteAccount'}}\n          @createChildAccount={{action 'createChildAccount'}}\n        />\n  \n        <footer class='block-module__footer'>\n          <button\n            class='button button--add float-end'\n            type='button'\n            {{action 'addLine' 'profit-and-loss'}}\n          >Add account</button>\n        </footer>\n      </div>\n  \n      <div class='coa-editor block-module'>\n        <header class='block-module__header'>\n          <h2 class='h2'>Balance Sheet</h2>\n        </header>\n  \n        <CoaEditor\n          @class='balance-sheet-list'\n          @accounts={{this.model}}\n          @nestedAccounts={{this.nestedAccounts.balance-sheet}}\n          @deleteAccount={{action 'deleteAccount'}}\n          @createChildAccount={{action 'createChildAccount'}}\n        />\n  \n        <footer class='block-module__footer'>\n          <button\n            class='button button--add float-end'\n            type='button'\n            {{action 'addLine' 'balance-sheet'}}\n          >Add account</button>\n        </footer>\n      </div>\n  \n      <div class='coa-editor block-module'>\n        <header class='block-module__header'>\n          <h2 class='h2'>Other Data</h2>\n        </header>\n  \n        <CoaEditor\n          @class='other-data-list'\n          @accounts={{this.model}}\n          @nestedAccounts={{this.nestedAccounts.other-data}}\n          @deleteAccount={{action 'deleteAccount'}}\n          @createChildAccount={{action 'createChildAccount'}}\n        />\n  \n        <footer class='block-module__footer'>\n          <button\n            class='button button--add float-end'\n            type='button'\n            {{action 'addLine' 'other-data'}}\n          >Add account</button>\n        </footer>\n      </div>\n  \n      {{#if this.isDeleting}}\n        <ModalDialog\n          @overlayClass='modal'\n          @translucentOverlay={{true}}\n          @containerClass='block-module'\n          @onClose={{action 'cancelDelete'}}\n        >\n          <p>Are you sure you want to delete this account? This action cannot be\n            undone and could break users’ reports.</p>\n          <footer>\n            <button\n              class='float-end button button--delete'\n              type='button'\n              {{action 'doDelete' this.account}}\n            >Delete</button>\n            <button\n              class='float-end button button--plain button--spaced'\n              type='button'\n              {{action 'cancelDelete'}}\n            >{{t 'common.Cancel'}}</button>\n          </footer>\n        </ModalDialog>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"G/0s0QOp\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Chart of accounts\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"  \\\"],[8,[39,4],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"width--medium\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,6],null,[[\\\"@action\\\",\\\"@class\\\",\\\"@isLoading\\\"],[[28,[37,7],[[30,0],\\\"save\\\"],null],\\\"button float-end coa-editor__save-button\\\",[30,0,[\\\"isSaving\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"width--medium m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Chart of accounts\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,11],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"coa-editor block-module\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Profit & Loss\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@class\\\",\\\"@accounts\\\",\\\"@nestedAccounts\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[\\\"profit-and-loss-list\\\",[30,0,[\\\"model\\\"]],[30,0,[\\\"nestedAccounts\\\",\\\"profit-and-loss\\\"]],[28,[37,7],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,7],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add float-end\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"addLine\\\",\\\"profit-and-loss\\\"],null],[12],[1,\\\"Add account\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"coa-editor block-module\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Balance Sheet\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@class\\\",\\\"@accounts\\\",\\\"@nestedAccounts\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[\\\"balance-sheet-list\\\",[30,0,[\\\"model\\\"]],[30,0,[\\\"nestedAccounts\\\",\\\"balance-sheet\\\"]],[28,[37,7],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,7],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add float-end\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"addLine\\\",\\\"balance-sheet\\\"],null],[12],[1,\\\"Add account\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"coa-editor block-module\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Other Data\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@class\\\",\\\"@accounts\\\",\\\"@nestedAccounts\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[\\\"other-data-list\\\",[30,0,[\\\"model\\\"]],[30,0,[\\\"nestedAccounts\\\",\\\"other-data\\\"]],[28,[37,7],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,7],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add float-end\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"addLine\\\",\\\"other-data\\\"],null],[12],[1,\\\"Add account\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeleting\\\"]],[[[1,\\\"      \\\"],[8,[39,16],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,7],[[30,0],\\\"cancelDelete\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"Are you sure you want to delete this account? This action cannot be\\\\n          undone and could break users’ reports.\\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"footer\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"doDelete\\\",[30,0,[\\\"account\\\"]]],null],[12],[1,\\\"Delete\\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"cancelDelete\\\"],null],[12],[1,[28,[35,18],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"sticky-top\\\",\\\"div\\\",\\\"loading-button\\\",\\\"action\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"loading-icon\\\",\\\"h2\\\",\\\"coa-editor\\\",\\\"footer\\\",\\\"button\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/chart-of-accounts.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/dashboard\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Dashboard'}}\n    />\n  {{/unless}}\n  <div class='m-4 dashboard'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <Dashboard::ModuleRows\n        @modules={{this.model.modules}}\n        @data={{this.model.configData}}\n      />\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"EgT+IJcZ\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Dashboard\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"m-4 dashboard\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@modules\\\",\\\"@data\\\"],[[30,0,[\\\"model\\\",\\\"modules\\\"]],[30,0,[\\\"model\\\",\\\"configData\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"dashboard/module-rows\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/general-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"l96IA54h\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/general-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/general\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Reporting period'}}\n    />\n  {{/unless}}\n  <div class='width--medium m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>Reporting period</h1>\n      </header>\n    {{/if}}\n    <form class='block-module'>\n      <div class='tabular-form-controls'>\n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            for='opening-balance-date-input'\n          >Opening Balance Date</label>\n  \n          <div class='tabular-form-controls__cell'>\n            <SelectInput\n              @value={{this.balanceDate}}\n              @action={{fn (mut this.balanceDate)}}\n              @id='opening-balance-date-input'\n              @class='select-box'\n              as |si|\n            >\n              {{#each this.months as |month|}}\n                <si.option @value={{month.value}}>{{month.name}}</si.option>\n              {{/each}}\n            </SelectInput>\n          </div>\n        </div>\n  \n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          >\n            {{this.firstClosedPeriodLabel}}\n            <InfoPopup @text={{this.firstClosedPeriodExplanation}} />\n          </label>\n  \n          <div class='tabular-form-controls__cell'>\n            <SelectInput\n              @value={{this.firstClosedMonth}}\n              @action={{fn (mut this.firstClosedMonth)}}\n              @disabled={{this.openAllPeriods}}\n              @class='select-box'\n              as |si|\n            >\n              {{#each this.months as |month|}}\n                <si.option @value={{month.value}}>{{month.name}}</si.option>\n              {{/each}}\n            </SelectInput>\n  \n            <SelectInput\n              @value={{this.firstClosedYear}}\n              @action={{fn (mut this.firstClosedYear)}}\n              @disabled={{this.openAllPeriods}}\n              @class='select-box'\n              as |si|\n            >\n              {{#each this.years as |year|}}\n                <si.option @value={{year}}>{{year}}</si.option>\n              {{/each}}\n            </SelectInput>\n  \n            <label>\n              <Input @type='checkbox' @checked={{this.openAllPeriods}} />\n              Open All Periods\n            </label>\n          </div>\n        </div>\n      </div>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @class='float-end button'\n          @isLoading={{this.isSaving}}\n          @action={{action 'save'}}\n          @buttonText='Save Entity'\n        />\n      </footer>\n    </form>\n  </div>\n  */\n  {\n    \"id\": \"FFRQhMl/\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Reporting period\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"width--medium m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Reporting period\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"form\\\"],[14,0,\\\"block-module\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"opening-balance-date-input\\\"],[12],[1,\\\"Opening Balance Date\\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@id\\\",\\\"@class\\\"],[[30,0,[\\\"balanceDate\\\"]],[28,[37,11],[[28,[37,12],[[30,0,[\\\"balanceDate\\\"]]],null]],null],\\\"opening-balance-date-input\\\",\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"months\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,2,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,2,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"firstClosedPeriodLabel\\\"]]],[1,\\\"\\\\n          \\\"],[8,[39,15],null,[[\\\"@text\\\"],[[30,0,[\\\"firstClosedPeriodExplanation\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@disabled\\\",\\\"@class\\\"],[[30,0,[\\\"firstClosedMonth\\\"]],[28,[37,11],[[28,[37,12],[[30,0,[\\\"firstClosedMonth\\\"]]],null]],null],[30,0,[\\\"openAllPeriods\\\"]],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"months\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,4,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,4,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"          \\\"]],[3]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,10],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@disabled\\\",\\\"@class\\\"],[[30,0,[\\\"firstClosedYear\\\"]],[28,[37,11],[[28,[37,12],[[30,0,[\\\"firstClosedYear\\\"]]],null]],null],[30,0,[\\\"openAllPeriods\\\"]],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"years\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,6]]],[[\\\"default\\\"],[[[[1,[30,6]]],[]]]]],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"          \\\"]],[5]]]]],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"openAllPeriods\\\"]]]],null],[1,\\\"\\\\n            Open All Periods\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button\\\",[30,0,[\\\"isSaving\\\"]],[28,[37,19],[[30,0],\\\"save\\\"],null],\\\"Save Entity\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"si\\\",\\\"month\\\",\\\"si\\\",\\\"month\\\",\\\"si\\\",\\\"year\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"div\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"form\\\",\\\"label\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"each\\\",\\\"-track-array\\\",\\\"info-popup\\\",\\\"input\\\",\\\"footer\\\",\\\"loading-button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/general.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/groups-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"iSm8OxT1\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/groups-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/groups\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Groups'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>Groups</h1>\n      </header>\n    {{/if}}\n    <header>\n      <ul class='tabs'>\n        <li class='tabs__tab'><LinkTo\n            @route='entity.financials.groups.membership'\n          >Membership</LinkTo></li>\n        <li class='tabs__tab'><LinkTo\n            @route='entity.financials.groups.access'\n          >Access</LinkTo></li>\n        <li class='tabs__tab'><LinkTo\n            @route='entity.financials.groups.order'\n          >Order</LinkTo></li>\n      </ul>\n    </header>\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{outlet}}\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"qxNjXtl1\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Groups\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Groups\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"ul\\\"],[14,0,\\\"tabs\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[8,[39,10],null,[[\\\"@route\\\"],[\\\"entity.financials.groups.membership\\\"]],[[\\\"default\\\"],[[[[1,\\\"Membership\\\"]],[]]]]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[8,[39,10],null,[[\\\"@route\\\"],[\\\"entity.financials.groups.access\\\"]],[[\\\"default\\\"],[[[[1,\\\"Access\\\"]],[]]]]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[8,[39,10],null,[[\\\"@route\\\"],[\\\"entity.financials.groups.order\\\"]],[[\\\"default\\\"],[[[[1,\\\"Order\\\"]],[]]]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,11],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"ul\\\",\\\"li\\\",\\\"link-to\\\",\\\"loading-icon\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/groups.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/groups/membership-and-access\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (eq this.propertyToToggle 'isInGroup')}}\n    <p>You are currently editing\n      <strong>group membership</strong>. A check mark means a branch’s data will\n      be included in that group’s averages or totals.</p>\n  {{else}}\n    <p>You are currently editing\n      <strong>group access</strong>. A check mark means a branch has permission to\n      view that group’s averages or totals.</p>\n  {{/if}}\n  \n  {{#unless this.noEditGroups}}\n    {{! If the noEditGroups option is set, do not allow editing or saving }}\n    <p>\n      <LoadingButton\n        @action={{action 'save'}}\n        @class='button'\n        @isLoading={{this.isSaving}}\n      >Save</LoadingButton>\n      <button\n        class='button button--add'\n        type='button'\n        {{action 'addNewGroup'}}\n      >New group</button>\n    </p>\n  {{else}}\n    {{! This is to make sure that there is enough space where the buttons would have been }}\n    <br /><br />\n  {{/unless}}\n  \n  <table class='shrink groups-editor data-table'>\n    <thead>\n      <tr>\n        <th>Branches</th>\n        {{#each this.model.groups as |group|}}\n          <th><label><Input\n                @value={{group.name}}\n                placeholder='Unnamed'\n              /></label></th>\n        {{/each}}\n      </tr>\n    </thead>\n  \n    <tbody>\n      {{#each this.tableContent as |branch|}}\n        <tr>\n          <td>{{branch.name}}</td>\n  \n          {{! custom }}\n          {{#each branch.groupData as |groupData|}}\n            <td><label><Input\n                  @type='checkbox'\n                  @checked={{groupData.propertyToToggle}}\n                /></label></td>\n          {{/each}}\n        </tr>\n      {{/each}}\n    </tbody>\n  \n    <tfoot>\n      <tr class='subdued'>\n        <td>Consolidation group</td>\n        {{#each this.model.groups as |group|}}\n          <td><label><Input\n                @type='checkbox'\n                @checked={{group.consolidation}}\n              /></label></td>\n        {{/each}}\n      </tr>\n  \n      {{#unless this.noEditGroups}}\n        {{! Do not allow deleting if noEditGroups is true }}\n        <tr class='subdued'>\n          <td>Delete group…</td>\n  \n          {{#each this.model.groups as |group|}}\n            <td><button\n                class='text-button text-button--delete'\n                type='button'\n                {{action 'deleteGroup' group}}\n              ><FaIcon @icon='times' /></button></td>\n          {{/each}}\n        </tr>\n      {{/unless}}\n    </tfoot>\n  </table>\n  \n  {{#if this.groupBeingDeleted}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n      @onClose={{action 'cancelDeleteGroup'}}\n    >\n      <header class='block-module__header'>\n        <h2 class='h2'>Delete group</h2>\n      </header>\n  \n      <p>Are you sure you want to delete ‘{{this.groupBeingDeleted.name}}’?</p>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @action={{action 'confirmDeleteGroup' this.groupBeingDeleted}}\n          @isLoading={{this.isDeleting}}\n          @class='float-end button button--delete'\n        >\n          Delete\n        </LoadingButton>\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action 'cancelDeleteGroup'}}\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"dyX6nipJ\",\n    \"block\": \"[[[41,[28,[37,1],[[30,0,[\\\"propertyToToggle\\\"]],\\\"isInGroup\\\"],null],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"You are currently editing\\\\n    \\\"],[10,\\\"strong\\\"],[12],[1,\\\"group membership\\\"],[13],[1,\\\". A check mark means a branch’s data will\\\\n    be included in that group’s averages or totals.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"You are currently editing\\\\n    \\\"],[10,\\\"strong\\\"],[12],[1,\\\"group access\\\"],[13],[1,\\\". A check mark means a branch has permission to\\\\n    view that group’s averages or totals.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"noEditGroups\\\"]]],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@action\\\",\\\"@class\\\",\\\"@isLoading\\\"],[[28,[37,6],[[30,0],\\\"save\\\"],null],\\\"button\\\",[30,0,[\\\"isSaving\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"addNewGroup\\\"],null],[12],[1,\\\"New group\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[10,\\\"table\\\"],[14,0,\\\"shrink groups-editor data-table\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[12],[1,\\\"Branches\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"model\\\",\\\"groups\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"th\\\"],[12],[10,\\\"label\\\"],[12],[8,[39,16],[[24,\\\"placeholder\\\",\\\"Unnamed\\\"]],[[\\\"@value\\\"],[[30,1,[\\\"name\\\"]]]],null],[13],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"tableContent\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,2,[\\\"groupData\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[10,\\\"label\\\"],[12],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,3,[\\\"propertyToToggle\\\"]]]],null],[13],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[14,0,\\\"subdued\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Consolidation group\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"model\\\",\\\"groups\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"td\\\"],[12],[10,\\\"label\\\"],[12],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,4,[\\\"consolidation\\\"]]]],null],[13],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"noEditGroups\\\"]]],[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[14,0,\\\"subdued\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Delete group…\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"model\\\",\\\"groups\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"deleteGroup\\\",[30,5]],null],[12],[8,[39,20],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[13],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"groupBeingDeleted\\\"]],[[[1,\\\"  \\\"],[8,[39,21],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,6],[[30,0],\\\"cancelDeleteGroup\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Delete group\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,2],[12],[1,\\\"Are you sure you want to delete ‘\\\"],[1,[30,0,[\\\"groupBeingDeleted\\\",\\\"name\\\"]]],[1,\\\"’?\\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@action\\\",\\\"@isLoading\\\",\\\"@class\\\"],[[28,[37,6],[[30,0],\\\"confirmDeleteGroup\\\",[30,0,[\\\"groupBeingDeleted\\\"]]],null],[30,0,[\\\"isDeleting\\\"]],\\\"float-end button button--delete\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        Delete\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"cancelDeleteGroup\\\"],null],[12],[1,[28,[35,25],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"group\\\",\\\"branch\\\",\\\"groupData\\\",\\\"group\\\",\\\"group\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"p\\\",\\\"strong\\\",\\\"unless\\\",\\\"loading-button\\\",\\\"action\\\",\\\"button\\\",\\\"br\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"label\\\",\\\"input\\\",\\\"tbody\\\",\\\"td\\\",\\\"tfoot\\\",\\\"fa-icon\\\",\\\"modal-dialog\\\",\\\"header\\\",\\\"h2\\\",\\\"footer\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/groups/membership-and-access.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/groups/order\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>Here you can edit the order in which groups will appear.</p>\n  \n  {{#unless this.noEditGroups}}\n    {{! Do not allow saving if noEditGroups is true }}\n    <LoadingButton\n      @isLoading={{this.isSaving}}\n      @class='button'\n      @action={{action 'save'}}\n    >Save</LoadingButton>\n  {{/unless}}\n  \n  {{#if this.model.groups}}\n    <SortableList\n      @content={{this.model.groups}}\n      @property='name'\n      @class='block'\n    />\n  {{else}}\n    <p class='ptl-placeholder'>There are no groups yet. Go to the\n      <LinkTo @route='entity.financials.groups.access'>memebership</LinkTo>\n      tab to add some.</p>\n  {{/if}}\n  */\n  {\n    \"id\": \"SyvPE4tB\",\n    \"block\": \"[[[10,2],[12],[1,\\\"Here you can edit the order in which groups will appear.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"noEditGroups\\\"]]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@isLoading\\\",\\\"@class\\\",\\\"@action\\\"],[[30,0,[\\\"isSaving\\\"]],\\\"button\\\",[28,[37,3],[[30,0],\\\"save\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groups\\\"]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@content\\\",\\\"@property\\\",\\\"@class\\\"],[[30,0,[\\\"model\\\",\\\"groups\\\"]],\\\"name\\\",\\\"block\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"There are no groups yet. Go to the\\\\n    \\\"],[8,[39,6],null,[[\\\"@route\\\"],[\\\"entity.financials.groups.access\\\"]],[[\\\"default\\\"],[[[[1,\\\"memebership\\\"]],[]]]]],[1,\\\"\\\\n    tab to add some.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"p\\\",\\\"unless\\\",\\\"loading-button\\\",\\\"action\\\",\\\"if\\\",\\\"sortable-list\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/groups/order.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Import'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <div class='width--large'>\n      {{#if (media 'isDesktop')}}\n        <header class='border-bottom mb-3'>\n          <h1 class='h1'>Import</h1>\n        </header>\n      {{/if}}\n  \n      <nav class='steps step-{{this.step}}'>\n        <ol>\n          <li><LinkTo @route='entity.financials.import.start' class='link'>Select\n              period</LinkTo></li>\n          <li><LinkTo\n              @route='entity.financials.import.data'\n              @model='profit-and-loss'\n              class='link'\n            >Profit &amp; Loss</LinkTo></li>\n          <li><LinkTo\n              @route='entity.financials.import.data'\n              @model='balance-sheet'\n              class='link'\n            >Balance Sheet</LinkTo></li>\n  \n          {{#if this.hasOtherData}}\n            <li><LinkTo\n                @route='entity.financials.import.data'\n                @model='other-data'\n                class='link'\n              >Other Data</LinkTo></li>\n          {{/if}}\n        </ol>\n      </nav>\n  \n      <div>\n        {{outlet}}\n      </div>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"X0WCS1Fk\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Import\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"width--large\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,\\\"nav\\\"],[15,0,[29,[\\\"steps step-\\\",[30,0,[\\\"step\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ol\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[8,[39,12],[[24,0,\\\"link\\\"]],[[\\\"@route\\\"],[\\\"entity.financials.import.start\\\"]],[[\\\"default\\\"],[[[[1,\\\"Select\\\\n            period\\\"]],[]]]]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[8,[39,12],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.import.data\\\",\\\"profit-and-loss\\\"]],[[\\\"default\\\"],[[[[1,\\\"Profit & Loss\\\"]],[]]]]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[8,[39,12],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.import.data\\\",\\\"balance-sheet\\\"]],[[\\\"default\\\"],[[[[1,\\\"Balance Sheet\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"hasOtherData\\\"]],[[[1,\\\"          \\\"],[10,\\\"li\\\"],[12],[8,[39,12],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.import.data\\\",\\\"other-data\\\"]],[[\\\"default\\\"],[[[[1,\\\"Other Data\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,13],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"div\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"nav\\\",\\\"ol\\\",\\\"li\\\",\\\"link-to\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import/data\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <h2>\n    {{this.stepName}}\n    for\n    {{moment-format this.sessionData.period 'MMMM YYYY' 'YYYY-MM'}}\n  </h2>\n  \n  <div\n    class='financial-data-viewer limit-large\n      {{if this.isConfiguring \"configuring\"}}'\n  >\n    <FinancialDataTable\n      @accountList={{this.accountList}}\n      @selectedSystem={{this.selectedSystem}}\n      @remap={{action 'remap'}}\n      @invertMap={{action 'invertMap'}}\n      @toggleConfigPane={{action 'toggleConfigPane'}}\n    />\n  \n    <FinancialDataImporter\n      @period={{this.period}}\n      @systems={{this.visibleSystems}}\n      @selectedSystem={{this.selectedSystem}}\n      @canChangeSystem={{this.sessionData.entity.canChangeSystem}}\n      @maps={{this.unusedMaps}}\n      @isImporting={{this.isImporting}}\n      @importData={{this.model.import}}\n      @selectSystem={{action 'selectSystem'}}\n      @import={{action 'import'}}\n      @remap={{action 'remap'}}\n      @save={{action 'save'}}\n      @advance={{action 'advance'}}\n    />\n  </div>\n  */\n  {\n    \"id\": \"x/DCldKH\",\n    \"block\": \"[[[10,\\\"h2\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[30,0,[\\\"stepName\\\"]]],[1,\\\"\\\\n  for\\\\n  \\\"],[1,[28,[35,1],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MMMM YYYY\\\",\\\"YYYY-MM\\\"],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[15,0,[29,[\\\"financial-data-viewer limit-large\\\\n    \\\",[52,[30,0,[\\\"isConfiguring\\\"]],\\\"configuring\\\"]]]],[12],[1,\\\"\\\\n  \\\"],[8,[39,4],null,[[\\\"@accountList\\\",\\\"@selectedSystem\\\",\\\"@remap\\\",\\\"@invertMap\\\",\\\"@toggleConfigPane\\\"],[[30,0,[\\\"accountList\\\"]],[30,0,[\\\"selectedSystem\\\"]],[28,[37,5],[[30,0],\\\"remap\\\"],null],[28,[37,5],[[30,0],\\\"invertMap\\\"],null],[28,[37,5],[[30,0],\\\"toggleConfigPane\\\"],null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,6],null,[[\\\"@period\\\",\\\"@systems\\\",\\\"@selectedSystem\\\",\\\"@canChangeSystem\\\",\\\"@maps\\\",\\\"@isImporting\\\",\\\"@importData\\\",\\\"@selectSystem\\\",\\\"@import\\\",\\\"@remap\\\",\\\"@save\\\",\\\"@advance\\\"],[[30,0,[\\\"period\\\"]],[30,0,[\\\"visibleSystems\\\"]],[30,0,[\\\"selectedSystem\\\"]],[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"canChangeSystem\\\"]],[30,0,[\\\"unusedMaps\\\"]],[30,0,[\\\"isImporting\\\"]],[30,0,[\\\"model\\\",\\\"import\\\"]],[28,[37,5],[[30,0],\\\"selectSystem\\\"],null],[28,[37,5],[[30,0],\\\"import\\\"],null],[28,[37,5],[[30,0],\\\"remap\\\"],null],[28,[37,5],[[30,0],\\\"save\\\"],null],[28,[37,5],[[30,0],\\\"advance\\\"],null]]],null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"h2\\\",\\\"moment-format\\\",\\\"div\\\",\\\"if\\\",\\\"financial-data-table\\\",\\\"action\\\",\\\"financial-data-importer\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import/data.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import/done\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='block-module block-module--centered'>\n    <h3 class='h3'>Your import is complete!</h3>\n    <p>Go to the\n      <LinkTo @route='entity.financials.reports.kpis.index' class='link'>KPIs page</LinkTo>\n      to view analysis of these numbers.</p>\n  </div>\n  */\n  {\n    \"id\": \"QAGyQujn\",\n    \"block\": \"[[[10,0],[14,0,\\\"block-module block-module--centered\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,\\\"Your import is complete!\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Go to the\\\\n    \\\"],[8,[39,3],[[24,0,\\\"link\\\"]],[[\\\"@route\\\"],[\\\"entity.financials.reports.kpis.index\\\"]],[[\\\"default\\\"],[[[[1,\\\"KPIs page\\\"]],[]]]]],[1,\\\"\\\\n    to view analysis of these numbers.\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"h3\\\",\\\"p\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import/done.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"ItP0sLvo\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import/start\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='block-module block-module--centered'>\n    <p>Get started by selecting a month to add or change.</p>\n    <p><MonthPicker @period={{this.sessionData.period}} /></p>\n    <button class='button' type='button' {{action 'advance'}}>Continue</button>\n  </div>\n  */\n  {\n    \"id\": \"HbUj3OTR\",\n    \"block\": \"[[[10,0],[14,0,\\\"block-module block-module--centered\\\"],[12],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Get started by selecting a month to add or change.\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[12],[8,[39,2],null,[[\\\"@period\\\"],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]]]],null],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"advance\\\"],null],[12],[1,\\\"Continue\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"month-picker\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import/start.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/kpis-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"21lgQEX0\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/kpis-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/kpis\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='KPIs'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.model.length}}<LoadingButton\n        @isLoading={{this.isSaving}}\n        @action={{action 'save'}}\n        @class='float-end button'\n      >Save</LoadingButton>{{/if}}\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>KPIs</h1>\n      </header>\n    {{/if}}\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.model.length}}\n        <section class='master-detail'>\n          <aside class='master-detail__master'>\n            <SortableList @content={{this.model}} as |kpi|>\n              <li data-id={{kpi.id}}><LinkTo\n                  @route='entity.financials.kpis.kpi'\n                  @model={{kpi.id}}\n                >{{kpi.name}}</LinkTo></li>\n            </SortableList>\n          </aside>\n  \n          <article class='master-detail__detail'>\n            {{outlet}}\n          </article>\n        </section>\n      {{else}}\n        <div class='error-page error-page--no-data'>\n          <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n          <h3 class='h3 error-page__title'>There are no KPIs set up.</h3>\n        </div>\n      {{/if}}\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"keyJndr0\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"KPIs\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[41,[30,0,[\\\"model\\\",\\\"length\\\"]],[[[8,[39,6],null,[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"isSaving\\\"]],[28,[37,7],[[30,0],\\\"save\\\"],null],\\\"float-end button\\\"]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"KPIs\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[10,\\\"section\\\"],[14,0,\\\"master-detail\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"aside\\\"],[14,0,\\\"master-detail__master\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],null,[[\\\"@content\\\"],[[30,0,[\\\"model\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,\\\"li\\\"],[15,\\\"data-id\\\",[30,1,[\\\"id\\\"]]],[12],[8,[39,15],null,[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.kpis.kpi\\\",[30,1,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[30,1,[\\\"name\\\"]]]],[]]]]],[13],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"article\\\"],[14,0,\\\"master-detail__detail\\\"],[12],[1,\\\"\\\\n          \\\"],[46,[28,[37,16],null,null],null,null,null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,19],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"There are no KPIs set up.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13]],[\\\"kpi\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"loading-button\\\",\\\"action\\\",\\\"header\\\",\\\"h1\\\",\\\"loading-icon\\\",\\\"section\\\",\\\"aside\\\",\\\"sortable-list\\\",\\\"li\\\",\\\"link-to\\\",\\\"-outlet\\\",\\\"div\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/kpis.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/kpis/kpi\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <header>\n    <h1 class='h1'>{{this.model.name}}</h1>\n  </header>\n  \n  <form>\n    <div class='tabular-form-controls'>\n      <div class='tabular-form-controls__row'>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          for='kpi-name'\n        >Name</label>\n        <Input\n          @value={{this.model.name}}\n          class='tabular-form-controls__cell text-input text-input--wide'\n          id='kpi-name'\n        />\n      </div>\n  \n      <div class='tabular-form-controls__row'>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          for='kpi-intro-line'\n        >Intro line</label>\n        <Input\n          @value={{this.model.introLine}}\n          class='tabular-form-controls__cell text-input text-input--wide'\n          id='kpi-intro-line'\n        />\n      </div>\n  \n      <div class='tabular-form-controls__row'>\n        <label\n          for='kpi-active'\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n        >Active</label>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--info'\n        >\n          <Input\n            @type='checkbox'\n            id='kpi-active'\n            @checked={{this.model.active}}\n          />\n          Active KPIs are available on the Dashboard and the KPIs page.</label>\n      </div>\n  \n      <div class='tabular-form-controls__row'>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          for='kpi-description'\n        >Description</label>\n        <Textarea\n          @value={{this.model.description}}\n          class='tabular-form-controls__cell text-input text-input--wide'\n          id='kpi-description'\n          rows='8'\n        />\n        <MarkdownToHtml\n          @class='tabular-form-controls__cell markdown-output'\n          @markdown={{this.model.description}}\n        />\n      </div>\n  \n      <div class='tabular-form-controls__row'>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          for='kpi-strategies'\n        >Strategies</label>\n        <Textarea\n          @value={{this.model.strategies}}\n          class='tabular-form-controls__cell text-input text-input--wide'\n          id='kpi-strategies'\n          rows='8'\n        />\n        <MarkdownToHtml\n          @class='tabular-form-controls__cell markdown-output'\n          @markdown={{this.model.strategies}}\n        />\n      </div>\n    </div>\n  </form>\n  */\n  {\n    \"id\": \"bWrUjMDY\",\n    \"block\": \"[[[10,\\\"header\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,[30,0,[\\\"model\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"tabular-form-controls\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"kpi-name\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,5],[[24,0,\\\"tabular-form-controls__cell text-input text-input--wide\\\"],[24,1,\\\"kpi-name\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"kpi-intro-line\\\"],[12],[1,\\\"Intro line\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,5],[[24,0,\\\"tabular-form-controls__cell text-input text-input--wide\\\"],[24,1,\\\"kpi-intro-line\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"introLine\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"kpi-active\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--info\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],[[24,1,\\\"kpi-active\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"model\\\",\\\"active\\\"]]]],null],[1,\\\"\\\\n        Active KPIs are available on the Dashboard and the KPIs page.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"kpi-description\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,6],[[24,0,\\\"tabular-form-controls__cell text-input text-input--wide\\\"],[24,1,\\\"kpi-description\\\"],[24,\\\"rows\\\",\\\"8\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"description\\\"]]]],null],[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@markdown\\\"],[\\\"tabular-form-controls__cell markdown-output\\\",[30,0,[\\\"model\\\",\\\"description\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"kpi-strategies\\\"],[12],[1,\\\"Strategies\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,6],[[24,0,\\\"tabular-form-controls__cell text-input text-input--wide\\\"],[24,1,\\\"kpi-strategies\\\"],[24,\\\"rows\\\",\\\"8\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"strategies\\\"]]]],null],[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@markdown\\\"],[\\\"tabular-form-controls__cell markdown-output\\\",[30,0,[\\\"model\\\",\\\"strategies\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"header\\\",\\\"h1\\\",\\\"form\\\",\\\"div\\\",\\\"label\\\",\\\"input\\\",\\\"textarea\\\",\\\"markdown-to-html\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/kpis/kpi.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/planning/strategies\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Strategies'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <button\n          class='float-end button'\n          type='button'\n          {{action 'save'}}\n        >Save</button>\n        <h1 class='h1'>Strategies</h1>\n      </header>\n    {{/if}}\n  \n    <div class='width--large'>\n      <section>\n        <h2 class='h2'>Finances</h2>\n  \n        <StrategiesTable\n          @targets={{this.accountTargets}}\n          @metrics={{this.untargetedAccounts}}\n          @addTarget={{action 'addTarget'}}\n          @removeTarget={{action 'removeTarget'}}\n        />\n      </section>\n  \n      <section>\n        <h2 class='h2'>KPIs</h2>\n  \n        <StrategiesTable\n          @targets={{this.kpiTargets}}\n          @metrics={{this.untargetedKPIs}}\n          @includeBreakdowns={{true}}\n          @purgeEmptyBreakdownLines={{action 'purgeEmptyBreakdownLines'}}\n          @addTarget={{action 'addTarget'}}\n          @removeTarget={{action 'removeTarget'}}\n        />\n      </section>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"Nwzz8ozm\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Strategies\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"save\\\"],null],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Strategies\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Finances\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@targets\\\",\\\"@metrics\\\",\\\"@addTarget\\\",\\\"@removeTarget\\\"],[[30,0,[\\\"accountTargets\\\"]],[30,0,[\\\"untargetedAccounts\\\"]],[28,[37,8],[[30,0],\\\"addTarget\\\"],null],[28,[37,8],[[30,0],\\\"removeTarget\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"KPIs\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@targets\\\",\\\"@metrics\\\",\\\"@includeBreakdowns\\\",\\\"@purgeEmptyBreakdownLines\\\",\\\"@addTarget\\\",\\\"@removeTarget\\\"],[[30,0,[\\\"kpiTargets\\\"]],[30,0,[\\\"untargetedKPIs\\\"]],true,[28,[37,8],[[30,0],\\\"purgeEmptyBreakdownLines\\\"],null],[28,[37,8],[[30,0],\\\"addTarget\\\"],null],[28,[37,8],[[30,0],\\\"removeTarget\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"div\\\",\\\"section\\\",\\\"h2\\\",\\\"strategies-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/planning/strategies.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"07pKVGDn\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/balance-sheet-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"tGMVp2Xv\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/balance-sheet-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/balance-sheet\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Balance sheet'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n        <div class='data-withheld-notice-container'>\n          {{#if this.model.groupsRedacted}}\n            <GroupsRedactedNotice />\n          {{/if}}\n  \n          {{#if this.model.ownDataWithheld}}\n            <DataWithheldNotice />\n          {{/if}}\n        </div>\n      {{/if}}\n  \n      {{#if (media 'isDesktop')}}\n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n        <h1 class='h1'>Balance Sheet</h1>\n      {{/if}}\n    </header>\n  \n    {{#if this.model.entities}}\n      <table class='data-table financials-table'>\n        <thead>\n          <tr>\n            <th>Balance Sheet</th>\n  \n            {{#each this.orderedEntities as |entity|}}\n              <th class='financials-table__heading'>\n                <a\n                  {{action 'shiftFarLeft' entity}}\n                  class='financials-table__heading-link'\n                  title='Click to put this column first'\n                >\n                  {{entity.name}}\n                  {{if\n                    (is-array entity.members)\n                    (if entity.consolidation 'total' 'avg')\n                  }}\n                  {{#if entity.includedEntities}}\n                    <br />\n                    ({{entity.includedEntities}}\n                    /\n                    {{entity.members.length}}\n                    entities)\n                  {{/if}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n        </thead>\n        <tbody>\n          <FinancialsTableSection\n            @canSeeBreakdown={{this.canSeeBreakdown}}\n            @toggleShowChildren={{action 'toggleShowChildren'}}\n            @toggleShowBreakdown={{action 'toggleShowBreakdown'}}\n            @accounts={{this.balanceSheet}}\n            @showMonth={{true}}\n            @showYTD={{false}}\n            @totalsRow='Net Equity'\n            @hasGroups={{true}}\n          />\n        </tbody>\n      </table>\n  \n      <p class='ptl-placeholder'>Click on any table column heading to put that\n        column first.</p>\n  \n      <p class='ptl-placeholder limit-small'>* Numbers in this row will be sum of\n        its subsections for a single branch but not necessarily for groups. More\n        information can be found on the\n        <a\n          href='http://support.otbs.co.nz/hc/en-us/sections/203085588'\n          class='link'\n        >support site.</a></p>\n  \n    {{else}}\n      <div class='error-page error-page--no-data'>\n        <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n        <h3 class='h3 error-page__title'>There are no groups accessible.</h3>\n        <p>If you believe you have received this message in error, please check\n          with your system administrator.</p>\n      </div>\n    {{/if}}\n  \n    {{#if this.showBreakdown}}\n      <MetricBreakdown\n        @selectedMetric={{this.selectedMetric}}\n        @selectedGroup={{this.selectedGroup}}\n        @periodType={{this.selectedPeriodType}}\n        @overlay-class='breakdown'\n        @clickOutsideToClose={{true}}\n        @translucentOverlay={{true}}\n        @close={{action 'toggleShowBreakdown'}}\n        @accountType='balances'\n      />\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"meYSuJbW\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Balance sheet\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Balance Sheet\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"entities\\\"]],[[[1,\\\"    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Balance Sheet\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n              \\\"],[11,3],[24,0,\\\"financials-table__heading-link\\\"],[24,\\\"title\\\",\\\"Click to put this column first\\\"],[4,[38,12],[[30,0],\\\"shiftFarLeft\\\",[30,1]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[1,[52,[28,[37,21],[[30,1,[\\\"members\\\"]]],null],[52,[30,1,[\\\"consolidation\\\"]],\\\"total\\\",\\\"avg\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"includedEntities\\\"]],[[[1,\\\"                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  (\\\"],[1,[30,1,[\\\"includedEntities\\\"]]],[1,\\\"\\\\n                  /\\\\n                  \\\"],[1,[30,1,[\\\"members\\\",\\\"length\\\"]]],[1,\\\"\\\\n                  entities)\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,24],null,[[\\\"@canSeeBreakdown\\\",\\\"@toggleShowChildren\\\",\\\"@toggleShowBreakdown\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@totalsRow\\\",\\\"@hasGroups\\\"],[[30,0,[\\\"canSeeBreakdown\\\"]],[28,[37,12],[[30,0],\\\"toggleShowChildren\\\"],null],[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],[30,0,[\\\"balanceSheet\\\"]],true,false,\\\"Net Equity\\\",true]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"Click on any table column heading to put that\\\\n      column first.\\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,2],[14,0,\\\"ptl-placeholder limit-small\\\"],[12],[1,\\\"* Numbers in this row will be sum of\\\\n      its subsections for a single branch but not necessarily for groups. More\\\\n      information can be found on the\\\\n      \\\"],[10,3],[14,6,\\\"http://support.otbs.co.nz/hc/en-us/sections/203085588\\\"],[14,0,\\\"link\\\"],[12],[1,\\\"support site.\\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,27],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"There are no groups accessible.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n        with your system administrator.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBreakdown\\\"]],[[[1,\\\"    \\\"],[8,[39,29],null,[[\\\"@selectedMetric\\\",\\\"@selectedGroup\\\",\\\"@periodType\\\",\\\"@overlay-class\\\",\\\"@clickOutsideToClose\\\",\\\"@translucentOverlay\\\",\\\"@close\\\",\\\"@accountType\\\"],[[30,0,[\\\"selectedMetric\\\"]],[30,0,[\\\"selectedGroup\\\"]],[30,0,[\\\"selectedPeriodType\\\"]],\\\"breakdown\\\",true,true,[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],\\\"balances\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"entity\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"is-array\\\",\\\"br\\\",\\\"tbody\\\",\\\"financials-table-section\\\",\\\"p\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\",\\\"metric-breakdown\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/balance-sheet.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"m4XRRNIb\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='ITM custom P&L'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n        <div class='data-withheld-notice-container'>\n          {{#if this.model.groupsRedacted}}\n            <GroupsRedactedNotice />\n          {{/if}}\n  \n          {{#if this.model.ownDataWithheld}}\n            <DataWithheldNotice />\n          {{/if}}\n        </div>\n      {{/if}}\n  \n      {{#if (media 'isDesktop')}}\n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n      {{/if}}\n  \n      <nav class='tabs'>\n        <ul class='tabs__group'>\n          <li class='tabs__tab'>\n            <a\n              class='{{if this.profitAndLossTableVisible \"active\"}}'\n              {{action 'setProfitAndLossTableVisible' true}}\n            >\n              Profit And Loss\n            </a>\n          </li>\n          <li class='tabs__tab'>\n            <a\n              class='{{unless this.profitAndLossTableVisible \"active\"}}'\n              {{action 'setProfitAndLossTableVisible' false}}\n            >\n              Expenses Table\n            </a>\n          </li>\n        </ul>\n      </nav>\n    </header>\n  \n    <div class='itm-financials-controls'>\n      <div class='itm-financials-controls__section'>\n        <span class='itm-financials-controls__section__title'>\n          Stores:\n        </span>\n        <PowerSelectMultiple\n          @options={{this.allowedEntities}}\n          @selected={{this.selectedEntities}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder='Click to add a store…'\n          @onChange={{action 'selectEntity'}}\n          as |entity|\n        >\n          {{entity.name}}\n        </PowerSelectMultiple>\n  \n        <span class='itm-financials-controls__section__title--last'>\n          Groups:\n        </span>\n        <PowerSelectMultiple\n          @options={{this.allowedGroups}}\n          @selected={{this.selectedGroups}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder='Click to add a group…'\n          @onChange={{action 'selectGroup'}}\n          as |group|\n        >\n          {{group.name}}\n        </PowerSelectMultiple>\n      </div>\n  \n      <div class='itm-financials-controls__section'>\n        {{! Only show this option if the user is an entity admin }}\n        {{#if (includes-feature-flags 'userIsEntityAdmin')}}\n          <button\n            class='button itm-financials-controls__invite-button'\n            type='button'\n            {{action this.set 'userCreateModalVisible' true}}\n          >\n            Invite Someone to Compare\n          </button>\n        {{/if}}\n  \n        <OverlaidDropdown\n          @buttonText='Filter Table'\n          @title='Filters'\n          @align='right'\n          @buttonClasses='button button--secondary file-input-button'\n        >\n          <label\n            class='overlaid-dropdown__option'\n            {{action 'toggleMonthVisible'}}\n          >\n            {{#if this.monthVisible}}\n              <FaIcon @icon='check-square' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n            {{/if}}\n            Show Month values\n          </label>\n  \n          <label class='overlaid-dropdown__option' {{action 'toggleYtdVisible'}}>\n            {{#if this.ytdVisible}}\n              <FaIcon @icon='check-square' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n            {{/if}}\n            Show YTD values\n          </label>\n  \n          <label\n            class='overlaid-dropdown__option'\n            {{action this.toggleProperty 'lastYearVisible'}}\n          >\n            {{#if this.lastYearVisible}}\n              <FaIcon @icon='check-square' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n            {{/if}}\n            Show last year values\n          </label>\n  \n          <label\n            class='overlaid-dropdown__option'\n            {{action this.toggleProperty 'percentageVisible'}}\n          >\n            {{#if this.percentageVisible}}\n              <FaIcon @icon='check-square' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n            {{/if}}\n            Show % of values\n          </label>\n        </OverlaidDropdown>\n      </div>\n    </div>\n  \n    {{#if this.model}}\n      {{#if this.profitAndLossTableVisible}}\n        <table class='data-table financials-table'>\n          <thead>\n            <tr>\n              <th class='financials-table__heading' colspan='2'></th>\n              {{#if this.sessionData.entity.parent.id}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{this.sessionData.entity.name}}</span>\n                </th>\n              {{/if}}\n              {{#each this.selectedEntities as |entity|}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{entity.name}}</span>\n                </th>\n              {{/each}}\n              {{#each this.selectedGroups as |group|}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{group.name}}{{if group.consolidation ' total' ' avg'}}</span>\n                </th>\n              {{/each}}\n            </tr>\n            <tr>\n              <th class='financials-table__heading' colspan='2'></th>\n              {{! TODO don't depend on netProfit for array length }}\n              {{#each this.model.netProfit.month}}\n                {{#if this.monthVisible}}\n                  <th\n                    class='financials-table__heading'\n                    colspan='{{if this.lastYearVisible 2 1}}'\n                  >\n                    <span class='financials-table__heading--center'>Current Month</span>\n                  </th>\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <th\n                    class='financials-table__heading'\n                    colspan='{{if this.lastYearVisible 2 1}}'\n                  >\n                    <span class='financials-table__heading--center'>Year To Date</span>\n                  </th>\n                {{/if}}\n              {{/each}}\n            </tr>\n            <tr class='data-table__subheading-row'>\n              <th class='financials-table__heading' colspan='2'>Description</th>\n              {{! TODO don't depend on netProfit for array length }}\n              {{#each this.model.netProfit.month}}\n                {{#if this.monthVisible}}\n                  <th class='financials-table__heading'>\n                    <div class='text-right'>\n                      Actual\n                      {{#if this.percentageVisible}}\n                        <span class='float-end financials-table__percentage'>% of\n                          Sales</span>\n                      {{/if}}\n                    </div>\n                  </th>\n                  {{#if this.lastYearVisible}}\n                    <th class='financials-table__heading'>\n                      <div class='text-right'>\n                        Last Year\n                        {{#if this.percentageVisible}}\n                          <span class='float-end financials-table__percentage'>%\n                            of Sales</span>\n                        {{/if}}\n                      </div>\n                    </th>\n                  {{/if}}\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <th class='financials-table__heading'>\n                    <div class='text-right'>\n                      Actual\n                      {{#if this.percentageVisible}}\n                        <span class='float-end financials-table__percentage'>% of\n                          Sales</span>\n                      {{/if}}\n                    </div>\n                  </th>\n                  {{#if this.lastYearVisible}}\n                    <th class='financials-table__heading'>\n                      <div class='text-right'>\n                        Last Year\n                        {{#if this.percentageVisible}}\n                          <span class='float-end financials-table__percentage'>%\n                            of Sales</span>\n                        {{/if}}\n                      </div>\n                    </th>\n                  {{/if}}\n                {{/if}}\n              {{/each}}\n            </tr>\n          </thead>\n  \n          <tbody>\n            {{! Cost Of Sales }}\n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @expandableTotalRow={{true}}\n              @depth={{0}}\n              @data={{this.model.sales}}\n            />\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @data={{this.model.costOfSales}}\n            />\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.systemMargin}}\n              @title='System Margin'\n            />\n  \n            {{#each this.model.stockVariation.children as |child|}}\n              <ItmFinancialTableSection\n                @childrenHidden={{true}}\n                @lastYearVisible={{this.lastYearVisible}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n              />\n            {{/each}}\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.achievedMargin}}\n              @title='Achieved Margin'\n            />\n  \n            {{! Loyalties & Freight }}\n            {{#each this.model.loyaltiesAndFreight.children as |child|}}\n              <ItmFinancialTableSection\n                @lastYearVisible={{this.lastYearVisible}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n              />\n            {{/each}}\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.grossMargin}}\n              @title='Gross Margin'\n            />\n  \n            {{! Expenses }}\n            {{#each this.model.expenses.children as |child|}}\n              <ItmFinancialTableSection\n                @childrenHidden={{true}}\n                @lastYearVisible={{this.lastYearVisible}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n              />\n            {{/each}}\n  \n            <ItmFinancialTableSection\n              @childrenHidden={{true}}\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @data={{this.model.expenses}}\n              @highlighted={{true}}\n            />\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.ebitda}}\n              @title='EBITDA'\n            />\n  \n            {{! Sundry }}\n            {{#each this.model.otherIncomeAndDepreciation.children as |child|}}\n              <ItmFinancialTableSection\n                @lastYearVisible={{this.lastYearVisible}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n              />\n            {{/each}}\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.netProfit}}\n              @title='Net Profit'\n            />\n  \n          </tbody>\n        </table>\n      {{else}}\n        <table class='data-table financials-table'>\n          <thead>\n            <tr>\n              <th class='financials-table__heading' colspan='2'></th>\n              {{#if this.sessionData.entity.parent.id}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{this.sessionData.entity.name}}</span>\n                </th>\n              {{/if}}\n              {{#each this.selectedEntities as |entity|}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{entity.name}}</span>\n                </th>\n              {{/each}}\n              {{#each this.selectedGroups as |group|}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{group.name}}{{if group.consolidation ' total' ' avg'}}</span>\n                </th>\n              {{/each}}\n            </tr>\n            <tr>\n              <th class='financials-table__heading' colspan='2'></th>\n              {{! template-lint-disable no-unused-block-params }}\n              {{#each this.model.netProfit.month as |unused index|}}\n                {{#if this.monthVisible}}\n                  <th\n                    class='financials-table__heading'\n                    colspan='{{if this.lastYearVisible 2 1}}'\n                  >\n                    <span class='financials-table__heading--center'>Current Month</span>\n                  </th>\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <th\n                    class='financials-table__heading'\n                    colspan='{{if this.lastYearVisible 2 1}}'\n                  >\n                    <span class='financials-table__heading--center'>Year To Date</span>\n                  </th>\n                {{/if}}\n              {{/each}}\n            </tr>\n            <tr class='data-table__subheading-row'>\n              <th class='financials-table__heading' colspan='2'>Description</th>\n              {{! template-lint-disable no-unused-block-params }}\n              {{#each this.model.netProfit.month as |unused index|}}\n                {{#if this.monthVisible}}\n                  <th class='financials-table__heading'>\n                    <div class='text-right'>\n                      Actual\n                      {{#if this.percentageVisible}}\n                        <span class='float-end financials-table__percentage'>% of\n                          Sales</span>\n                      {{/if}}\n                    </div>\n                  </th>\n                  {{#if this.lastYearVisible}}\n                    <th class='financials-table__heading'>\n                      <div class='text-right'>\n                        Last Year\n                        {{#if this.percentageVisible}}\n                          <span class='float-end financials-table__percentage'>%\n                            of Sales</span>\n                        {{/if}}\n                      </div>\n                    </th>\n                  {{/if}}\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <th class='financials-table__heading'>\n                    <div class='text-right'>\n                      Actual\n                      {{#if this.percentageVisible}}\n                        <span class='float-end financials-table__percentage'>% of\n                          Sales</span>\n                      {{/if}}\n                    </div>\n                  </th>\n                  {{#if this.lastYearVisible}}\n                    <th class='financials-table__heading'>\n                      <div class='text-right'>\n                        Last Year\n                        {{#if this.percentageVisible}}\n                          <span class='float-end financials-table__percentage'>%\n                            of Sales</span>\n                        {{/if}}\n                      </div>\n                    </th>\n                  {{/if}}\n                {{/if}}\n              {{/each}}\n            </tr>\n          </thead>\n  \n          <tbody>\n            {{! Expenses }}\n            {{#each this.model.expenses.children as |child|}}\n              <ItmFinancialTableSection\n                @lastYearVisible={{this.lastYearVisible}}\n                @showChildren={{true}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n                @parentScoped={{false}}\n              />\n            {{/each}}\n  \n            <tr class='data-table__total-row'>\n              <td colspan='2'>Total Expenses</td>\n              {{! TODO don't depend on netProfit for array length }}\n              {{#each this.model.netProfit.month as |unused index|}}\n                {{#if this.monthVisible}}\n                  <td\n                    class='text-right\n                      {{if\n                        (lt this.model.expenses.month 0)\n                        \"financials-table__negative-value\"\n                      }}'\n                  >\n                    {{number-format\n                      (object-at this.model.expenses.month index)\n                      maximumFractionDigits=0\n                      dashZero=true\n                    }}\n                  </td>\n                  {{#if this.lastYearVisible}}\n                    <td\n                      class='text-right\n                        {{if\n                          (lt this.model.expenses.monthPrev 0)\n                          \"financials-table__negative-value\"\n                        }}'\n                    >\n                      {{number-format\n                        (object-at this.model.expenses.monthPrev index)\n                        maximumFractionDigits=0\n                        dashZero=true\n                      }}\n                    </td>\n                  {{/if}}\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <td\n                    class='text-right\n                      {{if\n                        (lt this.model.expenses.ytd 0)\n                        \"financials-table__negative-value\"\n                      }}'\n                  >\n                    {{number-format\n                      (object-at this.model.expenses.ytd index)\n                      maximumFractionDigits=0\n                      dashZero=true\n                    }}\n                  </td>\n                  {{#if this.lastYearVisible}}\n                    <td\n                      class='text-right\n                        {{if\n                          (lt this.model.expenses.ytdPrev 0)\n                          \"financials-table__negative-value\"\n                        }}'\n                    >\n                      {{number-format\n                        (object-at this.model.expenses.ytdPrev index)\n                        maximumFractionDigits=0\n                        dashZero=true\n                      }}\n                    </td>\n                  {{/if}}\n                {{/if}}\n              {{/each}}\n            </tr>\n          </tbody>\n        </table>\n      {{/if}}\n    {{else}}\n      <div class='text-center error no-data'>\n        <h2><FaIcon @icon='info-circle' /></h2>\n        <h3>Pick a store or group to see report.</h3>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.userCreateModalVisible}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n      @onClose={{action this.toggleProperty 'userCreateModalVisible'}}\n    >\n      <header class='block-module__header'>\n        <h2 class='h2'>Create User</h2>\n      </header>\n  \n      <div class='tabular-form-controls'>\n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            for='user-first-name'\n          >First name</label>\n          <Input\n            class='tabular-form-controls__cell text-input'\n            @value={{this.newUserData.firstName}}\n            id='user-first-name'\n          />\n        </div>\n  \n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            for='user-last-name'\n          >Last name</label>\n          <Input\n            class='tabular-form-controls__cell text-input'\n            @value={{this.newUserData.lastName}}\n            id='user-last-name'\n          />\n        </div>\n  \n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            for='user-email'\n          >Email</label>\n          <Input\n            class='tabular-form-controls__cell text-input'\n            @value={{this.newUserData.email}}\n            @type='email'\n            id='user-email'\n          />\n        </div>\n      </div>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @class='float-end button button--spaced'\n          @isLoading={{this.isCreatingNewUser}}\n          @action={{action 'createNewUser'}}\n          @buttonText='Create'\n        />\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action this.toggleProperty 'userCreateModalVisible'}}\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"t1Bfr1pg\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"ITM custom P&L\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,\\\"nav\\\"],[14,0,\\\"tabs\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[14,0,\\\"tabs__group\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[16,0,[29,[[52,[30,0,[\\\"profitAndLossTableVisible\\\"]],\\\"active\\\"]]]],[4,[38,12],[[30,0],\\\"setProfitAndLossTableVisible\\\",true],null],[12],[1,\\\"\\\\n            Profit And Loss\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[16,0,[29,[[52,[51,[30,0,[\\\"profitAndLossTableVisible\\\"]]],\\\"active\\\"]]]],[4,[38,12],[[30,0],\\\"setProfitAndLossTableVisible\\\",false],null],[12],[1,\\\"\\\\n            Expenses Table\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"itm-financials-controls\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"itm-financials-controls__section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"itm-financials-controls__section__title\\\"],[12],[1,\\\"\\\\n        Stores:\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"allowedEntities\\\"]],[30,0,[\\\"selectedEntities\\\"]],true,\\\"name\\\",\\\"Click to add a store…\\\",[28,[37,12],[[30,0],\\\"selectEntity\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n\\\\n      \\\"],[10,1],[14,0,\\\"itm-financials-controls__section__title--last\\\"],[12],[1,\\\"\\\\n        Groups:\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"allowedGroups\\\"]],[30,0,[\\\"selectedGroups\\\"]],true,\\\"name\\\",\\\"Click to add a group…\\\",[28,[37,12],[[30,0],\\\"selectGroup\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"itm-financials-controls__section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[\\\"userIsEntityAdmin\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button itm-financials-controls__invite-button\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"userCreateModalVisible\\\",true],null],[12],[1,\\\"\\\\n          Invite Someone to Compare\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@buttonText\\\",\\\"@title\\\",\\\"@align\\\",\\\"@buttonClasses\\\"],[\\\"Filter Table\\\",\\\"Filters\\\",\\\"right\\\",\\\"button button--secondary file-input-button\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,12],[[30,0],\\\"toggleMonthVisible\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          Show Month values\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,12],[[30,0],\\\"toggleYtdVisible\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          Show YTD values\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,12],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"lastYearVisible\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          Show last year values\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,12],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"percentageVisible\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          Show % of values\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\"]],[[[41,[30,0,[\\\"profitAndLossTableVisible\\\"]],[[[1,\\\"      \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"parent\\\",\\\"id\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedEntities\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedGroups\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,4,[\\\"name\\\"]]],[1,[52,[30,4,[\\\"consolidation\\\"]],\\\" total\\\",\\\" avg\\\"]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[29,[[52,[30,0,[\\\"lastYearVisible\\\"]],2,1]]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,\\\"Current Month\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[29,[[52,[30,0,[\\\"lastYearVisible\\\"]],2,1]]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,\\\"Year To Date\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    Actual\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"% of\\\\n                        Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      Last Year\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"%\\\\n                          of Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    Actual\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"% of\\\\n                        Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      Last Year\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"%\\\\n                          of Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@expandableTotalRow\\\",\\\"@depth\\\",\\\"@data\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],true,0,[30,0,[\\\"model\\\",\\\"sales\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,0,[\\\"model\\\",\\\"costOfSales\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"systemMargin\\\"]],\\\"System Margin\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"stockVariation\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@childrenHidden\\\",\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[true,[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,5]]],null],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"achievedMargin\\\"]],\\\"Achieved Margin\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"loyaltiesAndFreight\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,6]]],null],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"grossMargin\\\"]],\\\"Gross Margin\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@childrenHidden\\\",\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[true,[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,7]]],null],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],null,[[\\\"@childrenHidden\\\",\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\",\\\"@highlighted\\\"],[true,[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,0,[\\\"model\\\",\\\"expenses\\\"]],true]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"ebitda\\\"]],\\\"EBITDA\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"otherIncomeAndDepreciation\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,8]]],null],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"netProfit\\\"]],\\\"Net Profit\\\"]],null],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"parent\\\",\\\"id\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedEntities\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,9,[\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedGroups\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,10,[\\\"name\\\"]]],[1,[52,[30,10,[\\\"consolidation\\\"]],\\\" total\\\",\\\" avg\\\"]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[29,[[52,[30,0,[\\\"lastYearVisible\\\"]],2,1]]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,\\\"Current Month\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[29,[[52,[30,0,[\\\"lastYearVisible\\\"]],2,1]]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,\\\"Year To Date\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[11,12]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    Actual\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"% of\\\\n                        Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      Last Year\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"%\\\\n                          of Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    Actual\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"% of\\\\n                        Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      Last Year\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"%\\\\n                          of Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[13,14]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@showChildren\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\",\\\"@parentScoped\\\"],[[30,0,[\\\"lastYearVisible\\\"]],true,[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,15],false]],null],[1,\\\"\\\\n\\\"]],[15]],null],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__total-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Total Expenses\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                    \\\",[52,[28,[37,32],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,33],[[28,[37,34],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"month\\\"]],[30,17]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                      \\\",[52,[28,[37,32],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"monthPrev\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[28,[37,34],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"monthPrev\\\"]],[30,17]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                    \\\",[52,[28,[37,32],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,33],[[28,[37,34],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"ytd\\\"]],[30,17]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                      \\\",[52,[28,[37,32],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"ytdPrev\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[28,[37,34],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"ytdPrev\\\"]],[30,17]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[16,17]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"text-center error no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[12],[8,[39,22],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Pick a store or group to see report.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"userCreateModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,37],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,12],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"userCreateModalVisible\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Create User\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"user-first-name\\\"],[12],[1,\\\"First name\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,38],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"user-first-name\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"newUserData\\\",\\\"firstName\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"user-last-name\\\"],[12],[1,\\\"Last name\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,38],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"user-last-name\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"newUserData\\\",\\\"lastName\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"user-email\\\"],[12],[1,\\\"Email\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,38],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"user-email\\\"]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"newUserData\\\",\\\"email\\\"]],\\\"email\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,40],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button button--spaced\\\",[30,0,[\\\"isCreatingNewUser\\\"]],[28,[37,12],[[30,0],\\\"createNewUser\\\"],null],\\\"Create\\\"]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"userCreateModalVisible\\\"],null],[12],[1,[28,[35,41],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entity\\\",\\\"group\\\",\\\"entity\\\",\\\"group\\\",\\\"child\\\",\\\"child\\\",\\\"child\\\",\\\"child\\\",\\\"entity\\\",\\\"group\\\",\\\"unused\\\",\\\"index\\\",\\\"unused\\\",\\\"index\\\",\\\"child\\\",\\\"unused\\\",\\\"index\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"nav\\\",\\\"ul\\\",\\\"li\\\",\\\"a\\\",\\\"span\\\",\\\"power-select-multiple\\\",\\\"includes-feature-flags\\\",\\\"overlaid-dropdown\\\",\\\"label\\\",\\\"fa-icon\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"tbody\\\",\\\"itm-financial-table-section\\\",\\\"td\\\",\\\"lt\\\",\\\"number-format\\\",\\\"object-at\\\",\\\"h2\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"input\\\",\\\"footer\\\",\\\"loading-button\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/other-data-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"781vr8D5\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/other-data-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/other-data\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Other data'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n          <div class='data-withheld-notice-container'>\n            {{#if this.model.groupsRedacted}}\n              <GroupsRedactedNotice />\n            {{/if}}\n  \n            {{#if this.model.ownDataWithheld}}\n              <DataWithheldNotice />\n            {{/if}}\n          </div>\n        {{/if}}\n  \n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n  \n        <h1 class='h1'>Other Data</h1>\n      </header>\n    {{else}}\n      {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n        <div class='data-withheld-notice-container'>\n          {{#if this.model.groupsRedacted}}\n            <GroupsRedactedNotice />\n          {{/if}}\n  \n          {{#if this.model.ownDataWithheld}}\n            <DataWithheldNotice />\n          {{/if}}\n        </div>\n      {{/if}}\n    {{/if}}\n  \n    {{#if this.otherData}}\n      {{#if this.model.entities}}\n        <table class='data-table financials-table'>\n          <thead>\n            <tr>\n              <th>Other Data</th>\n  \n              {{#each this.orderedEntities as |entity|}}\n                <th colspan={{this.colSpan}} class='financials-table__heading'>\n                  <a\n                    {{action 'shiftFarLeft' entity}}\n                    class='financials-table__heading-link'\n                    title='Click to put this column first'\n                  >\n                    {{entity.name}}\n                    {{if\n                      (is-array entity.members)\n                      (if entity.consolidation 'total' 'avg')\n                    }}\n                    {{#if entity.includedEntities}}\n                      <br />\n                      ({{entity.includedEntities}}\n                      /\n                      {{entity.members.length}}\n                      entities)\n                    {{/if}}\n                  </a>\n                </th>\n              {{/each}}\n            </tr>\n  \n            <tr class='data-table__subheading-row'>\n              <th></th>\n  \n              {{! template-lint-disable no-unused-block-params }}\n              {{#each this.orderedEntities as |entity|}}\n                <th class='financials-table__heading'>Month</th>\n                <th class='financials-table__heading'>YTD</th>\n              {{/each}}\n            </tr>\n          </thead>\n          <tbody>\n            <FinancialsTableSection\n              @canSeeBreakdown={{this.canSeeBreakdown}}\n              @toggleShowChildren={{action 'toggleShowChildren'}}\n              @toggleShowBreakdown={{action 'toggleShowBreakdown'}}\n              @accounts={{this.otherData}}\n              @showMonth={{true}}\n              @showYTD={{true}}\n            />\n          </tbody>\n        </table>\n  \n        <p class='ptl-placeholder'>Click on any table column heading to put that\n          column first.</p>\n  \n        <p class='ptl-placeholder limit-small'>* Numbers in this row will be sum\n          of its subsections for a single branch but not necessarily for groups.\n          More information can be found on the\n          <a\n            href='http://support.otbs.co.nz/hc/en-us/sections/203085588'\n            class='link'\n          >support site.</a></p>\n  \n      {{else}}\n        <div class='error-page error-page--no-data'>\n          <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n          <h3 class='h3 error-page__title'>There are no groups accessible.</h3>\n          <p>If you believe you have received this message in error, please check\n            with your system administrator.</p>\n        </div>\n      {{/if}}\n    {{else}}\n      <div class='error-page error-page--no-data'>\n        <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n        <h3 class='h3 error-page__title'>This entity has no accounts in this\n          section.</h3>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.showBreakdown}}\n    <MetricBreakdown\n      @selectedMetric={{this.selectedMetric}}\n      @selectedGroup={{this.selectedGroup}}\n      @periodType={{this.selectedPeriodType}}\n      @overlay-class='breakdown'\n      @clickOutsideToClose={{true}}\n      @translucentOverlay={{true}}\n      @close={{action 'toggleShowBreakdown'}}\n      @accountType='balances'\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"WwqTnkLZ\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Other data\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"            \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"            \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Other Data\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"otherData\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"entities\\\"]],[[[1,\\\"      \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Other Data\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"colSpan\\\"]]],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                \\\"],[11,3],[24,0,\\\"financials-table__heading-link\\\"],[24,\\\"title\\\",\\\"Click to put this column first\\\"],[4,[38,12],[[30,0],\\\"shiftFarLeft\\\",[30,1]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n                  \\\"],[1,[52,[28,[37,21],[[30,1,[\\\"members\\\"]]],null],[52,[30,1,[\\\"consolidation\\\"]],\\\"total\\\",\\\"avg\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"includedEntities\\\"]],[[[1,\\\"                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                    (\\\"],[1,[30,1,[\\\"includedEntities\\\"]]],[1,\\\"\\\\n                    /\\\\n                    \\\"],[1,[30,1,[\\\"members\\\",\\\"length\\\"]]],[1,\\\"\\\\n                    entities)\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,24],null,[[\\\"@canSeeBreakdown\\\",\\\"@toggleShowChildren\\\",\\\"@toggleShowBreakdown\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@showYTD\\\"],[[30,0,[\\\"canSeeBreakdown\\\"]],[28,[37,12],[[30,0],\\\"toggleShowChildren\\\"],null],[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],[30,0,[\\\"otherData\\\"]],true,true]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"Click on any table column heading to put that\\\\n        column first.\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[14,0,\\\"ptl-placeholder limit-small\\\"],[12],[1,\\\"* Numbers in this row will be sum\\\\n        of its subsections for a single branch but not necessarily for groups.\\\\n        More information can be found on the\\\\n        \\\"],[10,3],[14,6,\\\"http://support.otbs.co.nz/hc/en-us/sections/203085588\\\"],[14,0,\\\"link\\\"],[12],[1,\\\"support site.\\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,27],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"There are no groups accessible.\\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n          with your system administrator.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,27],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"This entity has no accounts in this\\\\n        section.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showBreakdown\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@selectedMetric\\\",\\\"@selectedGroup\\\",\\\"@periodType\\\",\\\"@overlay-class\\\",\\\"@clickOutsideToClose\\\",\\\"@translucentOverlay\\\",\\\"@close\\\",\\\"@accountType\\\"],[[30,0,[\\\"selectedMetric\\\"]],[30,0,[\\\"selectedGroup\\\"]],[30,0,[\\\"selectedPeriodType\\\"]],\\\"breakdown\\\",true,true,[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],\\\"balances\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entity\\\",\\\"entity\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"is-array\\\",\\\"br\\\",\\\"tbody\\\",\\\"financials-table-section\\\",\\\"p\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\",\\\"metric-breakdown\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/other-data.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/personal-data-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"2Bqeh+Jz\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/personal-data-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/personal-data\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Personal data'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      {{#if (media 'isDesktop')}}\n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n        <h1 class='h1'>Personal Data</h1>\n      {{/if}}\n    </header>\n  \n    {{#if this.model}}\n      <div class='financials-controls do-not-print control-wrapper'>\n        <label class='financials-controls__option'>\n          <Input @type='checkbox' @checked={{this.monthVisible}} />\n          Show month values\n        </label>\n  \n        <label class='financials-controls__option'>\n          <Input @type='checkbox' @checked={{this.ytdVisible}} />\n          Show YTD values\n        </label>\n  \n        <div class='financials-controls__option'>\n          <label class='options-selection' for='duration-picker'>\n            Number of periods:\n          </label>\n          <SelectInput\n            @value={{this.duration}}\n            @action={{fn (mut this.duration)}}\n            @class='select-box'\n            @id='duration-picker'\n            as |si|\n          >\n            {{#each this.durationOptions as |option|}}\n              <si.option @value={{option}}>{{option}}</si.option>\n            {{/each}}\n          </SelectInput>\n        </div>\n  \n        <div class='financials-controls__option'>\n          <label class='options-selection'>\n            Interval:\n          </label>\n          <SelectInput\n            @value={{this.interval}}\n            @action={{fn (mut this.interval)}}\n            @class='select-box'\n            as |si|\n          >\n            {{#each this.intervalOptions as |option|}}\n              <si.option @value={{option.value}}>{{option.name}}</si.option>\n            {{/each}}\n          </SelectInput>\n        </div>\n      </div>\n  \n      <table class='data-table financials-table'>\n        <thead>\n          <tr>\n            <th>Profit and Loss</th>\n  \n            {{#each this.dateRange as |date|}}\n              <th colspan={{this.colSpan}} class='financials-table__heading'>\n                <a class='financials-table__heading'>\n                  {{moment-format date 'MMM YYYY'}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n  \n          <tr class='data-table__subheading-row'>\n            <th></th>\n            {{! Empty cell to line up }}\n            {{#each this.intervalCount}}\n              {{#if this.monthVisible}}\n                <th class='financials-table__heading'>Month</th>\n              {{/if}}\n  \n              {{#if this.ytdVisible}}\n                <th class='financials-table__heading'>YTD</th>\n              {{/if}}\n  \n              {{#if (not (or this.monthVisible this.ytdVisible))}}\n                <th></th>\n              {{/if}}\n            {{/each}}\n          </tr>\n  \n        </thead>\n  \n        <tbody>\n          <PersonalFinancialTableSection\n            @toggleShowChildren={{action 'toggleShowChildren'}}\n            @accounts={{this.profitAndLoss}}\n            @showMonth={{this.monthVisible}}\n            @showYTD={{this.ytdVisible}}\n            @totalsRow='Net Profit'\n            @filterHeaders={{true}}\n            @periodCount={{this.duration}}\n            @doNotPrintTotal={{this.doNotPrintNetProfit}}\n          />\n        </tbody>\n      </table>\n  \n      <table class='financials-table data-table'>\n        <thead>\n          <tr>\n            <th>Balance Sheet</th>\n  \n            {{#each this.dateRange as |date|}}\n              <th class='financials-table__heading'>\n                <a class='financials-table__heading'>\n                  {{moment-format date 'MMM YYYY'}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n  \n          <tr class='data-table__subheading-row'>\n            <th></th>\n            {{! Empty cell to line up }}\n            {{#each this.intervalCount}}\n              <th class='financials-table__heading'>YTD</th>\n            {{/each}}\n          </tr>\n        </thead>\n  \n        <tbody>\n          <PersonalFinancialTableSection\n            @toggleShowChildren={{action 'toggleShowChildren'}}\n            @accounts={{this.balanceSheet}}\n            @showMonth={{true}}\n            @totalsRow='Net Equity'\n            @filterHeaders={{true}}\n            @periodCount={{this.duration}}\n            @doNotPrintTotal={{this.doNotPrintNetEquity}}\n          />\n        </tbody>\n      </table>\n  \n      <p>You can prevent sections from printing by clicking on the\n        <FaIcon @icon='eye' />\n        icons.</p>\n    {{else}}\n      <div class='text-center error no-data'>\n        <h2><FaIcon @icon='info-circle' /></h2>\n        <h3>There are no groups accessible.</h3>\n        <p>If you believe you have received this message in error, please check\n          with your system administrator.</p>\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"aHdhvCKc\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Personal data\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Personal Data\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"financials-controls do-not-print control-wrapper\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"financials-controls__option\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,12],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"monthVisible\\\"]]]],null],[1,\\\"\\\\n        Show month values\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"financials-controls__option\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,12],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"ytdVisible\\\"]]]],null],[1,\\\"\\\\n        Show YTD values\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"financials-controls__option\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"options-selection\\\"],[14,\\\"for\\\",\\\"duration-picker\\\"],[12],[1,\\\"\\\\n          Number of periods:\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\",\\\"@id\\\"],[[30,0,[\\\"duration\\\"]],[28,[37,14],[[28,[37,15],[[30,0,[\\\"duration\\\"]]],null]],null],\\\"select-box\\\",\\\"duration-picker\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"durationOptions\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,2]]],[[\\\"default\\\"],[[[[1,[30,2]]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"financials-controls__option\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"options-selection\\\"],[12],[1,\\\"\\\\n          Interval:\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"interval\\\"]],[28,[37,14],[[28,[37,15],[[30,0,[\\\"interval\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"intervalOptions\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,4,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,4,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"        \\\"]],[3]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Profit and Loss\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"dateRange\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"colSpan\\\"]]],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n              \\\"],[10,3],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,23],[[30,5],\\\"MMM YYYY\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"intervalCount\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[28,[37,25],[[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]]],null]],null],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],null,[[\\\"@toggleShowChildren\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@totalsRow\\\",\\\"@filterHeaders\\\",\\\"@periodCount\\\",\\\"@doNotPrintTotal\\\"],[[28,[37,8],[[30,0],\\\"toggleShowChildren\\\"],null],[30,0,[\\\"profitAndLoss\\\"]],[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],\\\"Net Profit\\\",true,[30,0,[\\\"duration\\\"]],[30,0,[\\\"doNotPrintNetProfit\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"financials-table data-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Balance Sheet\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"dateRange\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n              \\\"],[10,3],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,23],[[30,6],\\\"MMM YYYY\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"intervalCount\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],null,[[\\\"@toggleShowChildren\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@totalsRow\\\",\\\"@filterHeaders\\\",\\\"@periodCount\\\",\\\"@doNotPrintTotal\\\"],[[28,[37,8],[[30,0],\\\"toggleShowChildren\\\"],null],[30,0,[\\\"balanceSheet\\\"]],true,\\\"Net Equity\\\",true,[30,0,[\\\"duration\\\"]],[30,0,[\\\"doNotPrintNetEquity\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,2],[12],[1,\\\"You can prevent sections from printing by clicking on the\\\\n      \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"eye\\\"]],null],[1,\\\"\\\\n      icons.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"text-center error no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[12],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,\\\"There are no groups accessible.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n        with your system administrator.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"si\\\",\\\"option\\\",\\\"si\\\",\\\"option\\\",\\\"date\\\",\\\"date\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"div\\\",\\\"label\\\",\\\"input\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"each\\\",\\\"-track-array\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"a\\\",\\\"moment-format\\\",\\\"not\\\",\\\"or\\\",\\\"tbody\\\",\\\"personal-financial-table-section\\\",\\\"p\\\",\\\"fa-icon\\\",\\\"h2\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/personal-data.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/profit-and-loss-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"br2Wd9IA\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/profit-and-loss-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/profit-and-loss\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Profit and loss'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n        <div class='data-withheld-notice-container'>\n          {{#if this.model.groupsRedacted}}\n            <GroupsRedactedNotice />\n          {{/if}}\n  \n          {{#if this.model.ownDataWithheld}}\n            <DataWithheldNotice />\n          {{/if}}\n        </div>\n      {{/if}}\n  \n      {{#if (media 'isDesktop')}}\n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n  \n        <h1 class='h1'>Profit and Loss</h1>\n      {{/if}}\n    </header>\n    {{#if this.showBreakdown}}\n      <MetricBreakdown\n        @selectedMetric={{this.selectedMetric}}\n        @selectedGroup={{this.selectedGroup}}\n        @periodType={{this.selectedPeriodType}}\n        @overlay-class='breakdown'\n        @clickOutsideToClose={{true}}\n        @translucentOverlay={{true}}\n        @close={{action 'toggleShowBreakdown'}}\n        @accountType='balances'\n      />\n    {{/if}}\n  \n    {{#if this.model.entities}}\n      <div class='financials-controls'>\n        <div class='control-wrapper'>\n          <label>\n            <Input @type='checkbox' @checked={{this.monthVisible}} />\n            Show month values\n          </label>\n  \n          <label>\n            <Input @type='checkbox' @checked={{this.ytdVisible}} />\n            Show YTD values\n          </label>\n        </div>\n      </div>\n  \n      <table class='data-table financials-table'>\n        <thead>\n          <tr>\n            <th>Profit and Loss</th>\n  \n            {{#each this.orderedEntities as |entity|}}\n              <th colspan={{this.colSpan}} class='financials-table__heading'>\n                <a\n                  {{action 'shiftFarLeft' entity}}\n                  class='financials-table__heading-link'\n                  title='Click to put this column first'\n                >\n                  {{entity.name}}\n                  {{if\n                    (is-array entity.members)\n                    (if entity.consolidation 'total' 'avg')\n                  }}\n                  {{#if entity.includedEntities}}\n                    <br />\n                    ({{entity.includedEntities}}\n                    /\n                    {{entity.members.length}}\n                    entities)\n                  {{/if}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n  \n          <tr class='data-table__subheading-row'>\n            <th></th>\n  \n            {{! template-lint-disable no-unused-block-params }}\n            {{#each this.orderedEntities as |entity|}}\n              {{#if this.monthVisible}}\n                <th class='financials-table__heading'>Month</th>\n              {{/if}}\n  \n              {{#if this.ytdVisible}}\n                <th class='financials-table__heading'>YTD</th>\n              {{/if}}\n  \n              {{#if (not (or this.monthVisible this.ytdVisible))}}\n                <th class='financials-table__heading'>–</th>\n              {{/if}}\n            {{/each}}\n          </tr>\n        </thead>\n        <tbody>\n          <FinancialsTableSection\n            @canSeeBreakdown={{this.canSeeBreakdown}}\n            @toggleShowChildren={{action 'toggleShowChildren'}}\n            @toggleShowBreakdown={{action 'toggleShowBreakdown'}}\n            @accounts={{this.profitAndLoss}}\n            @showMonth={{this.monthVisible}}\n            @showYTD={{this.ytdVisible}}\n            @totalsRow='Net Profit'\n            @hasGroups={{true}}\n          />\n        </tbody>\n      </table>\n  \n      <div class='footnote'>\n        <p>Click on any table column heading to put that column first.</p>\n        <p>* Numbers in this row will be sum of its subsections for a single\n          branch but not necessarily for groups. More information can be found on\n          the\n          <a\n            href='http://support.otbs.co.nz/hc/en-us/sections/203085588'\n            class='link'\n          >support site.</a></p>\n      </div>\n    {{else}}\n      <div class='error-page error-page--no-data'>\n        <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n        <h3 class='h3 error-page__title'>There are no groups accessible.</h3>\n        <p>If you believe you have received this message in error, please check\n          with your system administrator.</p>\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"Qn0F0TpQ\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Profit and loss\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Profit and Loss\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBreakdown\\\"]],[[[1,\\\"    \\\"],[8,[39,14],null,[[\\\"@selectedMetric\\\",\\\"@selectedGroup\\\",\\\"@periodType\\\",\\\"@overlay-class\\\",\\\"@clickOutsideToClose\\\",\\\"@translucentOverlay\\\",\\\"@close\\\",\\\"@accountType\\\"],[[30,0,[\\\"selectedMetric\\\"]],[30,0,[\\\"selectedGroup\\\"]],[30,0,[\\\"selectedPeriodType\\\"]],\\\"breakdown\\\",true,true,[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],\\\"balances\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"entities\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"financials-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"control-wrapper\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"monthVisible\\\"]]]],null],[1,\\\"\\\\n          Show month values\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"ytdVisible\\\"]]]],null],[1,\\\"\\\\n          Show YTD values\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Profit and Loss\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"colSpan\\\"]]],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n              \\\"],[11,3],[24,0,\\\"financials-table__heading-link\\\"],[24,\\\"title\\\",\\\"Click to put this column first\\\"],[4,[38,12],[[30,0],\\\"shiftFarLeft\\\",[30,1]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[1,[52,[28,[37,24],[[30,1,[\\\"members\\\"]]],null],[52,[30,1,[\\\"consolidation\\\"]],\\\"total\\\",\\\"avg\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"includedEntities\\\"]],[[[1,\\\"                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  (\\\"],[1,[30,1,[\\\"includedEntities\\\"]]],[1,\\\"\\\\n                  /\\\\n                  \\\"],[1,[30,1,[\\\"members\\\",\\\"length\\\"]]],[1,\\\"\\\\n                  entities)\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,26],[[28,[37,7],[[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]]],null]],null],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"–\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,28],null,[[\\\"@canSeeBreakdown\\\",\\\"@toggleShowChildren\\\",\\\"@toggleShowBreakdown\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@totalsRow\\\",\\\"@hasGroups\\\"],[[30,0,[\\\"canSeeBreakdown\\\"]],[28,[37,12],[[30,0],\\\"toggleShowChildren\\\"],null],[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],[30,0,[\\\"profitAndLoss\\\"]],[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],\\\"Net Profit\\\",true]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"footnote\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"Click on any table column heading to put that column first.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"* Numbers in this row will be sum of its subsections for a single\\\\n        branch but not necessarily for groups. More information can be found on\\\\n        the\\\\n        \\\"],[10,3],[14,6,\\\"http://support.otbs.co.nz/hc/en-us/sections/203085588\\\"],[14,0,\\\"link\\\"],[12],[1,\\\"support site.\\\"],[13],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,31],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"There are no groups accessible.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n        with your system administrator.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"entity\\\",\\\"entity\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"metric-breakdown\\\",\\\"label\\\",\\\"input\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"is-array\\\",\\\"br\\\",\\\"not\\\",\\\"tbody\\\",\\\"financials-table-section\\\",\\\"p\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/profit-and-loss.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/imports-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"e5Wr5pst\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/imports-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/imports\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Data availability'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>Data Availability</h1>\n      </header>\n    {{/if}}\n  \n    <table class='data-table import-timeline-table'>\n      <thead>\n        <tr>\n          <th></th>\n  \n          {{#each this.model.periods as |period index|}}\n            {{#if (or (eq index 0) (eq (moment-format period.date 'M') '1'))}}\n              <th\n                colspan={{math 13 '-' (moment-format period.date 'M')}}\n              >{{moment-format period.date 'YYYY'}}</th>\n            {{/if}}\n          {{/each}}\n        </tr>\n        <tr>\n          <th></th>\n  \n          {{#each this.model.periods as |period|}}\n            <th class='text-center'>{{moment-format period.date 'MM'}}</th>\n          {{/each}}\n        </tr>\n      </thead>\n      <tbody>\n        {{#each this.model.entities as |branch|}}\n          <tr>\n            <td>{{branch.name}}</td>\n  \n            {{#each branch.periods as |period|}}\n              <td class={{if period 'present'}}></td>\n            {{/each}}\n          </tr>\n        {{/each}}\n      </tbody>\n      <tfoot>\n        <tr class='data-table__total-row'>\n          <td>Total (out of {{this.model.entities.length}})</td>\n  \n          {{#each this.model.periods as |period|}}\n            <td>{{period.count}}</td>\n          {{/each}}\n        </tr>\n      </tfoot>\n    </table>\n  </article>\n  */\n  {\n    \"id\": \"V0WVpuPC\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Data availability\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Data Availability\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table import-timeline-table\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"periods\\\"]]],null]],null],null,[[[41,[28,[37,14],[[28,[37,15],[[30,2],0],null],[28,[37,15],[[28,[37,16],[[30,1,[\\\"date\\\"]],\\\"M\\\"],null],\\\"1\\\"],null]],null],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[28,[37,17],[13,\\\"-\\\",[28,[37,16],[[30,1,[\\\"date\\\"]],\\\"M\\\"],null]],null]],[12],[1,[28,[35,16],[[30,1,[\\\"date\\\"]],\\\"YYYY\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1,2]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"periods\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,16],[[30,3,[\\\"date\\\"]],\\\"MM\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"entities\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,[30,4,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,4,[\\\"periods\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"td\\\"],[15,0,[52,[30,5],\\\"present\\\"]],[12],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__total-row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Total (out of \\\"],[1,[30,0,[\\\"model\\\",\\\"entities\\\",\\\"length\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"periods\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[1,[30,6,[\\\"count\\\"]]],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"period\\\",\\\"index\\\",\\\"period\\\",\\\"branch\\\",\\\"period\\\",\\\"period\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"or\\\",\\\"eq\\\",\\\"moment-format\\\",\\\"math\\\",\\\"tbody\\\",\\\"td\\\",\\\"tfoot\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/imports.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/kpis-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"kfdiUxil\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/kpis-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/kpis\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"AFDDhDvm\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/kpis.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/kpis/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title='Key performance indicators'\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n          <div class='data-withheld-notice-container'>\n            {{#if this.model.groupsRedacted}}\n              <GroupsRedactedNotice />\n            {{/if}}\n  \n            {{#if this.model.ownDataWithheld}}\n              <DataWithheldNotice />\n            {{/if}}\n          </div>\n        {{/if}}\n  \n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n        <h1 class='h1'>Key Performance Indicators</h1>\n  \n      </header>\n    {{else}}\n  \n      {{#if this.model.groupsRedacted}}\n        <p class='h4'>\n          Group data has not yet been released for this period\n        </p>\n      {{/if}}\n    {{/if}}\n  \n    {{#if (get this.model.kpis '0.data.length')}}\n      <div class='financials-controls'>\n        <label>\n          <Input @type='checkbox' @checked={{this.monthVisible}} />\n          Show month values\n        </label>\n  \n        <label>\n          <Input @type='checkbox' @checked={{this.ytdVisible}} />\n          Show YTD values\n        </label>\n      </div>\n  \n      <table class='data-table financials-table'>\n        <thead>\n          <tr>\n            <th>KPI</th>\n            {{#each this.orderedEntities as |entity|}}\n              <th colspan={{this.colSpan}} class='financials-table__heading'>\n                {{! template-lint-disable link-href-attributes }}\n                <a\n                  {{action 'shiftFarLeft' entity}}\n                  class='financials-table__heading-link'\n                  title='Click to put this column first'\n                >\n                  {{entity.name}}\n                  {{if\n                    (is-array entity.members)\n                    (if entity.consolidation 'total' 'avg')\n                  }}\n                  {{#if entity.includedEntities}}\n                    <br />\n                    ({{entity.includedEntities}}\n                    /\n                    {{entity.members.length}}\n                    entities)\n                  {{/if}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n  \n          <tr class='data-table__subheading-row'>\n            <th>{{this.periodString}}</th>\n            {{! template-lint-disable no-unused-block-params }}\n            {{#each this.orderedEntities as |_entity|}}\n              {{#if this.monthVisible}}\n                <th class='financials-table__heading'>Month</th>\n              {{/if}}\n  \n              {{#if this.ytdVisible}}\n                <th class='financials-table__heading'>YTD</th>\n              {{/if}}\n  \n              {{#if (not (or this.monthVisible this.ytdVisible))}}\n                <th class='financials-table__heading'>–</th>\n              {{/if}}\n            {{/each}}\n          </tr>\n        </thead>\n        <tbody>\n          {{#each this.kpisSortedByEntity as |kpi|}}\n            <tr>\n              {{! KPI name column }}\n              <td>\n                {{#if this.linkToDetail}}\n                  <LinkTo\n                    @route='entity.financials.reports.kpis.kpi'\n                    @model={{kpi.slug}}\n                    class='link'\n                  >{{kpi.name}}</LinkTo>\n                {{else}}\n                  {{kpi.name}}\n                {{/if}}\n              </td>\n  \n              {{! Data columns }}\n              {{#each kpi.data as |data index|}}\n                {{#if this.monthVisible}}\n                  {{#if (and (not-eq index 0) this.canSeeBreakdown)}}\n                    <td\n                      {{action 'toggleShowBreakdown' kpi data.entity 'month'}}\n                      class='text-right financials-table__inspectable-cell'\n                    >\n                      {{number-format\n                        data.month\n                        style=(get this.formattedStyle kpi.format)\n                        maximumFractionDigits=2\n                        dashZero=true\n                      }}\n                    </td>\n                  {{else}}\n                    <td class='text-right'>\n                      {{number-format\n                        data.month\n                        style=(get this.formattedStyle kpi.format)\n                        maximumFractionDigits=2\n                        dashZero=true\n                      }}\n                    </td>\n                  {{/if}}\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  {{#if (and (not-eq index 0) this.canSeeBreakdown)}}\n                    <td\n                      {{action 'toggleShowBreakdown' kpi data.entity 'ytd'}}\n                      class='text-right financials-table__inspectable-cell'\n                    >\n                      {{number-format\n                        data.ytd\n                        style=(get this.formattedStyle kpi.format)\n                        maximumFractionDigits=2\n                        dashZero=true\n                      }}\n                    </td>\n                  {{else}}\n                    <td class='text-right'>\n                      {{number-format\n                        data.ytd\n                        style=(get this.formattedStyle kpi.format)\n                        maximumFractionDigits=2\n                        dashZero=true\n                      }}\n                    </td>\n                  {{/if}}\n                {{/if}}\n              {{/each}}\n            </tr>\n          {{/each}}\n  \n        </tbody>\n  \n      </table>\n    {{else}}\n      <div class='text-center error no-data'>\n        <h2><FaIcon @icon='info-circle' /></h2>\n        <h3>There are no reports accessible.</h3>\n        <p>If you believe you have received this message in error, please check\n          with your system administrator.</p>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.showBreakdown}}\n    <MetricBreakdown\n      @selectedMetric={{this.selectedMetric}}\n      @selectedGroup={{this.selectedGroup}}\n      @periodType={{this.selectedPeriodType}}\n      @clickOutsideToClose={{true}}\n      @translucentOverlay={{true}}\n      @close={{action 'toggleShowBreakdown'}}\n      @accountType='kpis'\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"TnvEg80Q\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Key performance indicators\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"            \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"            \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Key Performance Indicators\\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"      \\\"],[10,2],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n        Group data has not yet been released for this period\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"model\\\",\\\"kpis\\\"]],\\\"0.data.length\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"financials-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"monthVisible\\\"]]]],null],[1,\\\"\\\\n        Show month values\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"ytdVisible\\\"]]]],null],[1,\\\"\\\\n        Show YTD values\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"KPI\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"colSpan\\\"]]],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"              \\\"],[11,3],[24,0,\\\"financials-table__heading-link\\\"],[24,\\\"title\\\",\\\"Click to put this column first\\\"],[4,[38,12],[[30,0],\\\"shiftFarLeft\\\",[30,1]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[1,[52,[28,[37,25],[[30,1,[\\\"members\\\"]]],null],[52,[30,1,[\\\"consolidation\\\"]],\\\"total\\\",\\\"avg\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"includedEntities\\\"]],[[[1,\\\"                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  (\\\"],[1,[30,1,[\\\"includedEntities\\\"]]],[1,\\\"\\\\n                  /\\\\n                  \\\"],[1,[30,1,[\\\"members\\\",\\\"length\\\"]]],[1,\\\"\\\\n                  entities)\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,[30,0,[\\\"periodString\\\"]]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[[28,[37,7],[[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]]],null]],null],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"–\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"kpisSortedByEntity\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"linkToDetail\\\"]],[[[1,\\\"                \\\"],[8,[39,30],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.reports.kpis.kpi\\\",[30,3,[\\\"slug\\\"]]]],[[\\\"default\\\"],[[[[1,[30,3,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,3,[\\\"data\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[41,[28,[37,31],[[28,[37,32],[[30,5],0],null],[30,0,[\\\"canSeeBreakdown\\\"]]],null],[[[1,\\\"                  \\\"],[11,\\\"td\\\"],[24,0,\\\"text-right financials-table__inspectable-cell\\\"],[4,[38,12],[[30,0],\\\"toggleShowBreakdown\\\",[30,3],[30,4,[\\\"entity\\\"]],\\\"month\\\"],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[30,4,[\\\"month\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,3,[\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[30,4,[\\\"month\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,3,[\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[41,[28,[37,31],[[28,[37,32],[[30,5],0],null],[30,0,[\\\"canSeeBreakdown\\\"]]],null],[[[1,\\\"                  \\\"],[11,\\\"td\\\"],[24,0,\\\"text-right financials-table__inspectable-cell\\\"],[4,[38,12],[[30,0],\\\"toggleShowBreakdown\\\",[30,3],[30,4,[\\\"entity\\\"]],\\\"ytd\\\"],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[30,4,[\\\"ytd\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,3,[\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[30,4,[\\\"ytd\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,3,[\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[4,5]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"text-center error no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[12],[8,[39,35],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,\\\"There are no reports accessible.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n        with your system administrator.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showBreakdown\\\"]],[[[1,\\\"  \\\"],[8,[39,37],null,[[\\\"@selectedMetric\\\",\\\"@selectedGroup\\\",\\\"@periodType\\\",\\\"@clickOutsideToClose\\\",\\\"@translucentOverlay\\\",\\\"@close\\\",\\\"@accountType\\\"],[[30,0,[\\\"selectedMetric\\\"]],[30,0,[\\\"selectedGroup\\\"]],[30,0,[\\\"selectedPeriodType\\\"]],true,true,[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],\\\"kpis\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entity\\\",\\\"_entity\\\",\\\"kpi\\\",\\\"data\\\",\\\"index\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"p\\\",\\\"get\\\",\\\"label\\\",\\\"input\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"is-array\\\",\\\"br\\\",\\\"not\\\",\\\"tbody\\\",\\\"td\\\",\\\"link-to\\\",\\\"and\\\",\\\"not-eq\\\",\\\"number-format\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\",\\\"metric-breakdown\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/kpis/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/kpis/kpi\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      <RadioSlider\n        @options={{this.periodTypeOptions}}\n        @selected={{this.periodType}}\n        @class='float-end'\n      />\n      <h1 class='h1'>KPI Detail</h1>\n    </header>\n  \n    <section class='master-detail kpi-page'>\n      <aside class='master-detail__master'>\n        <ul>\n          {{#each this.model.kpiMeta as |kpi|}}\n            <li>\n              <LinkTo\n                @route='entity.financials.reports.kpis.kpi'\n                @model={{kpi.id}}\n              >\n                {{kpi.name}}\n              </LinkTo>\n            </li>\n          {{/each}}\n        </ul>\n      </aside>\n  \n      <article\n        class='master-detail__detail kpi-page__detail\n          {{if this.noData \"no-data error-page kpi-page--error\"}}'\n      >\n        {{#unless this.noData}}\n          {{#let this.currentStats as |stats|}}\n            <section class='stats'>\n              {{#if stats.rankable}}\n                <div class='metric ranking'>\n                  <div class='number'>\n                    {{#if stats.rankings}}\n                      {{get stats.rankings '0.rank'}}<sup>\n                        {{ordinal-for stats.rankings '0.rank'}}</sup>\n                    {{else}}\n                      –\n                    {{/if}}\n                  </div>\n                  <div class='label'>Ranking out of\n                    {{get stats.rankings '0.outOf'}}\n                    entities</div>\n                </div>\n                <div class='metric'>\n                  <div class='number'>{{if\n                      stats.best\n                      (number-format\n                        stats.best\n                        style=(get this.formattedStyle this.model.kpi.meta.format)\n                        maximumFractionDigits=2\n                        dashZero=false\n                      )\n                      '–'\n                    }}</div>\n                  <div class='label'>National best for\n                    {{moment-format this.period 'MM/YYYY' 'YYYY-MM'}}</div>\n                </div>\n              {{/if}}\n  \n              <div class='metric'>\n                <div class='number'>{{if\n                    stats.mean\n                    (number-format\n                      stats.mean\n                      style=(get this.formattedStyle this.model.kpi.meta.format)\n                      maximumFractionDigits=2\n                      dashZero=false\n                    )\n                    '–'\n                  }}</div>\n                <div class='label'>National average for\n                  {{moment-format this.period 'MM/YYYY' 'YYYY-MM'}}</div>\n              </div>\n  \n              <div class='metric'>\n                <div class='number'>\n                  {{#if\n                    (or\n                      (get stats.rankings '0.value')\n                      (eq (get stats.rankings '0.value') 0)\n                    )\n                  }}\n                    {{number-format\n                      stats.rankings\n                      '0.value'\n                      style=(get this.formattedStyle this.model.kpi.meta.format)\n                      maximumFractionDigits=2\n                      dashZero=false\n                    }}\n                  {{else}}\n                    –\n                  {{/if}}\n                </div>\n                <div class='label'>{{this.sessionData.branch.name}}\n                  for\n                  {{moment-format\n                    this.sessionData.period\n                    'MM/YYYY'\n                    'YYYY-MM'\n                  }}</div>\n              </div>\n            </section>\n          {{/let}}\n  \n          <section class='kpi-chart'>\n            <Charts::LineChart\n              @metrics={{this.model.kpi}}\n              @series={{this.model.series}}\n              @period={{this.chartPeriod}}\n              @reuse={{false}}\n            />\n          </section>\n  \n          {{#if this.selectedPeriodData}}\n            {{#let\n              (get this.selectedPeriodData.periodTypes this.periodType)\n              as |calculation|\n            }}\n              <section class='breakdown'>\n                <CalculationBreakdown\n                  @calc={{this.model.kpi.meta.calculationSteps}}\n                  @inputs={{calculation.inputs}}\n                  @result={{calculation.value}}\n                  @format={{get this.formattedStyle this.model.kpi.meta.format}}\n                />\n              </section>\n            {{/let}}\n          {{else}}\n            <section class='breakdown breakdown--no-data'>\n              No calculation data for current period\n            </section>\n          {{/if}}\n  \n          {{#if\n            (or this.model.kpi.meta.description this.model.kpi.meta.strategies)\n          }}\n            <section class='kpi-information'>\n              {{#if this.model.kpi.meta.description}}\n                <div>\n                  <h2>Explanation</h2>\n                  <MarkdownToHtml @markdown={{this.model.kpi.meta.description}} />\n                </div>\n              {{/if}}\n  \n              {{#if this.model.kpi.meta.strategies}}\n                <div>\n                  <h2>Strategies</h2>\n                  <MarkdownToHtml @markdown={{this.model.kpi.meta.strategies}} />\n                </div>\n              {{/if}}\n            </section>\n          {{/if}}\n        {{else}}\n          <p class='error-page__title'>There is no data to display for this\n            period.</p>\n        {{/unless}}\n      </article>\n    </section>\n  </article>\n  */\n  {\n    \"id\": \"d8BWObul\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@class\\\"],[[30,0,[\\\"periodTypeOptions\\\"]],[30,0,[\\\"periodType\\\"]],\\\"float-end\\\"]],null],[1,\\\"\\\\n    \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"KPI Detail\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"master-detail kpi-page\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"aside\\\"],[14,0,\\\"master-detail__master\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"model\\\",\\\"kpiMeta\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,10],null,[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.reports.kpis.kpi\\\",[30,1,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"article\\\"],[15,0,[29,[\\\"master-detail__detail kpi-page__detail\\\\n        \\\",[52,[30,0,[\\\"noData\\\"]],\\\"no-data error-page kpi-page--error\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"noData\\\"]]],[[[44,[[30,0,[\\\"currentStats\\\"]]],[[[1,\\\"          \\\"],[10,\\\"section\\\"],[14,0,\\\"stats\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"rankable\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"metric ranking\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"rankings\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,15],[[30,2,[\\\"rankings\\\"]],\\\"0.rank\\\"],null]],[10,\\\"sup\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,17],[[30,2,[\\\"rankings\\\"]],\\\"0.rank\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    –\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"Ranking out of\\\\n                  \\\"],[1,[28,[35,15],[[30,2,[\\\"rankings\\\"]],\\\"0.outOf\\\"],null]],[1,\\\"\\\\n                  entities\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,[52,[30,2,[\\\"best\\\"]],[28,[37,18],[[30,2,[\\\"best\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"format\\\"]]],null],2,false]]],\\\"–\\\"]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"National best for\\\\n                  \\\"],[1,[28,[35,19],[[30,0,[\\\"period\\\"]],\\\"MM/YYYY\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,[52,[30,2,[\\\"mean\\\"]],[28,[37,18],[[30,2,[\\\"mean\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"format\\\"]]],null],2,false]]],\\\"–\\\"]],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"National average for\\\\n                \\\"],[1,[28,[35,19],[[30,0,[\\\"period\\\"]],\\\"MM/YYYY\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[28,[37,15],[[30,2,[\\\"rankings\\\"]],\\\"0.value\\\"],null],[28,[37,21],[[28,[37,15],[[30,2,[\\\"rankings\\\"]],\\\"0.value\\\"],null],0],null]],null],[[[1,\\\"                  \\\"],[1,[28,[35,18],[[30,2,[\\\"rankings\\\"]],\\\"0.value\\\"],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"format\\\"]]],null],2,false]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  –\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"branch\\\",\\\"name\\\"]]],[1,\\\"\\\\n                for\\\\n                \\\"],[1,[28,[35,19],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MM/YYYY\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"\\\\n        \\\"],[10,\\\"section\\\"],[14,0,\\\"kpi-chart\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@metrics\\\",\\\"@series\\\",\\\"@period\\\",\\\"@reuse\\\"],[[30,0,[\\\"model\\\",\\\"kpi\\\"]],[30,0,[\\\"model\\\",\\\"series\\\"]],[30,0,[\\\"chartPeriod\\\"]],false]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedPeriodData\\\"]],[[[44,[[28,[37,15],[[30,0,[\\\"selectedPeriodData\\\",\\\"periodTypes\\\"]],[30,0,[\\\"periodType\\\"]]],null]],[[[1,\\\"            \\\"],[10,\\\"section\\\"],[14,0,\\\"breakdown\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,23],null,[[\\\"@calc\\\",\\\"@inputs\\\",\\\"@result\\\",\\\"@format\\\"],[[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"calculationSteps\\\"]],[30,3,[\\\"inputs\\\"]],[30,3,[\\\"value\\\"]],[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"format\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]]]],[]],[[[1,\\\"          \\\"],[10,\\\"section\\\"],[14,0,\\\"breakdown breakdown--no-data\\\"],[12],[1,\\\"\\\\n            No calculation data for current period\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"description\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"strategies\\\"]]],null],[[[1,\\\"          \\\"],[10,\\\"section\\\"],[14,0,\\\"kpi-information\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"description\\\"]],[[[1,\\\"              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Explanation\\\"],[13],[1,\\\"\\\\n                \\\"],[8,[39,25],null,[[\\\"@markdown\\\"],[[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"description\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"strategies\\\"]],[[[1,\\\"              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Strategies\\\"],[13],[1,\\\"\\\\n                \\\"],[8,[39,25],null,[[\\\"@markdown\\\"],[[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"strategies\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"error-page__title\\\"],[12],[1,\\\"There is no data to display for this\\\\n          period.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"kpi\\\",\\\"stats\\\",\\\"calculation\\\"],false,[\\\"article\\\",\\\"header\\\",\\\"radio-slider\\\",\\\"h1\\\",\\\"section\\\",\\\"aside\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"li\\\",\\\"link-to\\\",\\\"if\\\",\\\"unless\\\",\\\"let\\\",\\\"div\\\",\\\"get\\\",\\\"sup\\\",\\\"ordinal-for\\\",\\\"number-format\\\",\\\"moment-format\\\",\\\"or\\\",\\\"eq\\\",\\\"charts/line-chart\\\",\\\"calculation-breakdown\\\",\\\"h2\\\",\\\"markdown-to-html\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/kpis/kpi.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/module-dashboard\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (gt this.sessionData.entities.length 1)}}\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'module-navigation/module-dashboard'}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  {{/if}}\n  <main class='page__container'>\n    <div class='dashboard-container'>\n      <div class='dashboard-section__modules'>\n        {{#if this.modules.allowedModules}}\n          <div class='dashboard-section__modules-container'>\n            <div class='dashboard-section__modules-row'>\n              {{#each this.modules.allowedModules as |module|}}\n                <span role='button' {{on 'click' (fn this.goToModule module)}}>\n                  <DashboardItem::Module @module={{module}} />\n                </span>\n              {{/each}}\n            </div>\n          </div>\n        {{else}}\n          <h2 class='h2'>\n            Your entity doesn't have any modules yet\n          </h2>\n        {{/if}}\n      </div>\n    </div>\n  </main>\n  */\n  {\n    \"id\": \"S+DbdrNd\",\n    \"block\": \"[[[41,[28,[37,1],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/module-dashboard\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"main\\\"],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"dashboard-container\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"dashboard-section__modules\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"modules\\\",\\\"allowedModules\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"dashboard-section__modules-container\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"dashboard-section__modules-row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"goToModule\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@module\\\"],[[30,1]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"\\\\n          Your entity doesn't have any modules yet\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"module\\\"],false,[\\\"if\\\",\\\"gt\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"main\\\",\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"span\\\",\\\"on\\\",\\\"fn\\\",\\\"dashboard-item/module\\\",\\\"h2\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/module-dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <div class='page__container'>\n      <ModuleNavigation::Settings />\n  \n      <main class='page__container-content gap-zendesk-support-widget'>\n        {{outlet}}\n      </main>\n    </div>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'module-navigation/settings'}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <main class='page__container-content'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"3aGiyhar\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,null,null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,6],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/settings\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,7],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,6],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"div\\\",\\\"module-navigation/settings\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/auto-mapping-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"afOjJVir\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/auto-mapping-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/auto-mapping\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Auto mapping')\n      }}\n    />\n  {{/unless}}\n  <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Auto mapping'}}</h2>\n      {{/if}}\n    </header>\n    <form class='block-module width--large'>\n      <div class='block-module__header'>\n        <div>\n          <LoadingButton\n            @isLoading={{this.isSaving}}\n            @action={{action 'save'}}\n            @class='button float-end'\n            @buttonText={{t 'common.Save'}}\n            data-test-save-button\n          />\n          <h2 class='h2'>{{t\n              'entity.settings.auto-mapping.Bill Auto Mapping Directives'\n            }}</h2>\n        </div>\n  \n        <p>\n          {{t\n            'entity.settings.auto-mapping.theDirectivesBelowWillBeUsedWhenAnBillIsImported'\n          }}\n          {{! TODO make sure there is an auto-map button on the invoices }}\n        </p>\n        <p>\n          {{t\n            'entity.settings.auto-mapping.billReferenceDirectivesTakePrecedenceOverMerchantAccountOnes'\n          }}\n        </p>\n      </div>\n  \n      <div class='{{if this.showInvalid \"show-invalid\"}}'>\n        <div class='float-end'>\n          <span>{{t 'entity.settings.auto-mapping.Directive Type'}}:</span>\n          <RadioSlider\n            @options={{this.displayOptions}}\n            @selected={{this.selectedDisplayOption}}\n            @class='button--spaced'\n            data-test-toggle-directive-type\n          />\n        </div>\n  \n        {{#if (eq this.selectedDisplayOption 'reference')}}\n          {{! Reference type directives }}\n          <div>\n            <span class='h3 no-wrap'>{{t\n                'entity.settings.auto-mapping.Bill Reference Directives'\n              }}</span>\n            <button\n              class='text-button text-button--add button--spaced'\n              data-test-add-reference-directive=''\n              type='submit'\n              {{action 'addDirective' 'reference'}}\n            >{{t 'common.Add'}}</button>\n          </div>\n  \n          <br />\n  \n          <div class='auto-mapping__directive-section'>\n            {{#unless\n              (or\n                this.openReferenceDirectives.length\n                this.closedReferenceDirectives.length\n              )\n            }}\n              {{! If there are no reference directives, then show a message explainin what they are }}\n              <span data-test-no-reference-directives-message=''>\n                <p>{{t\n                    'entity.settings.auto-mapping.billReferenceDirectivesCauseNewBillsToBeAutoMappedToAProjectIfTheirReferenceMatchesSomeTextYouProvide'\n                  }}</p>\n                <p>{{t\n                    'entity.settings.auto-mapping.youDonNotHaveAnyBillReferenceDirectivesYet'\n                  }}</p>\n              </span>\n            {{else}}\n              {{! Show the list of open reference directives }}\n              {{#each this.openReferenceDirectives as |directive|}}\n                <br />\n                <AutoMapping::DirectivePm\n                  @class={{if\n                    (get this.duplicates directive.lowerValue)\n                    'invalid'\n                  }}\n                  @directive={{directive}}\n                  @projects={{this.model.projects}}\n                  @delete={{action this.set 'readyToDelete' directive}}\n                  data-test-directive='reference'\n                />\n              {{/each}}\n  \n              {{! Show a title for directives with projects that are not open }}\n              {{#if this.closedReferenceDirectives.length}}\n                <div class='h4' data-test-project-open-separator=''>\n                  {{! Show a separating line if there are directives with open projects to separate from }}\n                  {{#if this.openReferenceDirectives.length}}<br /><hr />{{/if}}\n                  {{t\n                    'entity.settings.auto-mapping.billReferenceDirectivesForClosedProjects'\n                  }}\n                  <br />\n                </div>\n              {{/if}}\n  \n              {{! Show the list of closed reference directives }}\n              {{#each this.closedReferenceDirectives as |directive|}}\n                <br />\n                <AutoMapping::DirectivePm\n                  @class={{if\n                    (get this.duplicates directive.lowerValue)\n                    'invalid'\n                  }}\n                  @directive={{directive}}\n                  @projects={{this.model.projects}}\n                  @delete={{action this.set 'readyToDelete' directive}}\n                  data-test-directive='reference'\n                />\n              {{/each}}\n            {{/unless}}\n          </div>\n  \n        {{else if (eq this.selectedDisplayOption 'account')}}\n          {{! Account type directives }}\n          <div>\n            <span class='h3'>{{t\n                'entity.settings.auto-mapping.Merchant Account Directives'\n              }}</span>\n            <button\n              class='text-button text-button--add button--spaced'\n              data-test-add-account-directive=''\n              type='submit'\n              {{action 'addDirective' 'account'}}\n            >{{t 'common.Add'}}</button>\n          </div>\n  \n          <br />\n  \n          <div class='auto-mapping__directive-section'>\n            {{#unless this.model.merchantAccounts.length}}\n              {{! Only show a message if there are no merchant accounts to pick from }}\n              <p>{{t\n                  'entity.settings.auto-mapping.weHavenNotSeenAnySuitableMerchantAccountsOnYourBillsYet'\n                }}\n                {{t\n                  'entity.settings.auto-mapping.thisSectionWillBecomeAvailableOnceWeDo'\n                }}\n                {{t\n                  'entity.settings.auto-mapping.theAccountsMustBeProjectSpecificSubAccounts'\n                }}</p>\n            {{else}}\n  \n              {{#unless this.accountDirectives.length}}\n                {{! If there are no account directives, show a message explaining them }}\n                <span data-test-no-account-directives-message=''>\n                  <p>{{t\n                      'entity.settings.auto-mapping.merchantAccountDirectiveCauseNewBillsToBeAutoMappedToAProjectIfTheyBilledToASpecificMerchantAccount'\n                    }}</p>\n                  <p>{{t\n                      'entity.settings.auto-mapping.youDonNotHaveAnyMerchantAccountDirectivesYet'\n                    }}</p>\n                </span>\n              {{else}}\n                {{! Show a list of account directives for open projects }}\n                {{#each this.openAccountDirectives as |directive|}}\n                  <br />\n                  <AutoMapping::DirectivePm\n                    @directive={{directive}}\n                    @projects={{this.model.projects}}\n                    @allAccounts={{this.model.merchantAccounts}}\n                    @unusedAccounts={{this.unusedAccounts}}\n                    @showInvalid={{this.showInvalid}}\n                    @delete={{action this.set 'readyToDelete' directive}}\n                    data-test-directive='account'\n                  />\n                {{/each}}\n  \n                {{! Show a title for directives with projects that are not open }}\n                {{#if this.closedAccountDirectives.length}}\n                  <div class='h4' data-test-project-open-separator=''>\n                    {{! Show a separating line if there are directives with open projects to separate from }}\n                    {{#if this.openAccountDirectives.length}}<br /><hr />{{/if}}\n                    {{t\n                      'entity.settings.auto-mapping.merchantAccountDirectivesForClosedProjects'\n                    }}\n                    <br />\n                  </div>\n  \n                  {{! Show a list of account directives for closed projects }}\n                  {{#each this.closedAccountDirectives as |directive|}}\n                    <br />\n                    <AutoMapping::DirectivePm\n                      @directive={{directive}}\n                      @projects={{this.model.projects}}\n                      @allAccounts={{this.model.merchantAccounts}}\n                      @unusedAccounts={{this.unusedAccounts}}\n                      @showInvalid={{this.showInvalid}}\n                      @delete={{action this.set 'readyToDelete' directive}}\n                      data-test-directive='account'\n                    />\n                  {{/each}}\n                {{/if}}\n              {{/unless}}\n            {{/unless}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @isLoading={{this.isSaving}}\n          @action={{action 'save'}}\n          @class='button float-end'\n          @buttonText={{t 'common.Save'}}\n          data-test-save-button\n        />\n      </footer>\n    </form>\n  \n    {{#if this.readyToDelete}}\n      <ModalDialog\n        @overlayClass='modal'\n        @translucentOverlay={{true}}\n        @containerClass='block-module'\n        @onClose={{action this.set 'readyToDelete' null}}\n      >\n        <p>{{t\n            'entity.settings.auto-mapping.areYouSureYouWantToDeleteThisDirective'\n          }}\n          {{t 'common.This action cannot be undone'}}</p>\n        <LoadingButton\n          @class='float-end button button--spaced button--delete'\n          @action={{action 'deleteDirective' this.readyToDelete}}\n          @buttonText={{t 'common.Delete'}}\n          data-test-confirm-delete-button\n        />\n        <button\n          class='float-end button button--spaced button--plain'\n          type='button'\n          {{action this.set 'readyToDelete' null}}\n        >{{t 'common.Cancel'}}</button>\n      </ModalDialog>\n    {{/if}}\n  \n  </article>\n  */\n  {\n    \"id\": \"vf4NQug+\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Auto mapping\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Auto mapping\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"form\\\"],[14,0,\\\"block-module width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],[[24,\\\"data-test-save-button\\\",\\\"\\\"]],[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@class\\\",\\\"@buttonText\\\"],[[30,0,[\\\"isSaving\\\"]],[28,[37,12],[[30,0],\\\"save\\\"],null],\\\"button float-end\\\",[28,[37,4],[\\\"common.Save\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.Bill Auto Mapping Directives\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.theDirectivesBelowWillBeUsedWhenAnBillIsImported\\\"],null]],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.billReferenceDirectivesTakePrecedenceOverMerchantAccountOnes\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,0,[29,[[52,[30,0,[\\\"showInvalid\\\"]],\\\"show-invalid\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.Directive Type\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,15],[[24,\\\"data-test-toggle-directive-type\\\",\\\"\\\"]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@class\\\"],[[30,0,[\\\"displayOptions\\\"]],[30,0,[\\\"selectedDisplayOption\\\"]],\\\"button--spaced\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,16],[[30,0,[\\\"selectedDisplayOption\\\"]],\\\"reference\\\"],null],[[[1,\\\"        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"h3 no-wrap\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.Bill Reference Directives\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--add button--spaced\\\"],[24,\\\"data-test-add-reference-directive\\\",\\\"\\\"],[24,4,\\\"submit\\\"],[4,[38,12],[[30,0],\\\"addDirective\\\",\\\"reference\\\"],null],[12],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"auto-mapping__directive-section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,19],[[30,0,[\\\"openReferenceDirectives\\\",\\\"length\\\"]],[30,0,[\\\"closedReferenceDirectives\\\",\\\"length\\\"]]],null]],[[[1,\\\"            \\\"],[10,1],[14,\\\"data-test-no-reference-directives-message\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.billReferenceDirectivesCauseNewBillsToBeAutoMappedToAProjectIfTheirReferenceMatchesSomeTextYouProvide\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.youDonNotHaveAnyBillReferenceDirectivesYet\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,21],[[28,[37,21],[[30,0,[\\\"openReferenceDirectives\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[8,[39,22],[[24,\\\"data-test-directive\\\",\\\"reference\\\"]],[[\\\"@class\\\",\\\"@directive\\\",\\\"@projects\\\",\\\"@delete\\\"],[[52,[28,[37,23],[[30,0,[\\\"duplicates\\\"]],[30,1,[\\\"lowerValue\\\"]]],null],\\\"invalid\\\"],[30,1],[30,0,[\\\"model\\\",\\\"projects\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",[30,1]],null]]],null],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"closedReferenceDirectives\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"h4\\\"],[14,\\\"data-test-project-open-separator\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                \\\"],[41,[30,0,[\\\"openReferenceDirectives\\\",\\\"length\\\"]],[[[10,\\\"br\\\"],[12],[13],[10,\\\"hr\\\"],[12],[13]],[]],null],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.billReferenceDirectivesForClosedProjects\\\"],null]],[1,\\\"\\\\n                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,21],[[28,[37,21],[[30,0,[\\\"closedReferenceDirectives\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[8,[39,22],[[24,\\\"data-test-directive\\\",\\\"reference\\\"]],[[\\\"@class\\\",\\\"@directive\\\",\\\"@projects\\\",\\\"@delete\\\"],[[52,[28,[37,23],[[30,0,[\\\"duplicates\\\"]],[30,2,[\\\"lowerValue\\\"]]],null],\\\"invalid\\\"],[30,2],[30,0,[\\\"model\\\",\\\"projects\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",[30,2]],null]]],null],[1,\\\"\\\\n\\\"]],[2]],null]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,0,[\\\"selectedDisplayOption\\\"]],\\\"account\\\"],null],[[[1,\\\"        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.Merchant Account Directives\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--add button--spaced\\\"],[24,\\\"data-test-add-account-directive\\\",\\\"\\\"],[24,4,\\\"submit\\\"],[4,[38,12],[[30,0],\\\"addDirective\\\",\\\"account\\\"],null],[12],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"auto-mapping__directive-section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"merchantAccounts\\\",\\\"length\\\"]]],[[[1,\\\"            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.weHavenNotSeenAnySuitableMerchantAccountsOnYourBillsYet\\\"],null]],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.thisSectionWillBecomeAvailableOnceWeDo\\\"],null]],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.theAccountsMustBeProjectSpecificSubAccounts\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"accountDirectives\\\",\\\"length\\\"]]],[[[1,\\\"              \\\"],[10,1],[14,\\\"data-test-no-account-directives-message\\\",\\\"\\\"],[12],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.merchantAccountDirectiveCauseNewBillsToBeAutoMappedToAProjectIfTheyBilledToASpecificMerchantAccount\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.youDonNotHaveAnyMerchantAccountDirectivesYet\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,21],[[28,[37,21],[[30,0,[\\\"openAccountDirectives\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[8,[39,22],[[24,\\\"data-test-directive\\\",\\\"account\\\"]],[[\\\"@directive\\\",\\\"@projects\\\",\\\"@allAccounts\\\",\\\"@unusedAccounts\\\",\\\"@showInvalid\\\",\\\"@delete\\\"],[[30,3],[30,0,[\\\"model\\\",\\\"projects\\\"]],[30,0,[\\\"model\\\",\\\"merchantAccounts\\\"]],[30,0,[\\\"unusedAccounts\\\"]],[30,0,[\\\"showInvalid\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",[30,3]],null]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"closedAccountDirectives\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"h4\\\"],[14,\\\"data-test-project-open-separator\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[41,[30,0,[\\\"openAccountDirectives\\\",\\\"length\\\"]],[[[10,\\\"br\\\"],[12],[13],[10,\\\"hr\\\"],[12],[13]],[]],null],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.merchantAccountDirectivesForClosedProjects\\\"],null]],[1,\\\"\\\\n                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,21],[[28,[37,21],[[30,0,[\\\"closedAccountDirectives\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[8,[39,22],[[24,\\\"data-test-directive\\\",\\\"account\\\"]],[[\\\"@directive\\\",\\\"@projects\\\",\\\"@allAccounts\\\",\\\"@unusedAccounts\\\",\\\"@showInvalid\\\",\\\"@delete\\\"],[[30,4],[30,0,[\\\"model\\\",\\\"projects\\\"]],[30,0,[\\\"model\\\",\\\"merchantAccounts\\\"]],[30,0,[\\\"unusedAccounts\\\"]],[30,0,[\\\"showInvalid\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",[30,4]],null]]],null],[1,\\\"\\\\n\\\"]],[4]],null]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,11],[[24,\\\"data-test-save-button\\\",\\\"\\\"]],[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@class\\\",\\\"@buttonText\\\"],[[30,0,[\\\"isSaving\\\"]],[28,[37,12],[[30,0],\\\"save\\\"],null],\\\"button float-end\\\",[28,[37,4],[\\\"common.Save\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"readyToDelete\\\"]],[[[1,\\\"    \\\"],[8,[39,26],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",null],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.areYouSureYouWantToDeleteThisDirective\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.This action cannot be undone\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,11],[[24,\\\"data-test-confirm-delete-button\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button button--spaced button--delete\\\",[28,[37,12],[[30,0],\\\"deleteDirective\\\",[30,0,[\\\"readyToDelete\\\"]]],null],[28,[37,4],[\\\"common.Delete\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced button--plain\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",null],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"directive\\\",\\\"directive\\\",\\\"directive\\\",\\\"directive\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"form\\\",\\\"div\\\",\\\"loading-button\\\",\\\"action\\\",\\\"p\\\",\\\"span\\\",\\\"radio-slider\\\",\\\"eq\\\",\\\"button\\\",\\\"br\\\",\\\"or\\\",\\\"each\\\",\\\"-track-array\\\",\\\"auto-mapping/directive-pm\\\",\\\"get\\\",\\\"hr\\\",\\\"footer\\\",\\\"modal-dialog\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/auto-mapping.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/chart-of-accounts\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>\n        {{t 'entity.settings.chart-of-accounts.Chart of accounts'}}\n      </h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"2FfQmBsT\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"entity.settings.chart-of-accounts.Chart of accounts\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/chart-of-accounts.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/chart-of-accounts/chart-of-account\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-3 ms-1 mt-1'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <PtlForm class='width--medium'>\n      <div class='d-flex mb-3 align-items-center'>\n        <h3 class='m-0'>{{t 'common.Details'}}</h3>\n        {{#if this.showSyncIcon}}\n          <FaIcon\n            @title='This account is synced with your accounting package'\n            class='ms-3'\n            @icon='sync'\n          />\n        {{/if}}\n      </div>\n      {{#let\n        (changeset this.glAccount this.glAccountValidationMap)\n        as |glAccountModel|\n      }}\n  \n        {{#if (includes this.accountingPlatform.glAccountVisibleFields 'name')}}\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Name'}}\n            @key='name'\n            @model={{glAccountModel}}\n            @required={{true}}\n            @forceValidationVisible={{gt this.saveAccount.performCount 0}}\n            disabled={{this.disableForm}}\n          />\n        {{/if}}\n        {{#if (includes this.accountingPlatform.glAccountVisibleFields 'code')}}\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Code'}}\n            @key='code'\n            @model={{glAccountModel}}\n            @required={{true}}\n            @forceValidationVisible={{gt this.saveAccount.performCount 0}}\n            disabled={{this.disableForm}}\n          />\n        {{/if}}\n  \n        {{#if\n          (includes this.accountingPlatform.glAccountVisibleFields 'taxRate')\n        }}\n          <PtlInput\n            @type='percentage'\n            @label={{t 'common.Tax rate'}}\n            @key='taxRate'\n            @model={{glAccountModel}}\n            @forceValidationVisible={{gt this.saveAccount.performCount 0}}\n            disabled={{this.disableForm}}\n          />\n        {{/if}}\n        {{#if this.canEditGlAccounts}}\n          <div class='d-flex align-items-centers'>\n            {{#unless\n              (or\n                this.glAccount.isNew\n                this.glAccount.isLinkedToActiveAccountingPlatform\n              )\n            }}\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{or\n                  this.deleteAccount.isRunning\n                  this.saveAccount.isRunning\n                }}\n                {{on 'click' (perform this.deleteAccount)}}\n              >\n                {{#if this.deleteAccount.isRunning}}\n                  <span class='spinner-border spinner-border-sm'></span>\n                  &nbsp;&nbsp;{{t 'common.Deleting'}}&hellip;\n                {{else}}\n                  {{t\n                    'entity.settings.chart-of-accounts.chart-of-account.Delete account'\n                  }}\n                {{/if}}\n              </button>\n            {{/unless}}\n            <div class='float-end ms-auto'>\n              {{#if\n                (and\n                  this.accountingPlatform.isActive\n                  this.glAccount.isLinkedToActiveAccountingPlatform\n                )\n              }}\n                <div>\n                  <a\n                    href={{this.glAccount.viewGlAccountUrl}}\n                    class='btn btn-primary'\n                    target='_blank'\n                    rel='noopener noreferrer'\n                    role='button'\n                    aria-disabled='true'\n                  >\n                    {{t\n                      'entity.settings.chart-of-accounts.chart-of-account.editAccountInLabel'\n                      label=this.accountingPlatform.label\n                    }}\n                  </a>\n                </div>\n              {{else}}\n                <button\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{or\n                    this.deleteAccount.isRunning\n                    this.saveAccount.isRunning\n                  }}\n                  {{on 'click' (perform this.saveAccount glAccountModel)}}\n                >\n                  {{#if this.saveAccount.isRunning}}\n                    <span class='spinner-border spinner-border-sm'></span>\n                    &nbsp;&nbsp;{{t 'common.Saving'}}\n                    &hellip;\n                  {{else}}\n                    {{if\n                      this.glAccount.isNew\n                      (t 'common.Create')\n                      (t 'common.Save')\n                    }}\n                  {{/if}}\n                </button>\n              {{/if}}\n            </div>\n          </div>\n        {{/if}}\n      {{/let}}\n    </PtlForm>\n  {{/if}}\n  */\n  {\n    \"id\": \"+YUTDy2b\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex mb-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showSyncIcon\\\"]],[[[1,\\\"        \\\"],[8,[39,7],[[24,0,\\\"ms-3\\\"]],[[\\\"@title\\\",\\\"@icon\\\"],[\\\"This account is synced with your accounting package\\\",\\\"sync\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,9],[[30,0,[\\\"glAccount\\\"]],[30,0,[\\\"glAccountValidationMap\\\"]]],null]],[[[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"name\\\"],null],[[[1,\\\"        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"name\\\",[30,1],true,[28,[37,12],[[30,0,[\\\"saveAccount\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,10],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"code\\\"],null],[[[1,\\\"        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Code\\\"],null],\\\"code\\\",[30,1],true,[28,[37,12],[[30,0,[\\\"saveAccount\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"taxRate\\\"],null],[[[1,\\\"        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,6],[\\\"common.Tax rate\\\"],null],\\\"taxRate\\\",[30,1],[28,[37,12],[[30,0,[\\\"saveAccount\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"canEditGlAccounts\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,14],[[30,0,[\\\"glAccount\\\",\\\"isNew\\\"]],[30,0,[\\\"glAccount\\\",\\\"isLinkedToActiveAccountingPlatform\\\"]]],null]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,14],[[30,0,[\\\"deleteAccount\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveAccount\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"deleteAccount\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteAccount\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.chart-of-accounts.chart-of-account.Delete account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"float-end ms-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[30,0,[\\\"glAccount\\\",\\\"isLinkedToActiveAccountingPlatform\\\"]]],null],[[[1,\\\"              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,3],[15,6,[30,0,[\\\"glAccount\\\",\\\"viewGlAccountUrl\\\"]]],[14,0,\\\"btn btn-primary\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.settings.chart-of-accounts.chart-of-account.editAccountInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[28,[37,14],[[30,0,[\\\"deleteAccount\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveAccount\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveAccount\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveAccount\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"\\\\n                  …\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[52,[30,0,[\\\"glAccount\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"common.Create\\\"],null],[28,[37,6],[\\\"common.Save\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"glAccountModel\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"let\\\",\\\"changeset\\\",\\\"includes\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"unless\\\",\\\"or\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"span\\\",\\\"and\\\",\\\"a\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/chart-of-accounts/chart-of-account.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/chart-of-accounts/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n    {{#if (and this.isEditable this.model.glAccounts.last.value.length)}}\n      <div class='flex-grow-1'>\n        <button\n          class='btn btn-link text-danger text-decoration-underline float-start'\n          type='button'\n          {{on 'click' (fn (mut this.isDeletingAccounts) true)}}\n          disabled={{or (not this.selectedAccountIds.size) this.isLoading}}\n        >\n          {{t 'common.Delete'}}\n        </button>\n      </div>\n    {{/if}}\n  \n    <input\n      class='form-control m-1 w-auto'\n      placeholder={{t 'common.Search'}}\n      value={{this.searchString}}\n      data-test-gl-account-search\n      readonly={{this.isLoading}}\n      {{on 'input' (perform this.onChangeSearchTerm)}}\n      type='search'\n      autofocus='true'\n    />\n  \n    {{#if this.isEditable}}\n      {{#if this.accountingPlatform.isActive}}\n        <button\n          type='button'\n          class='btn btn-primary text-white text-nowrap m-1'\n          disabled={{this.syncWithAccountingPackage.isRunning}}\n          {{on 'click' (perform this.syncWithAccountingPackage)}}\n        >\n          {{#if this.syncWithAccountingPackage.isRunning}}\n            {{t 'common.Syncing'}}&hellip;\n          {{else}}\n            {{t 'common.syncWithLabel' label=this.accountingPlatform.label}}\n          {{/if}}\n        </button>\n      {{/if}}\n      <button\n        type='button'\n        class='btn btn-success text-white text-nowrap m-1'\n        disabled={{this.isLoading}}\n        {{on 'click' this.addNewGlAccount}}\n        data-test-add-gl-account\n      >\n        <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n      </button>\n    {{/if}}\n  </div>\n  \n  <div class='gl-accounts__table-container'>\n    <PaginationTable\n      @tableHeader={{this.tableHeader}}\n      @tableData={{this.tableData}}\n      @noDataText={{t 'entity.settings.chart-of-accounts.No accounts'}}\n      @isLoading={{this.model.glAccounts.isRunning}}\n      @pageSizes={{this.model.pageSizes}}\n      @pageSize={{this.model.pageSize}}\n      @pageIndex={{this.model.pageNumber}}\n      @onChangePageIndex={{this.onChangePageIndex}}\n      @onChangePageSize={{this.onChangePageSize}}\n      @totalRecords={{this.totalRecords}}\n      @class='table-bordered'\n    />\n  </div>\n  \n  {{#if this.isDeletingAccounts}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='block-module'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.isDeletingAccounts) false}}\n    >\n      <p>\n        {{t\n          'entity.settings.chart-of-accounts.areYouSureYouWantToDeleteXGlAccounts'\n          number=this.selectedAccountIds.size\n          accounts=(pluralize this.selectedAccountIds.size 'account')\n        }}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            class='btn btn-danger text-white ms-2'\n            type='button'\n            disabled={{this.deleteAccounts.isRunning}}\n            {{on 'click' (perform this.deleteAccounts)}}\n          >\n            {{#if this.deleteAccounts.isRunning}}\n              {{t 'common.Deleting'}}&hellip;\n            {{else}}\n              {{t 'common.Delete'}}\n            {{/if}}\n          </button>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.deleteAccounts.isRunning}}\n            {{on 'click' (fn (mut this.isDeletingAccounts) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"INNUDBRB\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,4],[[28,[37,5],[[30,0,[\\\"selectedAccountIds\\\",\\\"size\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"isDeletingAccounts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,9],[\\\"common.Search\\\"],null]],[16,2,[30,0,[\\\"searchString\\\"]]],[24,\\\"data-test-gl-account-search\\\",\\\"\\\"],[16,\\\"readonly\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,4,\\\"search\\\"],[4,[38,6],[\\\"input\\\",[28,[37,11],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"syncWithAccountingPackage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"syncWithAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"syncWithAccountingPackage\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,9],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,9],[\\\"common.syncWithLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"data-test-add-gl-account\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"addNewGlAccount\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,9],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"gl-accounts__table-container\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,13],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"tableHeader\\\"]],[30,0,[\\\"tableData\\\"]],[28,[37,9],[\\\"entity.settings.chart-of-accounts.No accounts\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageNumber\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeletingAccounts\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal\\\",\\\"block-module\\\",true,[28,[37,7],[[28,[37,8],[[30,0,[\\\"isDeletingAccounts\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,9],[\\\"entity.settings.chart-of-accounts.areYouSureYouWantToDeleteXGlAccounts\\\"],[[\\\"number\\\",\\\"accounts\\\"],[[30,0,[\\\"selectedAccountIds\\\",\\\"size\\\"]],[28,[37,16],[[30,0,[\\\"selectedAccountIds\\\",\\\"size\\\"]],\\\"account\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteAccounts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"deleteAccounts\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteAccounts\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteAccounts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"isDeletingAccounts\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"and\\\",\\\"button\\\",\\\"or\\\",\\\"not\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"t\\\",\\\"input\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"pluralize\\\",\\\"footer\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/chart-of-accounts/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/company-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"soLo31TY\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/company-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/company\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'entity.settings.company.Company details')\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Settings'}}</h2>\n      {{/if}}\n    </header>\n    {{#if (or this.model.companyLogo.isRunning this.model.glAccounts.isRunning)}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-3'>{{t 'entity.settings.company.Company details'}}</h3>\n        {{#let\n          (changeset this.model.entity this.entityValidationMap)\n          as |entityModel|\n        }}\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Name'}}\n            @key='name'\n            @model={{entityModel}}\n            @required={{true}}\n            disabled={{this.saveEntity.isRunning}}\n            @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'shared.contacts.Contact email'}}\n            @key='contactEmail'\n            @model={{entityModel}}\n            disabled={{this.saveEntity.isRunning}}\n            @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Address'}}\n            @key='address'\n            @model={{entityModel}}\n            disabled={{this.saveEntity.isRunning}}\n            @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{this.businessNumberLabel}}\n            @key='businessNumber'\n            @model={{entityModel}}\n            disabled={{this.saveEntity.isRunning}}\n            @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n          />\n          {{#if (not-eq this.model.entity.region 'AUS')}}\n            <PtlInput\n              @type='text'\n              @label={{this.taxNumberLabel}}\n              @key='taxNumber'\n              @model={{entityModel}}\n              disabled={{this.saveEntity.isRunning}}\n              @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n            />\n          {{/if}}\n  \n          {{#if\n            (includes\n              this.accountingPlatform.glAccountVisibleFields 'purchasesGlAccount'\n            )\n          }}\n            <PtlInput\n              @type='powerSelect'\n              @label={{t 'entity.settings.company.Default purchases account'}}\n              @key='purchasesGlAccount'\n              @optionKeys={{array 'code' 'name'}}\n              @options={{this.model.glAccounts.last.value}}\n              @model={{entityModel}}\n              @description={{t\n                'entity.settings.company.purchasesGlAccountDescription'\n              }}\n              @placeholder={{t 'entity.settings.company.No default account'}}\n              @searchEnabled={{true}}\n              @searchField='code'\n              @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n              @allowClear={{true}}\n              @disabled={{this.saveEntity.isRunning}}\n            />\n          {{/if}}\n  \n          {{#if\n            (includes\n              this.accountingPlatform.glAccountVisibleFields 'salesGlAccount'\n            )\n          }}\n            <PtlInput\n              @type='powerSelect'\n              @label={{t 'entity.settings.company.Default sales account'}}\n              @key='salesGlAccount'\n              @optionKeys={{array 'code' 'name'}}\n              @options={{this.model.glAccounts.last.value}}\n              @model={{entityModel}}\n              @description={{t\n                'entity.settings.company.salesGlAccountDescription'\n              }}\n              @placeholder={{t 'entity.settings.company.No default account'}}\n              @searchEnabled={{true}}\n              @searchField='code'\n              @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n              @allowClear={{true}}\n              @disabled={{this.saveEntity.isRunning}}\n            />\n          {{/if}}\n  \n          <h4>{{t 'common.Logo'}}</h4>\n          <div class='d-flex align-items-center' style='min-height: 60px;'>\n            {{#if entityModel.companyLogo}}\n              <img\n                class='d-inline-block overflow-hidden mb-2 me-2'\n                id='image-preview'\n                src={{entityModel.companyLogo.href}}\n                style='object-fit: contain; height:100px; width:100px'\n              />\n              <button\n                class='btn btn-link text-danger text-decoration-underline float-start'\n                type='button'\n                {{on 'click' (fn this.clearLogo entityModel)}}\n              >\n                {{t 'entity.settings.company.Clear logo'}}\n              </button>\n            {{else}}\n              <div\n                class='d-inline-block overflow-hidden bg-light rounded mb-2 me-2'\n                style='height:100px; width:100px'\n              ></div>\n              <input\n                aria-label='logo-upload'\n                type='file'\n                {{on 'change' (fn this.updateLogo entityModel)}}\n                accept='.jpg, .jpeg, .png, .gif'\n              />\n            {{/if}}\n          </div>\n  \n          <div class='d-flex flex-grow-1 mt-3'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveEntity.isRunning}}\n              {{on 'click' (perform this.saveEntity entityModel)}}\n            >\n              {{#if this.saveEntity.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t\n                  'entity.settings.company.Saving details'\n                }}&hellip;\n              {{else}}\n                {{t 'entity.settings.company.Save company details'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/let}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if\n      (and (includes-feature-flags 'userIsEntityAdmin') this.chargebee.ready)\n    }}\n      <PtlForm class='width--small mb-4'>\n        <h3 class='h3'>{{t 'entity.settings.company.Subscription'}}</h3>\n        <p class='p'>{{t\n            'entity.settings.company.clickTheButtonBelowToManageYourSubscription'\n          }}</p>\n        <div class='d-flex'>\n          <button\n            class='button'\n            type='button'\n            {{on 'click' (action 'openChargebee')}}\n          >{{t 'entity.settings.company.Manage your subscription'}}</button>\n        </div>\n      </PtlForm>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseInvoices')}}\n      <PtlForm class='width--small mb-4'>\n        {{#if this.model.invoiceOptions.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n          <h3 class='mb-3'>{{t 'entity.settings.company.Invoicing details'}}</h3>\n          {{#let\n            (changeset\n              this.model.invoiceOptions.last.value this.invoiceValidationMap\n            )\n            as |invoiceOptionsModel|\n          }}\n            <h4 class='mb-2'>{{t 'common.Invoice'}}</h4>\n            <div class='d-flex align-items-centers'>\n              <div class='me-2'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.Prefix'}}\n                  @key='invoicePrefix'\n                  @model={{invoiceOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.saveInvoiceOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.saveInvoiceOption.performCount\n                    0\n                  }}\n                />\n              </div>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.nextInvoiceNumber'}}\n                  @key='nextInvoiceNumber'\n                  @model={{invoiceOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.saveInvoiceOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.saveInvoiceOption.performCount\n                    0\n                  }}\n                />\n              </div>\n            </div>\n            <div class='mb-2'>\n              <label class='mb-1' for='paymentTermDay'>\n                {{t 'shared.contacts.Payment terms'}}\n              </label>\n              <div class='d-flex align-items-centers'>\n                <div class='me-2'>\n                  <PtlInput\n                    @type='number'\n                    @key='paymentTermDay'\n                    min='1'\n                    style='width: 75px;'\n                    @model={{invoiceOptionsModel}}\n                    @forceValidationVisible={{gt\n                      this.saveSupplier.performCount\n                      0\n                    }}\n                    disabled={{this.disableForm}}\n                  />\n                </div>\n                <div class='flex-grow-1'>\n                  <PtlInput\n                    @type='select'\n                    @key='paymentTermType'\n                    @selectNoBlankOption={{true}}\n                    @options={{this.paymentTermType}}\n                    @model={{invoiceOptionsModel}}\n                    @forceValidationVisible={{gt\n                      this.saveSupplier.performCount\n                      0\n                    }}\n                    disabled={{this.disableForm}}\n                  />\n                </div>\n              </div>\n            </div>\n            <PtlInput\n              @type='textarea'\n              @label={{t 'entity.settings.company.Footer notes'}}\n              @key='invoiceFooterNotes'\n              @model={{invoiceOptionsModel}}\n              disabled={{this.saveInvoiceOption.isRunning}}\n              @forceValidationVisible={{gt this.saveInvoiceOption.performCount 0}}\n            />\n            <h4 class='mb-2'>{{t 'common.Credit note'}}</h4>\n            <div class='d-flex align-items-centers'>\n              <div class='me-2'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.Prefix'}}\n                  @key='creditNotePrefix'\n                  @model={{invoiceOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.saveInvoiceOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.saveInvoiceOption.performCount\n                    0\n                  }}\n                />\n              </div>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.nextCreditNoteNumber'}}\n                  @key='nextCreditNoteNumber'\n                  @model={{invoiceOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.saveInvoiceOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.saveInvoiceOption.performCount\n                    0\n                  }}\n                />\n              </div>\n            </div>\n            <PtlInput\n              @type='textarea'\n              @label={{t 'entity.settings.company.Footer notes'}}\n              @key='creditNoteFooterNotes'\n              @model={{invoiceOptionsModel}}\n              disabled={{this.saveInvoiceOption.isRunning}}\n              @forceValidationVisible={{gt this.saveInvoiceOption.performCount 0}}\n            />\n            <div class='text-left'>\n              <button\n                class='btn btn-link m-0 p-0 text-decoration-underline'\n                {{on 'click' this.initInvoiceBreakdown}}\n                type='button'\n              >\n                {{t 'entity.settings.company.Default breakdown options'}}\n              </button>\n            </div>\n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveInvoiceOption.isRunning}}\n                {{on\n                  'click'\n                  (perform this.saveInvoiceOption invoiceOptionsModel)\n                }}\n              >\n                {{#if this.saveInvoiceOption.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{t 'entity.settings.company.Save invoicing details'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/let}}\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUsePurchaseOrders')}}\n      <PtlForm class='width--small mb-4'>\n        {{#if this.model.purchaseOrderOptions.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n          <h3 class='h3 mb-3'>{{t\n              'entity.settings.company.Purchase order details'\n            }}</h3>\n  \n          {{#let\n            (changeset\n              this.model.purchaseOrderOptions.last.value\n              this.purchaseOrderValidationMap\n            )\n            as |purchaseOrderOptionsModel|\n          }}\n            <div class='d-flex align-items-centers'>\n              <div class='me-2'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.Prefix'}}\n                  @key='prefix'\n                  @model={{purchaseOrderOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.savePurchaseOrderOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.savePurchaseOrderOption.performCount\n                    0\n                  }}\n                />\n              </div>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.nextPurchaseOrderNumber'}}\n                  @key='nextPurchaseOrderNumber'\n                  @model={{purchaseOrderOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.savePurchaseOrderOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.savePurchaseOrderOption.performCount\n                    0\n                  }}\n                />\n              </div>\n            </div>\n            <PtlInput\n              @type='textarea'\n              @label={{t 'entity.settings.company.Footer notes'}}\n              @key='footerNotes'\n              @model={{purchaseOrderOptionsModel}}\n              disabled={{this.savePurchaseOrderOption.isRunning}}\n              @forceValidationVisible={{gt\n                this.savePurchaseOrderOption.performCount\n                0\n              }}\n            />\n            <PtlInput\n              @type='percentage'\n              @label={{t\n                'entity.settings.company.Percentage tolerance for matching'\n              }}\n              @key='matchingPercentageTolerance'\n              @model={{purchaseOrderOptionsModel}}\n              disabled={{this.savePurchaseOrderOption.isRunning}}\n              @forceValidationVisible={{gt\n                this.savePurchaseOrderOption.performCount\n                0\n              }}\n            />\n            <PtlInput\n              @type='currency'\n              @label={{t 'entity.settings.company.Amount tolerance for matching'}}\n              @key='matchingAmountTolerance'\n              @model={{purchaseOrderOptionsModel}}\n              disabled={{this.savePurchaseOrderOption.isRunning}}\n              @forceValidationVisible={{gt\n                this.savePurchaseOrderOption.performCount\n                0\n              }}\n            />\n  \n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.savePurchaseOrderOption.isRunning}}\n                {{on\n                  'click'\n                  (perform this.savePurchaseOrderOption purchaseOrderOptionsModel)\n                }}\n              >\n                {{#if this.savePurchaseOrderOption.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{t 'entity.settings.company.Save purchase order details'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/let}}\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseStagePayments')}}\n      <PtlForm class='width--small mb-4'>\n        {{#if this.model.stagePaymentOptions.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n          <h3 class='h3 mb-3'>\n            {{t 'entity.settings.company.Stage payment details'}}\n          </h3>\n          {{#let\n            (changeset\n              this.stagePaymentOption this.stagePaymentsOptionsValidationMap\n            )\n            as |stagePaymentOptionsModel|\n          }}\n            <PtlInput\n              @type='textarea'\n              @label={{t 'entity.settings.company.Default stage payment notes'}}\n              @key='footerNotes'\n              @model={{stagePaymentOptionsModel}}\n              disabled={{this.saveStagePaymentOptions.isRunning}}\n              @forceValidationVisible={{gt\n                this.saveStagePaymentOptions.performCount\n                0\n              }}\n            />\n  \n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveStagePaymentOptions.isRunning}}\n                {{on\n                  'click'\n                  (perform this.saveStagePaymentOptions stagePaymentOptionsModel)\n                }}\n              >\n                {{#if this.saveStagePaymentOptions.isRunning}}\n                  <span class='spinner-border spinner-border-sm'>\n                  </span>{{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{t 'entity.settings.company.Save stage payment details'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/let}}\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canManageProfitMargin')}}\n      <PtlForm class='width--small mb-4'>\n        {{#if this.model.loadEntityProfitMargin.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n  \n          {{#let\n            (changeset this.profitMargin this.profitMarginValidationMap)\n            as |profitMarginsModel|\n          }}\n            <h3 class='h3 mb-3'>{{t 'common.Profit margins'}}</h3>\n            <p>\n              {{t\n                'entity.settings.company.profitMarginsArePercentagesThatDefineYourDesiredProfitMarginsOnEachTypeOfSection'\n              }}\n              {{t\n                'entity.settings.company.generallyThisMarginWillBeUsedToCalculateQuoteFiguresFromABudget'\n              }}\n            </p>\n            <PtlInput\n              @type='select'\n              @toolTip={{t\n                'shared.profit-margins.marginIsThePercentageOfWhatYouAreChargingTheCustomerThatIsProfitMarkupIsThePercentageOfYourCostThatIsAddedToYourCostToGetProfit'\n              }}\n              @label={{t 'shared.profit-margins.Profit type'}}\n              @key='profitType'\n              @required={{true}}\n              @options={{this.profitTypes}}\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n              @selectNoBlankOption={{true}}\n            />\n            <PtlInput\n              @type='percentage'\n              @label={{t 'common.Labour'}}\n              @key='labourPercentage'\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n            />\n            <div class='mb-3'>\n              <label\n                class='form-check form-switch d-flex align-items-center mb-0'\n              >\n                <Input\n                  data-test-company-additional-labour-margin-toggle\n                  @type='checkbox'\n                  class='form-check-input mt-0 me-2'\n                  @checked={{not-eq\n                    profitMarginsModel.additionalLabourMargin\n                    null\n                  }}\n                  disabled={{this.updateProfitMargins.isRunning}}\n                  {{on\n                    'click'\n                    (fn this.toggleAdditionalLabourMargin profitMarginsModel)\n                  }}\n                />\n                {{t 'shared.profit-margins.Additional labour margin'}}\n              </label>\n            </div>\n            {{#if (not-eq profitMarginsModel.additionalLabourMargin null)}}\n              <PtlInput\n                data-test-company-additional-labour-margin-input\n                @type='percentage'\n                @key='additionalLabourMargin'\n                @model={{profitMarginsModel}}\n                @forceValidationVisible={{gt\n                  this.updateProfitMargins.performCount\n                  0\n                }}\n                disabled={{this.updateProfitMargins.isRunning}}\n                @description={{t\n                  'shared.profit-margins.additionalLabourMarginDescription'\n                }}\n              />\n            {{/if}}\n            <PtlInput\n              @type='percentage'\n              @label={{t 'common.Materials'}}\n              @key='materialsPercentage'\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n            />\n            <PtlInput\n              @type='percentage'\n              @label={{t 'common.Subcontractors'}}\n              @key='subcontractorsPercentage'\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n            />\n            <PtlInput\n              @type='percentage'\n              @label={{t 'common.Sums'}}\n              @key='sumsPercentage'\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n            />\n  \n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.updateProfitMargins.isRunning}}\n                {{on\n                  'click'\n                  (perform this.updateProfitMargins profitMarginsModel)\n                }}\n              >\n                {{#if this.updateProfitMargins.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t\n                    'entity.settings.company.updating profit margins'\n                  }}…\n                {{else}}\n                  {{t 'shared.profit-margins.Save profit margins'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/let}}\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  </article>\n  \n  {{#if this.invoiceBreakdownOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.invoiceBreakdownOptions) null}}\n      @containerClass='modal-content w-auto h-auto modal-dialog-scrollable'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t 'entity.settings.company.Breakdown options'}}\n        </h5>\n      </div>\n  \n      <div class='modal-body'>\n        <PtlInput\n          @type='textarea'\n          @label={{t 'entity.settings.company.Notes'}}\n          @key='breakdownNotes'\n          @model={{this.invoiceBreakdownOptions}}\n          disabled={{this.saveBreakdownOptions.isRunning}}\n        />\n  \n        <PtlInput\n          @containerClass='form-check mb-2'\n          @type='checkbox'\n          @label={{t 'entity.settings.company.Include billable'}}\n          @key='includeBillable'\n          @model={{this.invoiceBreakdownOptions}}\n          @description={{t 'entity.settings.company.includeBillableDescription'}}\n          disabled={{this.saveBreakdownOptions.isRunning}}\n        />\n        <PtlInput\n          @containerClass='form-check mb-2'\n          @type='checkbox'\n          @label={{t 'entity.settings.company.Include previously invoiced'}}\n          @key='includeInvoiced'\n          @model={{this.invoiceBreakdownOptions}}\n          @description={{t 'entity.settings.company.includeInvoicedDescription'}}\n          disabled={{this.saveBreakdownOptions.isRunning}}\n        />\n  \n        <label class='mb-1'>\n          {{t 'entity.settings.company.First group by'}}\n        </label>\n        <div class='d-flex align-items-center gap-3 ms-1'>\n          <PtlInput\n            @type='radio'\n            @key='firstGroupBy'\n            @id='groupByTask'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'common.Task'}}\n            @value='TASK'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n          <PtlInput\n            @type='radio'\n            @key='firstGroupBy'\n            @id='groupByAllocationType'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'common.Allocation type'}}\n            @value='ALLOCATION_TYPE'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n        </div>\n  \n        <label class='mb-1'>\n          {{t 'entity.settings.company.Labour bills'}}\n        </label>\n        <div class='d-flex align-items-center gap-3 ms-1'>\n          <PtlInput\n            @type='radio'\n            @key='labourDetail'\n            @id='labourSection'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'entity.settings.company.Total only'}}\n            @value='TOTAL'\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='labourDetail'\n            @id='labourBill'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'common.Bill'}}\n            @value='BILL'\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='labourDetail'\n            @id='labourItem'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'entity.settings.company.Bill item'}}\n            @value='BILL_ITEM'\n            @containerClass='mb-1'\n          />\n        </div>\n        <div class='ms-1'>\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'entity.settings.company.Include margin'}}\n            @key='includeLabourBillsProfitMargins'\n            @model={{this.invoiceBreakdownOptions}}\n            @description={{t\n              'entity.settings.company.includeProfitMarginsDescription'\n            }}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n        </div>\n  \n        <label class='mb-1'>\n          {{t 'common.Timesheets'}}\n        </label>\n        <div class='ms-1 mb-1'>\n          <GroupingSelector\n            @groups={{this.timesheetGroupingOptions}}\n            @value={{this.invoiceBreakdownOptions.timesheetDetails}}\n            @onChange={{fn (mut this.invoiceBreakdownOptions.timesheetDetails)}}\n            as |gs|\n          >\n            {{#each gs.axes as |axis i|}}\n              <label class='pdf-export-options__grouping-label'>\n                {{#if (eq i 0)}}\n                  {{t 'shared.report-builder.First break down by'}}…\n                {{else}}\n                  …{{t 'shared.report-builder.and then by'}}…\n                {{/if}}\n              </label>\n  \n              <select\n                class='pdf-export-options__grouping-control'\n                {{on 'change' (action axis.update value='target.value')}}\n                disabled={{this.saveBreakdownOptions.isRunning}}\n              >\n                {{#each axis.options as |opt|}}\n                  <option value={{opt.key}} selected={{opt.isSelected}}>\n                    {{opt.name}}\n                  </option>\n                {{/each}}\n              </select>\n              <br />\n            {{/each}}\n          </GroupingSelector>\n        </div>\n        {{#if\n          this.model.entity.effectiveProfitMargin.additionalLabourMargin.value\n        }}\n          <div class='ms-1'>\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'entity.settings.company.Additional margin'}}\n              @key='includeTimesheetsProfitMargins'\n              @model={{this.invoiceBreakdownOptions}}\n              @description={{t\n                'entity.settings.company.includeTimesheetsProfitMarginsDescription'\n              }}\n              disabled={{this.saveBreakdownOptions.isRunning}}\n              {{on\n                'change'\n                (fn\n                  this.onToggleTimesheetMargin\n                  'includeTimesheetsProfitMargins'\n                  'includeTimesheetsCostMargins'\n                )\n              }}\n            />\n          </div>\n        {{/if}}\n  \n        <div class='ms-1'>\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'entity.settings.company.Show cost margin'}}\n            @key='includeTimesheetsCostMargins'\n            @model={{this.invoiceBreakdownOptions}}\n            @description={{t\n              'entity.settings.company.includeTimesheetsCostMarginsDescription'\n            }}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            {{on\n              'change'\n              (fn\n                this.onToggleTimesheetMargin\n                'includeTimesheetsCostMargins'\n                'includeTimesheetsProfitMargins'\n              )\n            }}\n          />\n        </div>\n  \n        <label class='mb-1'>\n          {{t 'entity.settings.company.Material bills'}}\n        </label>\n        <div class='d-flex align-items-center gap-3 ms-1'>\n          <PtlInput\n            @type='radio'\n            @key='materialsDetail'\n            @id='materialsSection'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'entity.settings.company.Total only'}}\n            @value='TOTAL'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='materialsDetail'\n            @id='materialsBill'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'common.Bill'}}\n            @value='BILL'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='materialsDetail'\n            @id='materialsItem'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'entity.settings.company.Bill item'}}\n            @value='BILL_ITEM'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @containerClass='mb-1'\n          />\n        </div>\n        <div class='ms-1'>\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'entity.settings.company.Include margin'}}\n            @key='includeMaterialBillsProfitMargins'\n            @model={{this.invoiceBreakdownOptions}}\n            @description={{t\n              'entity.settings.company.includeProfitMarginsDescription'\n            }}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n        </div>\n  \n        <label class='mb-1'>\n          {{t 'entity.settings.company.Subcontractor bills'}}\n        </label>\n        <div class='d-flex align-items-center gap-3 ms-1 mt-0'>\n          <PtlInput\n            @type='radio'\n            @key='subcontractorsDetail'\n            @id='subcontractorsSection'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'entity.settings.company.Total only'}}\n            @value='TOTAL'\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='subcontractorsDetail'\n            @id='subcontractorsBill'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'common.Bill'}}\n            @value='BILL'\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='subcontractorsDetail'\n            @id='subcontractorsItem'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'entity.settings.company.Bill item'}}\n            @value='BILL_ITEM'\n            @containerClass='mb-1'\n          />\n        </div>\n        <div class='ms-1'>\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'entity.settings.company.Include margin'}}\n            @key='includeSubcontractorBillsProfitMargins'\n            @model={{this.invoiceBreakdownOptions}}\n            @description={{t\n              'entity.settings.company.includeProfitMarginsDescription'\n            }}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n        </div>\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.invoiceBreakdownOptions) null)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' (perform this.saveBreakdownOptions)}}\n        >\n          {{#if this.saveBreakdownOptions.isRunning}}\n            <span class='spinner-border spinner-border-sm'></span>\n            &nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n          {{else}}\n            {{t 'common.Save'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"QHiyCAZz\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.settings.company.Company details\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Settings\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"model\\\",\\\"companyLogo\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.Company details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"model\\\",\\\"entity\\\"]],[30,0,[\\\"entityValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Name\\\"],null],\\\"name\\\",[30,1],true,[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"shared.contacts.Contact email\\\"],null],\\\"contactEmail\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Address\\\"],null],\\\"address\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[30,0,[\\\"businessNumberLabel\\\"]],\\\"businessNumber\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[30,0,[\\\"model\\\",\\\"entity\\\",\\\"region\\\"]],\\\"AUS\\\"],null],[[[1,\\\"          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[30,0,[\\\"taxNumberLabel\\\"]],\\\"taxNumber\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"purchasesGlAccount\\\"],null],[[[1,\\\"          \\\"],[8,[39,15],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@description\\\",\\\"@placeholder\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@allowClear\\\",\\\"@disabled\\\"],[\\\"powerSelect\\\",[28,[37,4],[\\\"entity.settings.company.Default purchases account\\\"],null],\\\"purchasesGlAccount\\\",[28,[37,19],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],[30,1],[28,[37,4],[\\\"entity.settings.company.purchasesGlAccountDescription\\\"],null],[28,[37,4],[\\\"entity.settings.company.No default account\\\"],null],true,\\\"code\\\",[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null],true,[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"salesGlAccount\\\"],null],[[[1,\\\"          \\\"],[8,[39,15],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@description\\\",\\\"@placeholder\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@allowClear\\\",\\\"@disabled\\\"],[\\\"powerSelect\\\",[28,[37,4],[\\\"entity.settings.company.Default sales account\\\"],null],\\\"salesGlAccount\\\",[28,[37,19],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],[30,1],[28,[37,4],[\\\"entity.settings.company.salesGlAccountDescription\\\"],null],[28,[37,4],[\\\"entity.settings.company.No default account\\\"],null],true,\\\"code\\\",[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null],true,[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[12],[1,[28,[35,4],[\\\"common.Logo\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[14,5,\\\"min-height: 60px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"companyLogo\\\"]],[[[1,\\\"            \\\"],[10,\\\"img\\\"],[14,0,\\\"d-inline-block overflow-hidden mb-2 me-2\\\"],[14,1,\\\"image-preview\\\"],[15,\\\"src\\\",[30,1,[\\\"companyLogo\\\",\\\"href\\\"]]],[14,5,\\\"object-fit: contain; height:100px; width:100px\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,25],[[30,0,[\\\"clearLogo\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Clear logo\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"d-inline-block overflow-hidden bg-light rounded mb-2 me-2\\\"],[14,5,\\\"height:100px; width:100px\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,\\\"aria-label\\\",\\\"logo-upload\\\"],[24,\\\"accept\\\",\\\".jpg, .jpeg, .png, .gif\\\"],[24,4,\\\"file\\\"],[4,[38,24],[\\\"change\\\",[28,[37,25],[[30,0,[\\\"updateLogo\\\"]],[30,1]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveEntity\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Saving details\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Save company details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,29],[[28,[37,30],[\\\"userIsEntityAdmin\\\"],null],[30,0,[\\\"chargebee\\\",\\\"ready\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.Subscription\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.clickTheButtonBelowToManageYourSubscription\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,32],[[30,0],\\\"openChargebee\\\"],null]],null],[12],[1,[28,[35,4],[\\\"entity.settings.company.Manage your subscription\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[\\\"canUseInvoices\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"invoiceOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.Invoicing details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"model\\\",\\\"invoiceOptions\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"invoiceValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,4],[\\\"common.Invoice\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.Prefix\\\"],null],\\\"invoicePrefix\\\",[30,2],\\\"\\\",[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.nextInvoiceNumber\\\"],null],\\\"nextInvoiceNumber\\\",[30,2],\\\"\\\",[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"paymentTermDay\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.contacts.Payment terms\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,15],[[24,\\\"min\\\",\\\"1\\\"],[24,5,\\\"width: 75px;\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",\\\"paymentTermDay\\\",[30,2],[28,[37,16],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"paymentTermType\\\",true,[30,0,[\\\"paymentTermType\\\"]],[30,2],[28,[37,16],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Footer notes\\\"],null],\\\"invoiceFooterNotes\\\",[30,2],[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,4],[\\\"common.Credit note\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.Prefix\\\"],null],\\\"creditNotePrefix\\\",[30,2],\\\"\\\",[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.nextCreditNoteNumber\\\"],null],\\\"nextCreditNoteNumber\\\",[30,2],\\\"\\\",[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Footer notes\\\"],null],\\\"creditNoteFooterNotes\\\",[30,2],[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-left\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link m-0 p-0 text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[30,0,[\\\"initInvoiceBreakdown\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Default breakdown options\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveInvoiceOption\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Save invoicing details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[\\\"canUsePurchaseOrders\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"purchaseOrderOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.Purchase order details\\\"],null]],[13],[1,\\\"\\\\n\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"model\\\",\\\"purchaseOrderOptions\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"purchaseOrderValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.Prefix\\\"],null],\\\"prefix\\\",[30,3],\\\"\\\",[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.nextPurchaseOrderNumber\\\"],null],\\\"nextPurchaseOrderNumber\\\",[30,3],\\\"\\\",[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Footer notes\\\"],null],\\\"footerNotes\\\",[30,3],[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"entity.settings.company.Percentage tolerance for matching\\\"],null],\\\"matchingPercentageTolerance\\\",[30,3],[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,4],[\\\"entity.settings.company.Amount tolerance for matching\\\"],null],\\\"matchingAmountTolerance\\\",[30,3],[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"savePurchaseOrderOption\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Save purchase order details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[3]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[\\\"canUseStagePayments\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"stagePaymentOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Stage payment details\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"stagePaymentOption\\\"]],[30,0,[\\\"stagePaymentsOptionsValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Default stage payment notes\\\"],null],\\\"footerNotes\\\",[30,4],[28,[37,16],[[30,0,[\\\"saveStagePaymentOptions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveStagePaymentOptions\\\"]],[30,4]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[1,\\\"\\\\n                \\\"],[13],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Save stage payment details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[4]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[\\\"canManageProfitMargin\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"loadEntityProfitMargin\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"profitMargin\\\"]],[30,0,[\\\"profitMarginValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 mb-3\\\"],[12],[1,[28,[35,4],[\\\"common.Profit margins\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.settings.company.profitMarginsArePercentagesThatDefineYourDesiredProfitMarginsOnEachTypeOfSection\\\"],null]],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.settings.company.generallyThisMarginWillBeUsedToCalculateQuoteFiguresFromABudget\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@toolTip\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@selectNoBlankOption\\\"],[\\\"select\\\",[28,[37,4],[\\\"shared.profit-margins.marginIsThePercentageOfWhatYouAreChargingTheCustomerThatIsProfitMarkupIsThePercentageOfYourCostThatIsAddedToYourCostToGetProfit\\\"],null],[28,[37,4],[\\\"shared.profit-margins.Profit type\\\"],null],\\\"profitType\\\",true,[30,0,[\\\"profitTypes\\\"]],[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"common.Labour\\\"],null],\\\"labourPercentage\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check form-switch d-flex align-items-center mb-0\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,26],[[24,\\\"data-test-company-additional-labour-margin-toggle\\\",\\\"\\\"],[24,0,\\\"form-check-input mt-0 me-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]],[4,[38,24],[\\\"click\\\",[28,[37,25],[[30,0,[\\\"toggleAdditionalLabourMargin\\\"]],[30,5]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,17],[[30,5,[\\\"additionalLabourMargin\\\"]],null],null]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.profit-margins.Additional labour margin\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[30,5,[\\\"additionalLabourMargin\\\"]],null],null],[[[1,\\\"            \\\"],[8,[39,15],[[24,\\\"data-test-company-additional-labour-margin-input\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\"],[\\\"percentage\\\",\\\"additionalLabourMargin\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null],[28,[37,4],[\\\"shared.profit-margins.additionalLabourMarginDescription\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"common.Materials\\\"],null],\\\"materialsPercentage\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"common.Subcontractors\\\"],null],\\\"subcontractorsPercentage\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"common.Sums\\\"],null],\\\"sumsPercentage\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"updateProfitMargins\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.settings.company.updating profit margins\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.profit-margins.Save profit margins\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[5]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invoiceBreakdownOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,34],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,25],[[28,[37,35],[[30,0,[\\\"invoiceBreakdownOptions\\\"]]],null],null],null],\\\"modal-content w-auto h-auto modal-dialog-scrollable\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Breakdown options\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Notes\\\"],null],\\\"breakdownNotes\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"form-check mb-2\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include billable\\\"],null],\\\"includeBillable\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeBillableDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"form-check mb-2\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include previously invoiced\\\"],null],\\\"includeInvoiced\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeInvoicedDescription\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.First group by\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"firstGroupBy\\\",\\\"groupByTask\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Task\\\"],null],\\\"TASK\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"firstGroupBy\\\",\\\"groupByAllocationType\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Allocation type\\\"],null],\\\"ALLOCATION_TYPE\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Labour bills\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include margin\\\"],null],\\\"includeLabourBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Timesheets\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1 mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,37],null,[[\\\"@groups\\\",\\\"@value\\\",\\\"@onChange\\\"],[[30,0,[\\\"timesheetGroupingOptions\\\"]],[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]],[28,[37,25],[[28,[37,35],[[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,39],[[28,[37,39],[[30,6,[\\\"axes\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"label\\\"],[14,0,\\\"pdf-export-options__grouping-label\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,40],[[30,8],0],null],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.report-builder.First break down by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                …\\\"],[1,[28,[35,4],[\\\"shared.report-builder.and then by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[11,\\\"select\\\"],[24,0,\\\"pdf-export-options__grouping-control\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]],[4,[38,24],[\\\"change\\\",[28,[37,32],[[30,0],[30,7,[\\\"update\\\"]]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,39],[[28,[37,39],[[30,7,[\\\"options\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"option\\\"],[15,2,[30,9,[\\\"key\\\"]]],[15,\\\"selected\\\",[30,9,[\\\"isSelected\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[1,[30,9,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[7,8]],null],[1,\\\"        \\\"]],[6]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"additionalLabourMargin\\\",\\\"value\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]],[4,[38,24],[\\\"change\\\",[28,[37,25],[[30,0,[\\\"onToggleTimesheetMargin\\\"]],\\\"includeTimesheetsProfitMargins\\\",\\\"includeTimesheetsCostMargins\\\"],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Additional margin\\\"],null],\\\"includeTimesheetsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeTimesheetsProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]],[4,[38,24],[\\\"change\\\",[28,[37,25],[[30,0,[\\\"onToggleTimesheetMargin\\\"]],\\\"includeTimesheetsCostMargins\\\",\\\"includeTimesheetsProfitMargins\\\"],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Show cost margin\\\"],null],\\\"includeTimesheetsCostMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeTimesheetsCostMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Material bills\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include margin\\\"],null],\\\"includeMaterialBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Subcontractor bills\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1 mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include margin\\\"],null],\\\"includeSubcontractorBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,25],[[28,[37,35],[[30,0,[\\\"invoiceBreakdownOptions\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveBreakdownOptions\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entityModel\\\",\\\"invoiceOptionsModel\\\",\\\"purchaseOrderOptionsModel\\\",\\\"stagePaymentOptionsModel\\\",\\\"profitMarginsModel\\\",\\\"gs\\\",\\\"axis\\\",\\\"i\\\",\\\"opt\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"or\\\",\\\"loading-icon\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"not-eq\\\",\\\"includes\\\",\\\"array\\\",\\\"h4\\\",\\\"div\\\",\\\"img\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"input\\\",\\\"perform\\\",\\\"span\\\",\\\"and\\\",\\\"includes-feature-flags\\\",\\\"p\\\",\\\"action\\\",\\\"label\\\",\\\"modal-dialog\\\",\\\"mut\\\",\\\"h5\\\",\\\"grouping-selector\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"select\\\",\\\"option\\\",\\\"br\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/company.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/contacts\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.contacts'}}</h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"5WbU548I\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,3],[\\\"common.contacts\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/contacts.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/contacts/contact\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-3 ms-1 mt-1'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <PtlForm class='width--medium'>\n      <div class='d-flex mb-3 align-items-center'>\n        <h3 class='m-0'>{{t 'common.Details'}}</h3>\n        {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n          <FaIcon\n            @title='This supplier is synced with your accounting package'\n            class='ms-3'\n            @icon='sync'\n          />\n        {{/if}}\n      </div>\n      <PtlInput\n        @type='text'\n        @label={{t 'common.Name'}}\n        @key='name'\n        @model={{this.model.supplierChangeset.last.value}}\n        @required={{true}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n      <PtlInput\n        @type='text'\n        @label={{t 'shared.contacts.Contact person'}}\n        @key='contactPerson'\n        @model={{this.model.supplierChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n      <PtlInput\n        @type='text'\n        @label={{t 'shared.contacts.Contact number'}}\n        @key='contactNumber'\n        @model={{this.model.supplierChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n      <PtlInput\n        @type='text'\n        @label={{t 'shared.contacts.Contact email'}}\n        @key='contactEmail'\n        @model={{this.model.supplierChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n      <PtlInput\n        @type='text'\n        @label={{t 'common.Address'}}\n        @key='address'\n        @model={{this.model.supplierChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n  \n      <label class='mb-1'>\n        {{t 'entity.settings.contacts.contact.Default allocation type'}}\n        &nbsp;<InfoPopup\n          @text={{t\n            'entity.settings.contacts.contact.defaultAllocationFeatureTooltip'\n          }}\n        />\n      </label>\n      <div class='d-flex align-items-center gap-3'>\n        <PtlInput\n          @type='radio'\n          @key='defaultBillAllocationType'\n          @id='MATERIALS'\n          @model={{this.model.supplierChangeset.last.value}}\n          disabled={{this.saveSupplier.isRunning}}\n          @label={{t 'common.Materials'}}\n          @value='MATERIALS'\n        />\n        <PtlInput\n          @type='radio'\n          @key='defaultBillAllocationType'\n          @id='SUBCONTRACTORS'\n          @model={{this.model.supplierChangeset.last.value}}\n          disabled={{this.saveSupplier.isRunning}}\n          @label={{t 'common.Subcontractors'}}\n          @value='SUBCONTRACTORS'\n        />\n        <PtlInput\n          @type='radio'\n          @key='defaultBillAllocationType'\n          @id='LABOUR'\n          @model={{this.model.supplierChangeset.last.value}}\n          disabled={{this.saveSupplier.isRunning}}\n          @label={{t 'common.Labour'}}\n          @value='LABOUR'\n        />\n      </div>\n  \n      <h4 class='mb-2'>{{t 'common.Purchases'}}</h4>\n      <div class='mb-3'>\n        <label class='mb-1' for='paymentTermDay'>\n          {{t 'shared.contacts.Payment terms'}}\n        </label>\n        {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n          <Input\n            class='form-control'\n            id='paymentTermDay'\n            name='paymentTermDay'\n            @type='text'\n            placeholder={{this.supplier.purchaseDisplayPaymentTerm}}\n            autocomplete='off'\n            disabled={{true}}\n          />\n        {{else}}\n          <div class='d-flex align-items-centers'>\n            <div class='me-2'>\n              <PtlInput\n                @type='number'\n                @key='paymentTermDay'\n                @containerClass='m-0'\n                min='1'\n                style='width: 75px;'\n                @model={{this.model.supplierChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n                disabled={{this.disableForm}}\n              />\n            </div>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='select'\n                @key='paymentTermType'\n                @containerClass='m-0'\n                @selectNoBlankOption={{true}}\n                @options={{this.paymentTermType}}\n                @model={{this.model.supplierChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n                disabled={{this.disableForm}}\n              />\n            </div>\n          </div>\n        {{/if}}\n      </div>\n  \n      <h4 class='mb-2'>{{t 'common.Sales'}}</h4>\n      <div class='mb-3'>\n        <label class='mb-1' for='salesPaymentTermDay'>\n          {{t 'shared.contacts.Payment terms'}}\n        </label>\n        {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n          <Input\n            class='form-control'\n            id='salesPaymentTermDay'\n            name='salesPaymentTermDay'\n            @type='text'\n            placeholder={{this.supplier.salesDisplayPaymentTerm}}\n            autocomplete='off'\n            disabled={{true}}\n          />\n        {{else}}\n          <div class='d-flex align-items-centers'>\n            <div class='me-2'>\n              <PtlInput\n                @type='number'\n                @key='salesPaymentTermDay'\n                @containerClass='m-0'\n                min='1'\n                style='width: 75px;'\n                @model={{this.model.supplierChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n                disabled={{this.disableForm}}\n              />\n            </div>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='select'\n                @containerClass='m-0'\n                @key='salesPaymentTermType'\n                @selectNoBlankOption={{true}}\n                @options={{this.salesPaymentTermType}}\n                @model={{this.model.supplierChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n                disabled={{this.disableForm}}\n              />\n            </div>\n          </div>\n        {{/if}}\n      </div>\n  \n      {{#if\n        (and\n          this.accountingPlatform.isActive\n          (not this.supplier.isContactLinkedToAccountingPlatform)\n        )\n      }}\n        <div class='mb-3'>\n          <label class='mb-1' for='sync-with-accounting-platform'>\n            <Input\n              class='form-check-input'\n              id='sync-with-accounting-platform'\n              name='sync-with-accounting-platform'\n              @type='checkbox'\n              @checked={{this.onChangeSyncWithAccountingPlatform}}\n              {{on\n                'change'\n                (fn\n                  (mut this.onChangeSyncWithAccountingPlatform)\n                  (not this.onChangeSyncWithAccountingPlatform)\n                )\n              }}\n              autocomplete='off'\n            />\n  \n            {{if\n              this.supplier.isNew\n              (t\n                'entity.settings.contacts.contact.alsoCreateInLabel'\n                label=this.accountingPlatform.label\n              )\n              (t\n                'entity.settings.contacts.contact.syncWithLabelOnSave'\n                label=this.accountingPlatform.label\n              )\n            }}\n  \n          </label>\n        </div>\n      {{/if}}\n  \n      <div class='d-flex justify-content-between align-items-center'>\n        <h4 class='m-0'>Aliases &nbsp;<InfoPopup\n            @text={{html-safe\n              (t 'entity.settings.contacts.contact.aliasFeatureTooltip')\n            }}\n          /></h4>\n        <button\n          type='button'\n          class='btn btn-link text-primary text-decoration-underline m-1'\n          disabled={{this.isLoading}}\n          {{on 'click' (fn (mut this.showAddAliasModal) true)}}\n        >\n          {{t 'entity.settings.contacts.contact.Add new alias'}}\n        </button>\n      </div>\n      <div class='mb-2'>\n        <PaginationTable\n          @tableHeader={{this.aliasesTableHeader}}\n          @tableData={{this.aliasesTableData}}\n          @isLoading={{this.isLoading}}\n          @noDataText='No aliases'\n          @class='table-bordered '\n          @hidePagination={{true}}\n        />\n      </div>\n  \n      {{#if this.canEditSupplier}}\n        <div class='d-flex align-items-center'>\n          {{#unless this.supplier.isNew}}\n            <LabelPopup @text={{this.deleteSupplierDisabledTitle}}>\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{or\n                  this.deleteSupplier.isRunning\n                  this.saveSupplier.isRunning\n                  this.supplier.isLinkedToResources\n                  this.supplier.isLinkedToActiveAccountingPlatform\n                }}\n                {{on 'click' (fn (mut this.isDeletingSupplier) true)}}\n              >\n                {{t 'entity.settings.contacts.contact.Delete contact'}}\n              </button>\n            </LabelPopup>\n          {{/unless}}\n          {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n            <div class='ms-auto d-flex gap-2'>\n              <a\n                href={{this.supplier.viewContactUrl}}\n                class='btn btn-primary'\n                target='_blank'\n                rel='noopener noreferrer'\n                role='button'\n                aria-disabled='true'\n              >\n                {{t\n                  'entity.settings.contacts.contact.editContactInLabel'\n                  label=this.accountingPlatform.label\n                }}\n              </a>\n              {{#if this.accountingPlatform.isActive}}\n                <button\n                  type='button'\n                  class='btn btn-primary'\n                  disabled={{this.updateSingleContact.isRunning}}\n                  {{on 'click' (perform this.updateSingleContact)}}\n                >\n                  {{#if this.updateSingleContact.isRunning}}\n                    <span class='spinner-border spinner-border-sm'>\n                    </span>&nbsp;&nbsp;{{t 'common.Updating'}}&hellip;\n                  {{else}}\n                    {{t\n                      'entity.settings.contacts.contact.updateFromLabel'\n                      label=this.accountingPlatform.label\n                    }}\n                  {{/if}}\n                </button>\n              {{/if}}\n            </div>\n          {{/if}}\n          <button\n            type='button'\n            class='btn btn-primary\n              {{if\n                this.supplier.isContactLinkedToAccountingPlatform\n                \"ms-2\"\n                \"ms-auto\"\n              }}'\n            disabled={{or\n              this.deleteSupplier.isRunning\n              this.saveSupplier.isRunning\n            }}\n            {{on\n              'click'\n              (perform this.saveSupplier this.model.supplierChangeset.last.value)\n            }}\n          >\n            {{#if this.saveSupplier.isRunning}}\n              <span class='spinner-border spinner-border-sm'>\n              </span>&nbsp;&nbsp;\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{if this.supplier.isNew (t 'common.Create') (t 'common.Save')}}\n            {{/if}}\n          </button>\n        </div>\n      {{/if}}\n    </PtlForm>\n  {{/if}}\n  {{#if this.showAddAliasModal}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeAddAliasModal}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t 'entity.settings.contacts.contact.Add new alias'}}\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        <label class='mb-1' for='alias'>\n          {{t 'entity.settings.contacts.contact.Alias name'}}\n          <sup class='text-danger'>*</sup>\n        </label>\n        <div class='input-group'>\n          <Input\n            class='form-control'\n            id='alias'\n            @type='text'\n            @value={{this.aliasNameInput}}\n            disabled={{this.addNewAlias.isRunning}}\n            {{did-insert this.focusInput}}\n          />\n        </div>\n      </div>\n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeAddAliasModal}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary text-white'\n          disabled={{this.addNewAlias.isRunning}}\n          {{on 'click' (perform this.addNewAlias)}}\n        >\n          {{#if this.addNewAlias.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'entity.settings.contacts.contact.Add alias'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isDeletingSupplier}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingSupplier) false}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n  \n      <div class='modal-body'>\n        {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n          <div class='alert alert-warning' role='alert'>\n            <FaIcon @icon='exclamation-triangle' @size='lg' class='me-2' />\n            <span class='me-2'>\n              {{t\n                'entity.settings.contacts.deleteAccountingPlatformSuppliersForNextSync'\n                label=this.accountingPlatform.label\n              }}\n            </span>\n            <a\n              role='button'\n              class='btn btn-outline-primary'\n              target='_blank'\n              href={{this.supplier.viewContactUrl}}\n              rel='noopener noreferrer'\n            >\n              {{t\n                'entity.settings.contacts.contact.viewInLabel'\n                label=this.accountingPlatform.label\n              }}\n            </a>\n          </div>\n        {{/if}}\n        <p>\n          {{t\n            'entity.settings.contacts.contact.areYouSureYouWantToDeleteTheContact'\n          }}\n          {{t 'common.This action cannot be undone'}}\n        </p>\n      </div>\n  \n      <div class='modal-footer'>\n  \n        <button\n          class='btn btn-danger text-white'\n          type='button'\n          disabled={{this.deleteSupplier.isRunning}}\n          {{on 'click' (perform this.deleteSupplier)}}\n        >\n          {{#if this.deleteSupplier.isRunning}}\n            {{t 'common.Deleting'}}&hellip;\n          {{else}}\n            {{t 'common.Delete'}}\n          {{/if}}\n        </button>\n        <button\n          class='btn btn-secondary text-white'\n          type='button'\n          disabled={{this.deleteSupplier.isRunning}}\n          {{on 'click' (fn (mut this.isDeletingSupplier) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n  \n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"ZXWeuRr2\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex mb-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"        \\\"],[8,[39,7],[[24,0,\\\"ms-3\\\"]],[[\\\"@title\\\",\\\"@icon\\\"],[\\\"This supplier is synced with your accounting package\\\",\\\"sync\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"name\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"shared.contacts.Contact person\\\"],null],\\\"contactPerson\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"shared.contacts.Contact number\\\"],null],\\\"contactNumber\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"shared.contacts.Contact email\\\"],null],\\\"contactEmail\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Address\\\"],null],\\\"address\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Default allocation type\\\"],null]],[1,\\\"\\\\n       \\\"],[8,[39,11],null,[[\\\"@text\\\"],[[28,[37,6],[\\\"entity.settings.contacts.contact.defaultAllocationFeatureTooltip\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"defaultBillAllocationType\\\",\\\"MATERIALS\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,6],[\\\"common.Materials\\\"],null],\\\"MATERIALS\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"defaultBillAllocationType\\\",\\\"SUBCONTRACTORS\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,6],[\\\"common.Subcontractors\\\"],null],\\\"SUBCONTRACTORS\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"defaultBillAllocationType\\\",\\\"LABOUR\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,6],[\\\"common.Labour\\\"],null],\\\"LABOUR\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,6],[\\\"common.Purchases\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"paymentTermDay\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.contacts.Payment terms\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"        \\\"],[8,[39,13],[[24,0,\\\"form-control\\\"],[24,1,\\\"paymentTermDay\\\"],[24,3,\\\"paymentTermDay\\\"],[16,\\\"placeholder\\\",[30,0,[\\\"supplier\\\",\\\"purchaseDisplayPaymentTerm\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[16,\\\"disabled\\\",true]],[[\\\"@type\\\"],[\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[24,\\\"min\\\",\\\"1\\\"],[24,5,\\\"width: 75px;\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@containerClass\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",\\\"paymentTermDay\\\",\\\"m-0\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@containerClass\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"paymentTermType\\\",\\\"m-0\\\",true,[30,0,[\\\"paymentTermType\\\"]],[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,6],[\\\"common.Sales\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"salesPaymentTermDay\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.contacts.Payment terms\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"        \\\"],[8,[39,13],[[24,0,\\\"form-control\\\"],[24,1,\\\"salesPaymentTermDay\\\"],[24,3,\\\"salesPaymentTermDay\\\"],[16,\\\"placeholder\\\",[30,0,[\\\"supplier\\\",\\\"salesDisplayPaymentTerm\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[16,\\\"disabled\\\",true]],[[\\\"@type\\\"],[\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[24,\\\"min\\\",\\\"1\\\"],[24,5,\\\"width: 75px;\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@containerClass\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",\\\"salesPaymentTermDay\\\",\\\"m-0\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"m-0\\\",\\\"salesPaymentTermType\\\",true,[30,0,[\\\"salesPaymentTermType\\\"]],[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,14],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[28,[37,15],[[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]]],null]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"sync-with-accounting-platform\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],[[24,0,\\\"form-check-input\\\"],[24,1,\\\"sync-with-accounting-platform\\\"],[24,3,\\\"sync-with-accounting-platform\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,16],[\\\"change\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"onChangeSyncWithAccountingPlatform\\\"]]],null],[28,[37,15],[[30,0,[\\\"onChangeSyncWithAccountingPlatform\\\"]]],null]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"onChangeSyncWithAccountingPlatform\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[1,[52,[30,0,[\\\"supplier\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.contacts.contact.alsoCreateInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]],[28,[37,6],[\\\"entity.settings.contacts.contact.syncWithLabelOnSave\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]]],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex justify-content-between align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"Aliases  \\\"],[8,[39,11],null,[[\\\"@text\\\"],[[28,[37,19],[[28,[37,6],[\\\"entity.settings.contacts.contact.aliasFeatureTooltip\\\"],null]],null]]],null],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"showAddAliasModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Add new alias\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@isLoading\\\",\\\"@noDataText\\\",\\\"@class\\\",\\\"@hidePagination\\\"],[[30,0,[\\\"aliasesTableHeader\\\"]],[30,0,[\\\"aliasesTableData\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"No aliases\\\",\\\"table-bordered \\\",true]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canEditSupplier\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"supplier\\\",\\\"isNew\\\"]]],[[[1,\\\"          \\\"],[8,[39,23],null,[[\\\"@text\\\"],[[30,0,[\\\"deleteSupplierDisabledTitle\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"supplier\\\",\\\"isLinkedToResources\\\"]],[30,0,[\\\"supplier\\\",\\\"isLinkedToActiveAccountingPlatform\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"isDeletingSupplier\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Delete contact\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-auto d-flex gap-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,3],[15,6,[30,0,[\\\"supplier\\\",\\\"viewContactUrl\\\"]]],[14,0,\\\"btn btn-primary\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.editContactInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateSingleContact\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"updateSingleContact\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateSingleContact\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.updateFromLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-primary\\\\n            \\\",[52,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],\\\"ms-2\\\",\\\"ms-auto\\\"]]]],[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"saveSupplier\\\"]],[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[1,\\\"\\\\n            \\\"],[13],[1,\\\"  \\\\n            \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[52,[30,0,[\\\"supplier\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"common.Create\\\"],null],[28,[37,6],[\\\"common.Save\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[41,[30,0,[\\\"showAddAliasModal\\\"]],[[[1,\\\"  \\\"],[8,[39,28],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeAddAliasModal\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Add new alias\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"alias\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Alias name\\\"],null]],[1,\\\"\\\\n        \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,13],[[24,0,\\\"form-control\\\"],[24,1,\\\"alias\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addNewAlias\\\",\\\"isRunning\\\"]]],[4,[38,30],[[30,0,[\\\"focusInput\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"aliasNameInput\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"closeAddAliasModal\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addNewAlias\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"addNewAlias\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addNewAlias\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Add alias\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeletingSupplier\\\"]],[[[1,\\\"  \\\"],[8,[39,28],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"isDeletingSupplier\\\"]]],null],false],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"alert alert-warning\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,7],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"exclamation-triangle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.deleteAccountingPlatformSuppliersForNextSync\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,3],[14,\\\"role\\\",\\\"button\\\"],[14,0,\\\"btn btn-outline-primary\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[15,6,[30,0,[\\\"supplier\\\",\\\"viewContactUrl\\\"]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.viewInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.areYouSureYouWantToDeleteTheContact\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.This action cannot be undone\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"deleteSupplier\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"isDeletingSupplier\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"label\\\",\\\"info-popup\\\",\\\"h4\\\",\\\"input\\\",\\\"and\\\",\\\"not\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"html-safe\\\",\\\"button\\\",\\\"pagination-table\\\",\\\"unless\\\",\\\"label-popup\\\",\\\"or\\\",\\\"a\\\",\\\"perform\\\",\\\"span\\\",\\\"modal-dialog\\\",\\\"sup\\\",\\\"did-insert\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/contacts/contact.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/contacts/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n    {{#if (and this.isEditable this.model.suppliers.last.value.length)}}\n      <div class='flex-grow-1'>\n        <button\n          class='btn btn-link text-danger text-decoration-underline float-start'\n          type='button'\n          {{on 'click' this.onDeletingSuppliers}}\n          disabled={{or (not this.selectedSupplierIds.size) this.isLoading}}\n        >\n          {{t 'common.Delete'}}\n        </button>\n      </div>\n    {{/if}}\n  \n    <input\n      class='form-control m-1 w-auto'\n      placeholder={{t 'common.Search'}}\n      value={{this.searchString}}\n      readonly={{this.isLoading}}\n      {{on 'input' (perform this.onChangeSearchTerm)}}\n      type='search'\n      autofocus='true'\n    />\n  \n    {{#if this.isEditable}}\n      {{#if this.model.hasDuplicateSuppliers.last.value}}\n        <button\n          class='btn btn-primary m-1'\n          {{on 'click' this.openMergeDuplicateSuppliersDialog}}\n          type='button'\n        >{{t 'entity.settings.contacts.Fix duplicates'}}</button>\n      {{/if}}\n      {{#if this.accountingPlatform.isActive}}\n        <button\n          type='button'\n          class='btn btn-primary text-white text-nowrap m-1'\n          disabled={{this.syncWithAccountingPackage.isRunning}}\n          {{on 'click' (perform this.syncWithAccountingPackage)}}\n        >\n          {{#if this.syncWithAccountingPackage.isRunning}}\n            {{t 'common.Syncing'}}&hellip;\n          {{else}}\n            {{t 'common.syncWithLabel' label=this.accountingPlatform.label}}\n          {{/if}}\n        </button>\n      {{/if}}\n      <button\n        type='button'\n        class='btn btn-success text-white text-nowrap m-1'\n        disabled={{this.isLoading}}\n        {{on 'click' this.goNewSupplier}}\n      >\n        <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n      </button>\n    {{/if}}\n  </div>\n  \n  <div class='suppliers__table-container'>\n    <PaginationTable\n      @tableHeader={{this.supplierTableHeader}}\n      @tableData={{this.supplierTableData}}\n      @noDataText={{t 'common.No suppliers'}}\n      @isLoading={{this.model.suppliers.isRunning}}\n      @pageSizes={{this.model.pageSizes}}\n      @pageSize={{this.model.pageSize}}\n      @pageIndex={{this.model.pageNumber}}\n      @onChangePageIndex={{this.onChangePageIndex}}\n      @onChangePageSize={{this.onChangePageSize}}\n      @totalRecords={{this.totalRecords}}\n      @class='table-bordered'\n    />\n  </div>\n  \n  {{#if this.isDeletingSuppliers}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingSuppliers) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      {{#if this.needDeleteXeroSuppliers.length}}\n        <div class='alert alert-warning' role='alert'>\n          <FaIcon @icon='exclamation-triangle' @size='lg' class='me-2' />\n          <span class='me-2'>\n            {{t\n              'entity.settings.contacts.deleteAccountingPlatformSuppliersForNextSync'\n            }}\n          </span>\n  \n          <div class='suppliers__delete-xero-suppliers-container mt-3'>\n            {{#each this.needDeleteXeroSuppliers as |supplier|}}\n              <p class='mt-0'>\n                <a\n                  target='_blank'\n                  href='https://go.xero.com/organisationlogin/default.aspx?shortcode={{this.xeroIntegration.companyId}}&redirecturl=/Contacts/View/{{supplier.xeroContactId}}'\n                  rel='noopener noreferrer'\n                >\n                  <FaIcon @icon='external-link-alt' />\n                  {{supplier.name}}\n                </a>\n              </p>\n            {{/each}}\n          </div>\n        </div>\n      {{/if}}\n  \n      <p>\n        {{t 'entity.settings.contacts.Are you sure you want to delete'}}\n        {{pluralize this.selectedSupplierIds.size (t 'common.supplier')}}?\n        {{t 'common.This action cannot be undone'}}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.deleteSuppliers.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Deleting'}}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.deleteSuppliers.isRunning}}\n              {{on 'click' (perform this.deleteSuppliers)}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.deleteSuppliers.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingSuppliers) false)}}\n            >{{t 'common.Cancel'}}</button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.onMergeDuplicateSuppliers}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeDuplicateSupplierModal}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n  \n      {{#if this.onCheckingDuplicateSuppliers.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <div class='modal-header'>\n          <div>\n            <h2 class='h2'>{{t\n                'entity.settings.contacts.Fix duplicate suppliers'\n              }}</h2>\n          </div>\n        </div>\n  \n        <div class='modal-body suppliers__duplicate-supplier-list-container'>\n          <LazyEach\n            @items={{this.mergeOptions}}\n            @automatic={{true}}\n            @initialNumberOfItemsVisible='5'\n            @increment='5'\n            @itemDisplayName='suppliers'\n            @emptyText={{t 'entity.settings.contacts.No duplicate suppliers'}}\n            as |options identifier optionsIndex|\n          >\n            {{#if (get (get options 0) 'text')}}\n              <div\n                class='card shadow-sm p-3 mb-3 suppliers__duplicate-suppliers-card-{{optionsIndex}}'\n              >\n                <div class='row'>\n                  <div class='col-md col-12'>\n                    <div class='fw-bold'> {{get (get options 0) 'title'}}</div>\n                    <div> {{get (get options 0) 'text'}}</div>\n                  </div>\n                  <div class='col-md col-12'>\n                    <button\n                      class='btn btn-primary float-end'\n                      {{on 'click' (perform this.mergeDuplicatedSupplier)}}\n                      disabled={{this.mergeDuplicatedSupplier.isRunning}}\n                      type='button'\n                    >\n                      {{#if this.mergeDuplicatedSupplier.isRunning}}\n                        <span\n                          class='spinner-border spinner-border-sm'\n                        ></span>&nbsp;&nbsp;{{t 'common.Merging'}}…\n                      {{else}}\n                        <span>\n                          {{t 'common.Merge'}}\n                        </span>\n                      {{/if}}\n                    </button>\n                  </div>\n                </div>\n              </div>\n            {{else}}\n              <div\n                class='{{identifier}}\n                  card shadow-sm p-3 mb-3 suppliers__duplicate-suppliers-card-{{optionsIndex}}'\n              >\n                {{#each options as |option index|}}\n                  <div\n                    class='row py-2 align-items-center\n                      {{if\n                        (not-eq index (math options.length \"-\" 1))\n                        \"border-bottom\"\n                      }}'\n                  >\n                    <div class='col-md col-12'>\n                      <div\n                        class='fw-bold\n                          {{if\n                            (eq\n                              option.supplierInfo.name.attributeAction \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq option.supplierInfo.name.attributeAction \"ADDED\")\n                            \"text-success\"\n                          }}'\n                      >\n                        {{option.supplierInfo.name.value}}\n                      </div>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.contactPerson.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.contactPerson.attributeAction\n                              \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.contactPerson.value}}\n                          {{option.supplierInfo.contactPerson.value}}\n                        {{else}}\n                          {{t 'entity.settings.contacts.No contact person'}}\n                        {{/if}}\n                      </div>\n                    </div>\n                    <div class='col-md col-12'>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.contactEmail.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.contactEmail.attributeAction\n                              \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.contactEmail.value}}\n                          {{option.supplierInfo.contactEmail.value}}\n                        {{else}}\n                          {{t 'entity.settings.contacts.No contact Email'}}\n                        {{/if}}\n                      </div>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.contactNumber.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.contactNumber.attributeAction\n                              \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.contactNumber.value}}\n                          {{option.supplierInfo.contactNumber.value}}\n                        {{else}}\n                          {{t 'entity.settings.contacts.No contact number'}}\n                        {{/if}}\n                      </div>\n                    </div>\n                    <div class='col-md col-12'>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.address.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.address.attributeAction \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.address.value}}\n                          {{option.supplierInfo.address.value}}\n                        {{else}}\n                          {{t 'entity.settings.contacts.No address'}}\n                        {{/if}}\n                      </div>\n                    </div>\n                    <div class='col-md col-12'>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.paymentTerm.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.paymentTerm.attributeAction\n                              \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.paymentTerm.value}}\n                          {{option.supplierInfo.paymentTerm.value}}\n                        {{else}}\n                          {{t 'shared.contacts.No payment terms'}}\n                        {{/if}}\n                      </div>\n                    </div>\n                    <div class='col-md col-12'>\n                      {{#if\n                        (or\n                          (eq option.mergeType 'TARGET_ATTRIBUTES_READ_ONLY')\n                          (eq option.mergeType 'TARGET_ATTRIBUTES_UPDATED')\n                        )\n                      }}\n                        <button\n                          class='btn btn-primary float-end'\n                          {{on\n                            'click'\n                            (perform\n                              this.mergeAndUseDuplicatedSupplier options index\n                            )\n                          }}\n                          disabled={{and\n                            (eq this.mergeIndex optionsIndex)\n                            this.mergeAndUseDuplicatedSupplier.isRunning\n                          }}\n                          type='button'\n                        >\n                          {{#if\n                            (and\n                              (eq this.mergeIndex optionsIndex)\n                              this.mergeAndUseDuplicatedSupplier.isRunning\n                            )\n                          }}\n                            <span\n                              class='spinner-border spinner-border-sm'\n                            ></span>&nbsp;&nbsp;{{t 'common.Merging'}}…\n                          {{else}}\n                            <span>\n                              {{t 'common.mergeUse'}}\n                            </span>\n                          {{/if}}\n                        </button>\n                      {{/if}}\n                      {{#if (eq option.mergeType 'READ_ONLY')}}\n                        {{#if\n                          (and\n                            this.accountingPlatform.isActive\n                            option.supplierInfo.xeroContactId\n                          )\n                        }}\n                          <div class='pull-right'>\n                            <InfoPopup\n                              @text={{t\n                                'entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst'\n                              }}\n                            />\n                            <a\n                              href='https://go.xero.com/organisationlogin/default.aspx?shortcode={{this.xeroIntegration.companyId}}&redirecturl=/Contacts/View/{{option.supplierInfo.xeroContactId}}'\n                              class='btn btn-secondary ms-5'\n                              target='_blank'\n                              rel='noopener noreferrer'\n                              role='button'\n                            >\n                              {{t 'common.View in Xero'}}\n                            </a>\n                          </div>\n                        {{else if\n                          (and\n                            this.accountingPlatform.isActive\n                            option.supplierInfo.quickbooksContactId\n                          )\n                        }}\n                          <div class='pull-right'>\n                            <InfoPopup\n                              @text={{t\n                                'entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst'\n                              }}\n                            />\n                            <a\n                              href='{{this.quickbooks.quickbooksUrl}}/app/customerdetail?nameId={{option.supplierInfo.quickbooksContactId}}'\n                              class='btn btn-secondary ms-5'\n                              target='_blank'\n                              rel='noopener noreferrer'\n                              role='button'\n                            >\n                              {{t 'entity.settings.contacts.View in QuickBooks'}}\n                            </a>\n                          </div>\n  \n                        {{else if\n                          (and\n                            this.accountingPlatform.isActive\n                            option.supplierInfo.quickbooksVendorId\n                          )\n                        }}\n                          <div class='pull-right'>\n                            <InfoPopup\n                              @text={{t\n                                'entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst'\n                              }}\n                            />\n                            <a\n                              href='{{this.quickbooks.quickbooksUrl}}/app/vendordetail?nameId={{option.supplierInfo.quickbooksVendorId}}'\n                              class='btn btn-secondary ms-5'\n                              target='_blank'\n                              rel='noopener noreferrer'\n                              role='button'\n                            >\n                              {{t 'entity.settings.contacts.View in QuickBooks'}}\n                            </a>\n                          </div>\n                        {{/if}}\n                      {{/if}}\n                    </div>\n                  </div>\n                {{/each}}\n              </div>\n            {{/if}}\n          </LazyEach>\n        </div>\n  \n        <div class='modal-footer d-flex'>\n          <div class='d-flex align-items-center'>\n            <button\n              type='button'\n              class='btn btn-secondary text-white ms-2'\n              disabled={{or\n                this.mergeAndUseDuplicatedSupplier.isRunning\n                this.mergeDuplicatedSupplier.isRunning\n              }}\n              {{on 'click' this.closeDuplicateSupplierModal}}\n            >{{t 'common.Close'}}</button>\n          </div>\n        </div>\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"AdE0TKIx\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"model\\\",\\\"suppliers\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,4],[[28,[37,5],[[30,0,[\\\"selectedSupplierIds\\\",\\\"size\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"onDeletingSuppliers\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,7],[\\\"common.Search\\\"],null]],[16,2,[30,0,[\\\"searchString\\\"]]],[16,\\\"readonly\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,4,\\\"search\\\"],[4,[38,6],[\\\"input\\\",[28,[37,9],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"hasDuplicateSuppliers\\\",\\\"last\\\",\\\"value\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary m-1\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"openMergeDuplicateSuppliersDialog\\\"]]],null],[12],[1,[28,[35,7],[\\\"entity.settings.contacts.Fix duplicates\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"syncWithAccountingPackage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"syncWithAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"syncWithAccountingPackage\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,7],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,7],[\\\"common.syncWithLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"goNewSupplier\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"suppliers__table-container\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,11],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"supplierTableHeader\\\"]],[30,0,[\\\"supplierTableData\\\"]],[28,[37,7],[\\\"common.No suppliers\\\"],null],[30,0,[\\\"model\\\",\\\"suppliers\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageNumber\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeletingSuppliers\\\"]],[[[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"isDeletingSuppliers\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"needDeleteXeroSuppliers\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-warning\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"exclamation-triangle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.deleteAccountingPlatformSuppliersForNextSync\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"suppliers__delete-xero-suppliers-container mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"needDeleteXeroSuppliers\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n              \\\"],[10,3],[14,\\\"target\\\",\\\"_blank\\\"],[15,6,[29,[\\\"https://go.xero.com/organisationlogin/default.aspx?shortcode=\\\",[30,0,[\\\"xeroIntegration\\\",\\\"companyId\\\"]],\\\"&redirecturl=/Contacts/View/\\\",[30,1,[\\\"xeroContactId\\\"]]]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.Are you sure you want to delete\\\"],null]],[1,\\\"\\\\n      \\\"],[1,[28,[35,20],[[30,0,[\\\"selectedSupplierIds\\\",\\\"size\\\"]],[28,[37,7],[\\\"common.supplier\\\"],null]],null]],[1,\\\"?\\\\n      \\\"],[1,[28,[35,7],[\\\"common.This action cannot be undone\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteSuppliers\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteSuppliers\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"deleteSuppliers\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteSuppliers\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"isDeletingSuppliers\\\"]]],null],false],null]],null],[12],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onMergeDuplicateSuppliers\\\"]],[[[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeDuplicateSupplierModal\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"onCheckingDuplicateSuppliers\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,22],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,[28,[35,7],[\\\"entity.settings.contacts.Fix duplicate suppliers\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-body suppliers__duplicate-supplier-list-container\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,24],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\",\\\"@emptyText\\\"],[[30,0,[\\\"mergeOptions\\\"]],true,\\\"5\\\",\\\"5\\\",\\\"suppliers\\\",[28,[37,7],[\\\"entity.settings.contacts.No duplicate suppliers\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,25],[[28,[37,25],[[30,2],0],null],\\\"text\\\"],null],[[[1,\\\"            \\\"],[10,0],[15,0,[29,[\\\"card shadow-sm p-3 mb-3 suppliers__duplicate-suppliers-card-\\\",[30,4]]]],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"fw-bold\\\"],[12],[1,\\\" \\\"],[1,[28,[35,25],[[28,[37,25],[[30,2],0],null],\\\"title\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,0],[12],[1,\\\" \\\"],[1,[28,[35,25],[[28,[37,25],[[30,2],0],null],\\\"text\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary float-end\\\"],[16,\\\"disabled\\\",[30,0,[\\\"mergeDuplicatedSupplier\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"mergeDuplicatedSupplier\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"mergeDuplicatedSupplier\\\",\\\"isRunning\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Merging\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[10,1],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,7],[\\\"common.Merge\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[15,0,[29,[[30,3],\\\"\\\\n                card shadow-sm p-3 mb-3 suppliers__duplicate-suppliers-card-\\\",[30,4]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,2]],null]],null],null,[[[1,\\\"                \\\"],[10,0],[15,0,[29,[\\\"row py-2 align-items-center\\\\n                    \\\",[52,[28,[37,26],[[30,6],[28,[37,27],[[30,2,[\\\"length\\\"]],\\\"-\\\",1],null]],null],\\\"border-bottom\\\"]]]],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[\\\"fw-bold\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"name\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"name\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n                      \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"name\\\",\\\"value\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactPerson\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactPerson\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"contactPerson\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"contactPerson\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.No contact person\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactEmail\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactEmail\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"contactEmail\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"contactEmail\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.No contact Email\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactNumber\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactNumber\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"contactNumber\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"contactNumber\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.No contact number\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"address\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"address\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"address\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"address\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.No address\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"paymentTerm\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"paymentTerm\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"paymentTerm\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"paymentTerm\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"shared.contacts.No payment terms\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[28,[37,28],[[30,5,[\\\"mergeType\\\"]],\\\"TARGET_ATTRIBUTES_READ_ONLY\\\"],null],[28,[37,28],[[30,5,[\\\"mergeType\\\"]],\\\"TARGET_ATTRIBUTES_UPDATED\\\"],null]],null],[[[1,\\\"                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary float-end\\\"],[16,\\\"disabled\\\",[28,[37,2],[[28,[37,28],[[30,0,[\\\"mergeIndex\\\"]],[30,4]],null],[30,0,[\\\"mergeAndUseDuplicatedSupplier\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"mergeAndUseDuplicatedSupplier\\\"]],[30,2],[30,6]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[28,[37,28],[[30,0,[\\\"mergeIndex\\\"]],[30,4]],null],[30,0,[\\\"mergeAndUseDuplicatedSupplier\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"                          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Merging\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                          \\\"],[10,1],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],[\\\"common.mergeUse\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,28],[[30,5,[\\\"mergeType\\\"]],\\\"READ_ONLY\\\"],null],[[[41,[28,[37,2],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[30,5,[\\\"supplierInfo\\\",\\\"xeroContactId\\\"]]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n                          \\\"],[8,[39,29],null,[[\\\"@text\\\"],[[28,[37,7],[\\\"entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst\\\"],null]]],null],[1,\\\"\\\\n                          \\\"],[10,3],[15,6,[29,[\\\"https://go.xero.com/organisationlogin/default.aspx?shortcode=\\\",[30,0,[\\\"xeroIntegration\\\",\\\"companyId\\\"]],\\\"&redirecturl=/Contacts/View/\\\",[30,5,[\\\"supplierInfo\\\",\\\"xeroContactId\\\"]]]]],[14,0,\\\"btn btn-secondary ms-5\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],[\\\"common.View in Xero\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[30,5,[\\\"supplierInfo\\\",\\\"quickbooksContactId\\\"]]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n                          \\\"],[8,[39,29],null,[[\\\"@text\\\"],[[28,[37,7],[\\\"entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst\\\"],null]]],null],[1,\\\"\\\\n                          \\\"],[10,3],[15,6,[29,[[30,0,[\\\"quickbooks\\\",\\\"quickbooksUrl\\\"]],\\\"/app/customerdetail?nameId=\\\",[30,5,[\\\"supplierInfo\\\",\\\"quickbooksContactId\\\"]]]]],[14,0,\\\"btn btn-secondary ms-5\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.View in QuickBooks\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[30,5,[\\\"supplierInfo\\\",\\\"quickbooksVendorId\\\"]]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n                          \\\"],[8,[39,29],null,[[\\\"@text\\\"],[[28,[37,7],[\\\"entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst\\\"],null]]],null],[1,\\\"\\\\n                          \\\"],[10,3],[15,6,[29,[[30,0,[\\\"quickbooks\\\",\\\"quickbooksUrl\\\"]],\\\"/app/vendordetail?nameId=\\\",[30,5,[\\\"supplierInfo\\\",\\\"quickbooksVendorId\\\"]]]]],[14,0,\\\"btn btn-secondary ms-5\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.View in QuickBooks\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"]],[]],null]],[]]]],[]]]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"]],[2,3,4]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[28,[37,4],[[30,0,[\\\"mergeAndUseDuplicatedSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"mergeDuplicatedSupplier\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"closeDuplicateSupplierModal\\\"]]],null],[12],[1,[28,[35,7],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"supplier\\\",\\\"options\\\",\\\"identifier\\\",\\\"optionsIndex\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"and\\\",\\\"button\\\",\\\"or\\\",\\\"not\\\",\\\"on\\\",\\\"t\\\",\\\"input\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"span\\\",\\\"each\\\",\\\"-track-array\\\",\\\"p\\\",\\\"a\\\",\\\"pluralize\\\",\\\"footer\\\",\\\"loading-icon\\\",\\\"h2\\\",\\\"lazy-each\\\",\\\"get\\\",\\\"not-eq\\\",\\\"math\\\",\\\"eq\\\",\\\"info-popup\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/contacts/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/estimates/embedded-page\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=this.model.pageTitle}}\n    />\n  {{/unless}}\n  {{#if this.model.sessionId.isRunning}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    {{#if (or this.model.isUnknown (not this.model.sessionId.value))}}\n      <div\n        class='flex-grow-1 text-center p-5 d-flex flex-column align-items-center'\n      >\n        <FaIcon @icon='dizzy' @size='5x' class='mb-3' />\n        <h1 class='mb-0'>Oops!</h1>\n        <h3>{{t 'common.Could not load page'}}</h3>\n      </div>\n    {{else}}\n      <PricingPage\n        @path={{this.model.path}}\n        @sessionId={{this.model.sessionId.value}}\n      />\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"Dzl8HJ9B\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[30,0,[\\\"model\\\",\\\"pageTitle\\\"]]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"sessionId\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,0,[\\\"model\\\",\\\"isUnknown\\\"]],[28,[37,7],[[30,0,[\\\"model\\\",\\\"sessionId\\\",\\\"value\\\"]]],null]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex-grow-1 text-center p-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],[[24,0,\\\"mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"dizzy\\\",\\\"5x\\\"]],null],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"Oops!\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,12],[\\\"common.Could not load page\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,13],null,[[\\\"@path\\\",\\\"@sessionId\\\"],[[30,0,[\\\"model\\\",\\\"path\\\"]],[30,0,[\\\"model\\\",\\\"sessionId\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"or\\\",\\\"not\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"h3\\\",\\\"t\\\",\\\"pricing-page\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/estimates/embedded-page.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/integrations\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Integrations')\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Integrations'}}</h2>\n      {{/if}}\n    </header>\n  \n    {{#if this.model.defaultEntityFeatures.length}}\n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-3'>{{t\n            'entity.settings.integrations.Integration options'\n          }}</h3>\n        {{#each this.model.defaultEntityFeatures as |feature|}}\n          <PtlInput\n            @type='checkbox'\n            @label={{feature.label}}\n            @key={{feature.key}}\n            @description={{feature.description}}\n            @model={{this.model.featurePermissionsChangeset}}\n            disabled={{this.updateCompanyFeatures.isRunning}}\n          />\n        {{/each}}\n        <div class='d-flex flex-grow-1 mt-3'>\n          <button\n            type='button'\n            class='btn btn-primary ms-auto'\n            disabled={{this.updateCompanyFeatures.isRunning}}\n            {{on\n              'click'\n              (perform\n                this.updateCompanyFeatures this.model.featurePermissionsChangeset\n              )\n            }}\n          >\n            {{#if this.updateCompanyFeatures.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t\n                'entity.settings.integrations.Saving options'\n              }}&hellip;\n            {{else}}\n              {{t 'entity.settings.integrations.Save options'}}\n            {{/if}}\n          </button>\n        </div>\n      </PtlForm>\n    {{/if}}\n  \n    {{#if this.newFeatureFlags.entityCanUseIPS}}\n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-3'>{{t 'common.IPS'}}</h3>\n  \n        {{#if this.ips.ready}}\n          <IpsUsage class='mt-0 mb-3' />\n        {{/if}}\n  \n        {{#if this.model.ipsConnection.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else if this.model.ipsConnection.last.value}}\n          {{#let\n            (changeset\n              this.model.ipsConnection.last.value this.ipsConnectionValidator\n            )\n            as |ipsCon|\n          }}\n            {{#if ipsCon.isNew}}\n              {{! no connection yet, so this form creates one; the server issues the ipsEmail }}\n              <p class='mt-0'>\n                {{t\n                  'entity.settings.integrations.setUpIpsToStartProcessingYourDocuments'\n                }}\n              </p>\n  \n              <PtlInput\n                @type='email'\n                @label={{t\n                  'entity.settings.integrations.Email address for unprocessed documents'\n                }}\n                @key='contactEmail'\n                @model={{ipsCon}}\n                @required={{true}}\n                @description={{t\n                  'entity.settings.integrations.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress'\n                }}\n                @forceValidationVisible={{gt\n                  this.saveIpsConnection.performCount\n                  0\n                }}\n                disabled={{this.saveIpsConnection.isRunning}}\n                data-test-ips-contact-email\n              />\n  \n              <div class='d-flex flex-grow-1 mt-3'>\n                <button\n                  data-test-ips-create\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{this.saveIpsConnection.isRunning}}\n                  {{on 'click' (perform this.saveIpsConnection ipsCon)}}\n                >\n                  {{#if this.saveIpsConnection.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t\n                      'entity.settings.integrations.Setting up IPS'\n                    }}&hellip;\n                  {{else}}\n                    {{t 'entity.settings.integrations.Set up IPS'}}\n                  {{/if}}\n                </button>\n              </div>\n            {{else}}\n              <div class='mb-3'>\n                <label class='mb-1' for='ips-email'>\n                  {{t 'entity.settings.integrations.Your IPS email address'}}\n                </label>\n                <Input\n                  data-test-ips-email\n                  class='form-control'\n                  id='ips-email'\n                  @type='text'\n                  @value={{ipsCon.ipsEmail}}\n                  disabled={{true}}\n                />\n                <div class='form-text text-muted'>\n                  {{t\n                    'entity.settings.integrations.documentsSentToThisAddressWillArriveInTheSystem'\n                  }}\n                </div>\n              </div>\n  \n              <PtlInput\n                @type='email'\n                @label={{t\n                  'entity.settings.integrations.Email address for unprocessed documents'\n                }}\n                @key='contactEmail'\n                @model={{ipsCon}}\n                @required={{true}}\n                @description={{t\n                  'entity.settings.integrations.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress'\n                }}\n                @forceValidationVisible={{gt\n                  this.saveIpsConnection.performCount\n                  0\n                }}\n                disabled={{this.saveIpsConnection.isRunning}}\n                data-test-ips-contact-email\n              />\n  \n              <div class='d-flex flex-grow-1 mt-3'>\n                <button\n                  data-test-ips-save\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{this.saveIpsConnection.isRunning}}\n                  {{on 'click' (perform this.saveIpsConnection ipsCon)}}\n                >\n                  {{#if this.saveIpsConnection.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n                  {{else}}\n                    {{t 'common.Save'}}\n                    {{t 'common.IPS'}}\n                  {{/if}}\n                </button>\n              </div>\n            {{/if}}\n          {{/let}}\n        {{else}}\n          <p class='mt-0'>\n            {{t\n              'entity.settings.integrations.noIpsConnectionFoundPleaseContactSupport'\n            }}\n          </p>\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'canUsePayroll' 'canUseBills' 'canUseFinancialReporting'\n      )\n    }}\n      {{#unless this.quickbooks.ready}}\n        <PtlForm class='width--small mb-4'>\n          <h3 class='h2'>Xero</h3>\n          {{#if this.xeroCompanyName}}\n            <div class='row align-items-center mt-2 mb-3'>\n              <a\n                data-test-xero-organisation-link\n                class='link'\n                target='_black'\n                href='https://go.xero.com/organisationlogin/default.aspx?shortcode={{this.shortCode}}'\n              >\n                {{this.xeroCompanyName}}&nbsp;&nbsp;\n                <FaIcon @icon='external-link-alt' @fixedWidth={{true}} />\n              </a>\n            </div>\n          {{else}}\n            <div class='mt-2'>\n              <button\n                data-test-xero-connect\n                type='button'\n                class='btn btn-primary'\n                {{on 'click' (perform this.setXeroCompany)}}\n              >{{t\n                  'entity.settings.integrations.Connect Xero organisation'\n                }}</button>\n            </div>\n          {{/if}}\n  \n          {{#if this.xeroCompanyName}}\n            {{#let\n              (changeset this.xeroConnection this.xeroValidationMap)\n              as |xeroModel|\n            }}\n              <PtlInput\n                @type='select'\n                @label={{t 'entity.settings.integrations.Send bills with status'}}\n                @key='defaultInvoiceStatus'\n                @options={{this.defaultInvoiceStatusOptions}}\n                @model={{xeroModel}}\n                @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n                disabled={{this.saveEntity.isRunning}}\n              />\n              <PtlInput\n                @type='select'\n                @label={{t\n                  'entity.settings.integrations.Send credit notes with status'\n                }}\n                @key='defaultCreditNoteStatus'\n                @options={{this.defaultCreditNoteStatusOptions}}\n                @model={{xeroModel}}\n                @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n                disabled={{this.saveEntity.isRunning}}\n              />\n              <PtlInput\n                @type='select'\n                @label={{t\n                  'entity.settings.integrations.Send timesheets with status'\n                }}\n                @key='defaultTimesheetStatus'\n                @options={{this.defaultTimesheetStatusOptions}}\n                @model={{xeroModel}}\n                @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n                disabled={{this.saveEntity.isRunning}}\n              />\n              <div class='d-flex flex-grow-1 mt-3'>\n                <button\n                  data-test-xero-disconnect\n                  type='button'\n                  class='btn btn-danger text-white'\n                  disabled={{this.removeXeroCompany.isRunning}}\n                  {{on 'click' (perform this.removeXeroCompany)}}\n                >\n                  {{#if this.removeXeroCompany.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t 'common.Disconnecting'}}&hellip;\n                  {{else}}\n                    {{t 'common.Disconnect'}}\n                  {{/if}}\n                </button>\n                <button\n                  data-test-xero-save\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{this.saveXeroConnection.isRunning}}\n                  {{on 'click' (perform this.saveXeroConnection xeroModel)}}\n                >\n                  {{#if this.saveXeroConnection.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n                  {{else}}\n                    {{t 'common.Save'}}\n                    Xero\n                  {{/if}}\n                </button>\n              </div>\n            {{/let}}\n          {{/if}}\n        </PtlForm>\n      {{/unless}}\n  \n      {{#unless this.xeroIntegration.ready}}\n        <PtlForm class='width--small mb-4'>\n          <h3 class='h2'>{{t 'common.QuickBooks'}}</h3>\n          {{#if (and this.quickbooks.companyName this.quickbooks.ready)}}\n            <div class='row align-items-center mt-2 mb-3'>\n              <a\n                class='link'\n                target='_black'\n                href='{{this.quickbooksUrl}}/app/get-things-done?companyid={{this.quickbooks.companyId}}'\n              >\n                {{this.quickbooks.companyName}}&nbsp;&nbsp;\n                <FaIcon @icon='external-link-alt' @fixedWidth={{true}} />\n              </a>\n            </div>\n  \n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-danger text-white'\n                disabled={{this.removeQuickBooksCompany.isRunning}}\n                {{on 'click' (perform this.removeQuickBooksCompany)}}\n              >\n                {{#if this.removeQuickBooksCompany.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Disconnecting'}}&hellip;\n                {{else}}\n                  {{t 'common.Disconnect'}}\n                {{/if}}\n              </button>\n            </div>\n          {{else}}\n            <div class='mt-2'>\n              <button\n                type='button'\n                class='btn btn-primary'\n                {{on 'click' (perform this.setQuickBooksCompany)}}\n              >\n                {{t 'entity.settings.integrations.Connect to QuickBooks'}}\n              </button>\n            </div>\n          {{/if}}\n        </PtlForm>\n      {{/unless}}\n    {{/if}}\n  \n    {{#unless this.updatePlaceMakersIntegration.isRunning}}\n      {{#if (eq this.sessionData.entity.region 'NZL')}}\n        <PtlForm class='width--small mb-4'>\n          <h3 class='m-0'>PlaceMakers</h3>\n          {{! computed property is not computing value change, we added the task Running check to unload and render}}\n          {{#if (includes-feature-flags 'canUsePlaceMakers')}}\n            <PmIntegrationSettings />\n          {{else}}\n            <div class='m-0'>\n              <p>{{t\n                  'entity.settings.integrations.toUseThePlacemakersIntegrationPleaseEnableItFirst'\n                }}</p>\n              <button\n                type='button'\n                class='btn btn-primary'\n                {{on 'click' (perform this.updatePlaceMakersIntegration true)}}\n                disabled={{this.updatePlaceMakersIntegration.isRunning}}\n              >\n                {{#if this.updatePlaceMakersIntegration.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Enabling'}}&hellip;\n                {{else}}\n                  {{t 'common.Enable'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/if}}\n        </PtlForm>\n      {{/if}}\n    {{/unless}}\n  \n    {{#if (includes-feature-flags 'canUseItmInvoiceIntegration')}}\n      {{#if (eq this.sessionData.entity.region 'NZL')}}\n        <PtlForm class='width--small mb-4'>\n          <h3>ITM {{t 'common.Invoice'}}</h3>\n          {{#if this.model.itmSuppliers.isRunning}}\n            <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n          {{else}}\n            <div>\n              <p>{{t\n                  'entity.settings.integrations.ifYouHaveAnAccountWithAnItmStoreWeCanImportYourInvoicesAutomatically'\n                }}</p>\n              <p>{{t\n                  'entity.settings.integrations.pleaseSelectTheITMStoresYouHaveAccountsWithAndClick'\n                }}\n                <i>{{t\n                    'entity.settings.integrations.Request Integration'\n                  }}</i>.</p>\n            </div>\n  \n            <PowerSelectMultiple\n              @tagName='div'\n              @options={{this.requestableItmStores}}\n              @selected={{this.selectedItmStores}}\n              @searchEnabled={{true}}\n              @searchField='name'\n              @placeholder={{t 'entity.settings.integrations.Select ITM stores'}}\n              @onChange={{fn (mut this.selectedItmStores)}}\n              as |store|\n            >\n              {{store.name}}\n            </PowerSelectMultiple>\n  \n            <div class='mt-2'>\n              <button\n                type='button'\n                class='btn btn-primary pull-right ms-auto'\n                disabled={{or\n                  this.requestItmStores.isRunning\n                  (not this.selectedItmStores.length)\n                }}\n                {{on 'click' (perform this.requestItmStores)}}\n              >\n                {{#if this.requestItmStores.isRunning}}\n                  {{t\n                    'entity.settings.integrations.Requesting Integration'\n                  }}&hellip;\n                {{else}}\n                  {{t 'entity.settings.integrations.Request Integration'}}\n                {{/if}}\n              </button>\n            </div>\n  \n            {{#if this.requestedItmStores.length}}\n              <div>\n                <p>{{t\n                    'entity.settings.integrations.integrationRequestsHaveBeenSentToTheFollowingStores'\n                  }}</p>\n                <p>{{t\n                    'entity.settings.integrations.itMayTakeAFewDaysForAStoreToFulfilTheRequestIfYouAreHavingIssuesWithYourIntegrationPlease'\n                  }}\n                  <a class='link' href='#' {{on 'click' this.contactSupport}}>{{t\n                      'entity.settings.integrations.Contact support'\n                    }}</a>.\n                </p>\n              </div>\n              <div>\n                <table class='itm-invoice-integration-settings-table'>\n                  <thead>\n                    <tr>\n                      <th>{{t 'common.Integration'}}</th>\n                      <th>{{t 'common.Status'}}</th>\n                      <th>{{t 'common.Action'}}</th>\n                    </tr>\n                  </thead>\n                  <tbody>\n                    {{#each this.requestedItmStores as |store|}}\n                      <tr>\n                        <td>{{store.name}}</td>\n                        <td>{{store.status}}</td>\n                        <td>\n                          {{#if\n                            (or\n                              (eq store.status 'Connected')\n                              (eq store.status 'Pending')\n                            )\n                          }}\n                            <button\n                              class='text-button'\n                              type='button'\n                              {{on 'click' (fn this.cancelItmStoreRequest store)}}\n                            >\n                              <FaIcon\n                                @icon='times'\n                                @fixedWidth={{true}}\n                                @size='1'\n                              />\n                              {{t 'common.Cancel'}}\n                            </button>\n                          {{else if (eq store.status 'Canceled')}}\n                            <button\n                              class='text-button'\n                              type='button'\n                              {{on\n                                'click'\n                                (fn this.reconnectITmStoreRequest store)\n                              }}\n                            >\n                              <FaIcon @icon='plug' @fixedWidth={{true}} />\n                              {{t 'common.Reconnect'}}\n                            </button>\n                          {{/if}}\n                        </td>\n                      </tr>\n                    {{/each}}\n                  </tbody>\n                </table>\n              </div>\n            {{else}}\n              <div class='itm-invoice-integration-settings-table__placeholder'>\n                <FaIcon @icon='cogs' @fixedWidth={{true}} @size='2' />\n                <p>{{t\n                    'entity.settings.integrations.yourIntegrationRequestsWillAppearHere'\n                  }}</p>\n              </div>\n            {{/if}}\n          {{/if}}\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"tTh/Z40v\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Integrations\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Integrations\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"defaultEntityFeatures\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.Integration options\\\"],null]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[30,0,[\\\"model\\\",\\\"defaultEntityFeatures\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"updateCompanyFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\"],[\\\"checkbox\\\",[30,1,[\\\"label\\\"]],[30,1,[\\\"key\\\"]],[30,1,[\\\"description\\\"]],[30,0,[\\\"model\\\",\\\"featurePermissionsChangeset\\\"]]]],null],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateCompanyFeatures\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"updateCompanyFeatures\\\"]],[30,0,[\\\"model\\\",\\\"featurePermissionsChangeset\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateCompanyFeatures\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Saving options\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Save options\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseIPS\\\"]],[[[1,\\\"    \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"common.IPS\\\"],null]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[1,\\\"        \\\"],[8,[39,19],[[24,0,\\\"mt-0 mb-3\\\"]],null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ipsConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,20],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"ipsConnection\\\",\\\"last\\\",\\\"value\\\"]],[[[44,[[28,[37,22],[[30,0,[\\\"model\\\",\\\"ipsConnection\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"ipsConnectionValidator\\\"]]],null]],[[[41,[30,2,[\\\"isNew\\\"]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.setUpIpsToStartProcessingYourDocuments\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-ips-contact-email\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\"],[\\\"email\\\",[28,[37,4],[\\\"entity.settings.integrations.Email address for unprocessed documents\\\"],null],\\\"contactEmail\\\",[30,2],true,[28,[37,4],[\\\"entity.settings.integrations.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress\\\"],null],[28,[37,24],[[30,0,[\\\"saveIpsConnection\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"data-test-ips-create\\\",\\\"\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveIpsConnection\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Setting up IPS\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Set up IPS\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"ips-email\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Your IPS email address\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[39,26],[[24,\\\"data-test-ips-email\\\",\\\"\\\"],[24,0,\\\"form-control\\\"],[24,1,\\\"ips-email\\\"],[16,\\\"disabled\\\",true]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,2,[\\\"ipsEmail\\\"]]]],null],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.documentsSentToThisAddressWillArriveInTheSystem\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-ips-contact-email\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\"],[\\\"email\\\",[28,[37,4],[\\\"entity.settings.integrations.Email address for unprocessed documents\\\"],null],\\\"contactEmail\\\",[30,2],true,[28,[37,4],[\\\"entity.settings.integrations.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress\\\"],null],[28,[37,24],[[30,0,[\\\"saveIpsConnection\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"data-test-ips-save\\\",\\\"\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveIpsConnection\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"common.IPS\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[2]]]],[]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.noIpsConnectionFoundPleaseContactSupport\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"canUsePayroll\\\",\\\"canUseBills\\\",\\\"canUseFinancialReporting\\\"],null],[[[41,[51,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]]],[[[1,\\\"      \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Xero\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"xeroCompanyName\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"row align-items-center mt-2 mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,3],[14,\\\"data-test-xero-organisation-link\\\",\\\"\\\"],[14,0,\\\"link\\\"],[14,\\\"target\\\",\\\"_black\\\"],[15,6,[29,[\\\"https://go.xero.com/organisationlogin/default.aspx?shortcode=\\\",[30,0,[\\\"shortCode\\\"]]]]],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"xeroCompanyName\\\"]]],[1,\\\"  \\\\n              \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"data-test-xero-connect\\\",\\\"\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"setXeroCompany\\\"]]],null]],null],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.Connect Xero organisation\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"xeroCompanyName\\\"]],[[[44,[[28,[37,22],[[30,0,[\\\"xeroConnection\\\"]],[30,0,[\\\"xeroValidationMap\\\"]]],null]],[[[1,\\\"            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,4],[\\\"entity.settings.integrations.Send bills with status\\\"],null],\\\"defaultInvoiceStatus\\\",[30,0,[\\\"defaultInvoiceStatusOptions\\\"]],[30,3],[28,[37,24],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,4],[\\\"entity.settings.integrations.Send credit notes with status\\\"],null],\\\"defaultCreditNoteStatus\\\",[30,0,[\\\"defaultCreditNoteStatusOptions\\\"]],[30,3],[28,[37,24],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,4],[\\\"entity.settings.integrations.Send timesheets with status\\\"],null],\\\"defaultTimesheetStatus\\\",[30,0,[\\\"defaultTimesheetStatusOptions\\\"]],[30,3],[28,[37,24],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"data-test-xero-disconnect\\\",\\\"\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"removeXeroCompany\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"removeXeroCompany\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"removeXeroCompany\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Disconnecting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Disconnect\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"data-test-xero-save\\\",\\\"\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveXeroConnection\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveXeroConnection\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveXeroConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n                  Xero\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]]]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]]],[[[1,\\\"      \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"common.QuickBooks\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[[30,0,[\\\"quickbooks\\\",\\\"companyName\\\"]],[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"row align-items-center mt-2 mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,3],[14,0,\\\"link\\\"],[14,\\\"target\\\",\\\"_black\\\"],[15,6,[29,[[30,0,[\\\"quickbooksUrl\\\"]],\\\"/app/get-things-done?companyid=\\\",[30,0,[\\\"quickbooks\\\",\\\"companyId\\\"]]]]],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"quickbooks\\\",\\\"companyName\\\"]]],[1,\\\"  \\\\n              \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"removeQuickBooksCompany\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"removeQuickBooksCompany\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"removeQuickBooksCompany\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Disconnecting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Disconnect\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"setQuickBooksCompany\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Connect to QuickBooks\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"updatePlaceMakersIntegration\\\",\\\"isRunning\\\"]]],[[[41,[28,[37,31],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"region\\\"]],\\\"NZL\\\"],null],[[[1,\\\"      \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"PlaceMakers\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[\\\"canUsePlaceMakers\\\"],null],[[[1,\\\"          \\\"],[8,[39,33],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.toUseThePlacemakersIntegrationPleaseEnableItFirst\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updatePlaceMakersIntegration\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"updatePlaceMakersIntegration\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updatePlaceMakersIntegration\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Enabling\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Enable\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[\\\"canUseItmInvoiceIntegration\\\"],null],[[[41,[28,[37,31],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"region\\\"]],\\\"NZL\\\"],null],[[[1,\\\"      \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[12],[1,\\\"ITM \\\"],[1,[28,[35,4],[\\\"common.Invoice\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"itmSuppliers\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[8,[39,20],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.ifYouHaveAnAccountWithAnItmStoreWeCanImportYourInvoicesAutomatically\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.pleaseSelectTheITMStoresYouHaveAccountsWithAndClick\\\"],null]],[1,\\\"\\\\n              \\\"],[10,\\\"i\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.Request Integration\\\"],null]],[13],[1,\\\".\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,35],null,[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[\\\"div\\\",[30,0,[\\\"requestableItmStores\\\"]],[30,0,[\\\"selectedItmStores\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"entity.settings.integrations.Select ITM stores\\\"],null],[28,[37,36],[[28,[37,37],[[30,0,[\\\"selectedItmStores\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"]],[4]]]]],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary pull-right ms-auto\\\"],[16,\\\"disabled\\\",[28,[37,38],[[30,0,[\\\"requestItmStores\\\",\\\"isRunning\\\"]],[28,[37,39],[[30,0,[\\\"selectedItmStores\\\",\\\"length\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"requestItmStores\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"requestItmStores\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Requesting Integration\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Request Integration\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"requestedItmStores\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.integrationRequestsHaveBeenSentToTheFollowingStores\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.itMayTakeAFewDaysForAStoreToFulfilTheRequestIfYouAreHavingIssuesWithYourIntegrationPlease\\\"],null]],[1,\\\"\\\\n                \\\"],[11,3],[24,0,\\\"link\\\"],[24,6,\\\"#\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"contactSupport\\\"]]],null],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.Contact support\\\"],null]],[13],[1,\\\".\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,\\\"table\\\"],[14,0,\\\"itm-invoice-integration-settings-table\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Integration\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Action\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[30,0,[\\\"requestedItmStores\\\"]]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,[30,5,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,[30,5,[\\\"status\\\"]]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,38],[[28,[37,31],[[30,5,[\\\"status\\\"]],\\\"Connected\\\"],null],[28,[37,31],[[30,5,[\\\"status\\\"]],\\\"Pending\\\"],null]],null],[[[1,\\\"                          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,36],[[30,0,[\\\"cancelItmStoreRequest\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n                            \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"times\\\",true,\\\"1\\\"]],null],[1,\\\"\\\\n                            \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,31],[[30,5,[\\\"status\\\"]],\\\"Canceled\\\"],null],[[[1,\\\"                          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,36],[[30,0,[\\\"reconnectITmStoreRequest\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n                            \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plug\\\",true]],null],[1,\\\"\\\\n                            \\\"],[1,[28,[35,4],[\\\"common.Reconnect\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"]],[]],null]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"itm-invoice-integration-settings-table__placeholder\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"cogs\\\",true,\\\"2\\\"]],null],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.yourIntegrationRequestsWillAppearHere\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[13]],[\\\"feature\\\",\\\"ipsCon\\\",\\\"xeroModel\\\",\\\"store\\\",\\\"store\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ptl-input\\\",\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"span\\\",\\\"ips-usage\\\",\\\"loading-icon\\\",\\\"let\\\",\\\"changeset\\\",\\\"p\\\",\\\"gt\\\",\\\"label\\\",\\\"input\\\",\\\"includes-some-feature-flags\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"and\\\",\\\"eq\\\",\\\"includes-feature-flags\\\",\\\"pm-integration-settings\\\",\\\"i\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"or\\\",\\\"not\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"td\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/integrations.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.People'}}</h2>\n    </header>\n    <div class='d-flex mt-3 width--large'>\n      <ul class='list-group' style='min-width: 200px;'>\n        {{#each this.tabs as |tab|}}\n          <LinkTo\n            @route={{tab.route}}\n            draggable={{false}}\n            class='list-group-item'\n          >\n            <FaIcon @icon={{tab.icon}} @fixedWidth={{true}} @size='md' />\n            {{tab.name}}\n          </LinkTo>\n        {{/each}}\n      </ul>\n      <div class='flex-grow-1 ms-3'>\n        {{outlet}}\n      </div>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"a2v3DoTb\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,3],[\\\"common.People\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex mt-3 width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group\\\"],[14,5,\\\"min-width: 200px;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"tabs\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,8],[[16,\\\"draggable\\\",false],[24,0,\\\"list-group-item\\\"]],[[\\\"@route\\\"],[[30,1,[\\\"route\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[[30,1,[\\\"icon\\\"]],true,\\\"md\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1 ms-3\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,11],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"tab\\\"],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"div\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/clients\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"WbrVkX40\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/clients.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/clients/client\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.First name'}}\n          @key='firstName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.user.isNew}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.user.isNew) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Last name'}}\n          @key='lastName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.user.isNew}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.user.isNew) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Email'}}\n          @key='email'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.user.isNew}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.user.isNew) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='tel'\n          @label={{t 'common.Phone number'}}\n          @key='phoneNumber'\n          @model={{this.model.userChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.user.isNew) this.saveUser.isRunning}}\n        />\n  \n        <div class='d-flex flex-grow-1 mt-2'>\n          {{#if this.user.isNew}}\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveUser.isRunning}}\n              {{on\n                'click'\n                (perform this.saveUser this.model.userChangeset.last.value)\n              }}\n            >\n              {{#if this.saveUser.isRunning}}\n                {{t\n                  'entity.settings.people.clients.client.Saving client'\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.user.isNew\n                  (t 'entity.settings.people.clients.client.Create client')\n                  (t 'entity.settings.people.clients.client.Save client')\n                }}\n              {{/if}}\n            </button>\n          {{else if this.canManageUser}}\n            <button\n              type='button'\n              class='btn btn-link text-danger text-decoration-underline'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{t\n                  'entity.settings.people.clients.client.Deleting client'\n                }}&hellip;\n              {{else}}\n                {{t 'entity.settings.people.clients.client.Delete client'}}\n              {{/if}}\n            </button>\n  \n            {{#if (includes-feature-flags 'userIsAdmin')}}\n              {{#unless this.user.isNew}}\n                <div class='d-flex justify-content-end ms-auto'>\n                  <button\n                    class='btn btn-link ms-auto text-decoration-underline'\n                    type='button'\n                    {{on 'click' (fn this.loginAs this.user)}}\n                  >\n                    {{concat\n                      (t 'shared.people-editor.Login as')\n                      ' '\n                      this.user.fullName\n                    }}\n                  </button>\n                </div>\n              {{/unless}}\n            {{/if}}\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#unless (or this.user.isNew (not this.canManageUser))}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-3'>\n            {{t\n              'entity.settings.people.clients.client.clientEntityPermissionsExplanation'\n            }}\n          </p>\n  \n          <div class='d-flex'>\n            <LinkTo\n              class='btn btn-primary m-1'\n              @route='entity.builda-price.projects'\n            >\n              {{t 'entity.settings.people.clients.client.Go to projects'}}\n              <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n            </LinkTo>\n          </div>\n        </PtlForm>\n      {{/unless}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"o/pZ4KGr\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Email\\\"],null],\\\"email\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"tel\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"saveUser\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.Saving client\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.people.clients.client.Create client\\\"],null],[28,[37,6],[\\\"entity.settings.people.clients.client.Save client\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"canManageUser\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.Deleting client\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.Delete client\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,14],[\\\"userIsAdmin\\\"],null],[[[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex justify-content-end ms-auto\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link ms-auto text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"loginAs\\\"]],[30,0,[\\\"user\\\"]]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,17],[[28,[37,6],[\\\"shared.people-editor.Login as\\\"],null],\\\" \\\",[30,0,[\\\"user\\\",\\\"fullName\\\"]]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"]],[]],null]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,8],[[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,9],[[30,0,[\\\"canManageUser\\\"]]],null]],null]],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.clientEntityPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,19],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.Go to projects\\\"],null]],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"includes-feature-flags\\\",\\\"unless\\\",\\\"fn\\\",\\\"concat\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/clients/client.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/clients/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-1 d-flex align-items-center justify-content-end'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.clients.Search for clients'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <div class='d-flex flex-column flex-lg-row'>\n          <LinkTo\n            @route={{concat this.model.basePath '.clients.client'}}\n            @model='new'\n            class='btn btn-success text-white text-nowrap m-1'\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}</LinkTo>\n        </div>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredClients}}\n      @noData={{t 'shared.people-editor.clients.No clients yet'}}\n      @route={{concat this.model.basePath '.clients.client'}}\n      @showLoginAs={{includes-feature-flags 'userIsAdmin'}}\n      @onClickLoginAs={{this.loginAs}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"7ldE7v8F\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.clients.Search for clients\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],[[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".clients.client\\\"],null],\\\"new\\\"]],[[\\\"default\\\"],[[[[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,10],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\",\\\"@showLoginAs\\\",\\\"@onClickLoginAs\\\"],[[30,0,[\\\"filteredClients\\\"]],[28,[37,5],[\\\"shared.people-editor.clients.No clients yet\\\"],null],[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".clients.client\\\"],null],[28,[37,6],[\\\"userIsAdmin\\\"],null],[30,0,[\\\"loginAs\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"people-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/clients/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/subcontractors\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"BcvWO5X4\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/subcontractors.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/subcontractors/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-1 d-flex align-items-center justify-content-end'>\n      <span class='m-1' style='width: 200px;'>\n        <Input\n          class='form-control'\n          placeholder={{t\n            'shared.people-editor.subcontractors.Search for subcontractors'\n          }}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <div class='d-flex flex-column flex-lg-row'>\n          <LinkTo\n            @route={{concat this.model.basePath '.subcontractors.subcontractor'}}\n            @model='new'\n            class='btn btn-success text-white text-nowrap m-1'\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}</LinkTo>\n        </div>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredSubcontractors}}\n      @noData={{t 'shared.people-editor.subcontractors.No subcontractors yet'}}\n      @route={{concat this.model.basePath '.subcontractors.subcontractor'}}\n      @showLoginAs={{includes-feature-flags 'userIsAdmin'}}\n      @onClickLoginAs={{this.loginAs}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"nJ4fVtuX\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[14,5,\\\"width: 200px;\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.subcontractors.Search for subcontractors\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],[[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".subcontractors.subcontractor\\\"],null],\\\"new\\\"]],[[\\\"default\\\"],[[[[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,10],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\",\\\"@showLoginAs\\\",\\\"@onClickLoginAs\\\"],[[30,0,[\\\"filteredSubcontractors\\\"]],[28,[37,5],[\\\"shared.people-editor.subcontractors.No subcontractors yet\\\"],null],[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".subcontractors.subcontractor\\\"],null],[28,[37,6],[\\\"userIsAdmin\\\"],null],[30,0,[\\\"loginAs\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"people-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/subcontractors/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/subcontractors/subcontractor\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.First name'}}\n          @key='firstName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Last name'}}\n          @key='lastName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Email'}}\n          @key='email'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n  \n        <PtlInput\n          @type='tel'\n          @label={{t 'common.Phone number'}}\n          @key='phoneNumber'\n          @model={{this.model.userChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n  \n        {{#if this.canManageUser}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            {{#unless this.user.isNew}}\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{this.deleteUser.isRunning}}\n                {{on 'click' (perform this.deleteUser)}}\n              >\n                {{#if this.deleteUser.isRunning}}\n                  {{t 'shared.people-editor.Deleting user'}}\n                  &hellip;\n                {{else}}\n                  {{t 'shared.people-editor.Delete user'}}\n                {{/if}}\n              </button>\n            {{/unless}}\n  \n            {{#if this.canEditUser}}\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveUser.isRunning}}\n                {{on\n                  'click'\n                  (perform this.saveUser this.model.userChangeset.last.value)\n                }}\n              >\n                {{#if this.saveUser.isRunning}}\n                  {{t\n                    'entity.settings.people.subcontractors.subcontractor.Saving subcontractor'\n                  }}&hellip;\n                {{else}}\n                  {{if\n                    this.user.isNew\n                    (t\n                      'entity.settings.people.subcontractors.subcontractor.Create subcontractor'\n                    )\n                    (t\n                      'entity.settings.people.subcontractors.subcontractor.Save subcontractor'\n                    )\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n  \n            {{#if (includes-feature-flags 'userIsAdmin')}}\n              {{#unless this.user.isNew}}\n                <div class='d-flex justify-content-end ms-auto'>\n                  <button\n                    class='btn btn-link ms-auto text-decoration-underline'\n                    type='button'\n                    {{on 'click' (fn this.loginAs this.user)}}\n                  >\n                    {{concat\n                      (t 'shared.people-editor.Login as')\n                      ' '\n                      this.user.fullName\n                    }}\n                  </button>\n                </div>\n              {{/unless}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </PtlForm>\n  \n      {{#unless\n        (or\n          (or this.user.isNew this.user.lastLoginDate)\n          (not this.canManageUserPermissions)\n        )\n      }}\n        <div class='alert alert-primary' role='alert'>\n          <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n          <span class='me-2'>\n            {{this.user.firstName}}\n            {{t 'shared.people-editor.trySendReminderEmail'}}\n          </span>\n          <button\n            type='button'\n            class='btn btn-outline-primary'\n            {{on\n              'click'\n              (perform\n                this.sendPasswordResetEmail this.model.userChangeset.last.value\n              )\n            }}\n            disabled={{this.sendPasswordResetEmail.isRunning}}\n          >\n            {{#if this.sendPasswordResetEmail.isRunning}}\n              {{t 'shared.people-editor.Sending reminder email'}}&hellip;\n            {{else}}\n              {{t 'shared.people-editor.Send reminder email'}}\n            {{/if}}\n          </button>\n        </div>\n      {{/unless}}\n  \n      {{#if (and this.canManageUserPermissions (not this.user.isNew))}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t 'shared.people-editor.userPermissionsExplanation'}}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.projectPermissionsVisible)\n                (not this.projectPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Project'}}\n            </h4>\n            {{#if this.projectPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.projectPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.projectPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.projectPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can see all projects'}}\n              @key='canViewProjects'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n            {{#if\n              (or\n                this.model.permissionsChangeset.last.value.canManageProjects\n                this.model.permissionsChangeset.last.value.canViewProjects\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can manage all projects'}}\n                @description={{t\n                  'shared.people-editor.canManageAllProjectsDescription'\n                }}\n                @key='canManageProjects'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can see all tasks'}}\n              @description={{t\n                'shared.people-editor.Lets the user see all tasks'\n              }}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n            {{#if\n              (or\n                this.model.permissionsChangeset.last.value.canManageTasks\n                this.model.permissionsChangeset.last.value.canViewTasks\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can manage all tasks'}}\n                @description={{t\n                  'shared.people-editor.canManageAllTasksDescription'\n                }}\n                @key='canManageTasks'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all project budgets'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllProjectBudgetsDescription'\n                }}\n                @key='canViewBudgets'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageBudgets\n                  this.model.permissionsChangeset.last.value.canViewBudgets\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all project budgets'\n                  }}\n                  @description={{t\n                    'shared.people-editor.canManageAllProjectBudgetsDescription'\n                  }}\n                  @key='canManageBudgets'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all project quotes'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllProjectQuotesDescription'\n                }}\n                @key='canViewQuotes'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageQuotes\n                  this.model.permissionsChangeset.last.value.canViewQuotes\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all project quotes'\n                  }}\n                  @description={{t\n                    'shared.people-editor.canManageAllProjectQuotesDescription'\n                  }}\n                  @key='canManageQuotes'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all project progress'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllProjectProgressDescription'\n                }}\n                @key='canViewProgress'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageProgress\n                  this.model.permissionsChangeset.last.value.canViewProgress\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all project progress'\n                  }}\n                  @description={{t\n                    'shared.people-editor.canManageAllProjectProgressDescription'\n                  }}\n                  @key='canManageProgress'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all documents'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllDocumentsDescription'\n                }}\n                @key='canViewFileStorage'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageFileStorage\n                  this.model.permissionsChangeset.last.value.canViewFileStorage\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage all documents'}}\n                  @description={{t\n                    'shared.people-editor.canManageAllDocumentsDescription'\n                  }}\n                  @key='canManageFileStorage'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProducts}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all products'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllProductsDescription'\n                }}\n                @key='canViewProducts'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageProducts\n                  this.model.permissionsChangeset.last.value.canViewProducts\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage all products'}}\n                  @description={{t\n                    'shared.people-editor.canManageAllProductsDescription'\n                  }}\n                  @key='canManageProducts'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseEstimates}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make estimates'}}\n                @key='canEstimate'\n                @description={{t\n                  'shared.people-editor.canMakeEstimatesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canManageEstimateSettings'}}\n                @key='canManageEstimateSettings'\n                @description={{t\n                  'shared.people-editor.canManageEstimateSettingsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'shared.people-editor.canMakeSchedulingChangesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if\n            (or\n              this.newFeatureFlags.entityCanUseTimesheets\n              this.newFeatureFlags.entityCanUseBills\n            )\n          }}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.allocationsPermissionsVisible)\n                  (not this.allocationsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Allocations'}}\n              </h4>\n              {{#if this.allocationsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.allocationsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.allocationsPermissionsVisible}}\n              {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can see all timesheets and notes'\n                  }}\n                  @key='canViewTimesheets'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageTimesheets\n                    this.model.permissionsChangeset.last.value.canViewTimesheets\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'shared.people-editor.Can manage all timesheets and notes'\n                    }}\n                    @description={{t\n                      'shared.people-editor.canManageAllTimesheetsAndNotesDescription'\n                    }}\n                    @key='canManageTimesheets'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                {{/if}}\n                <PtlInput\n                  @type='powerSelectMultiple'\n                  @label={{t 'shared.people-editor.Timesheet workers'}}\n                  @key='workers'\n                  @description={{t\n                    'shared.people-editor.timesheetWorkersDescription'\n                  }}\n                  @optionKeys={{array 'fullName'}}\n                  @options={{this.model.workers.last.value}}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @searchEnabled={{true}}\n                  @searchField='fullName'\n                  @placeholder={{t\n                    'shared.people-editor.Select a worker grant permissions for'\n                  }}\n                  @disabled={{this.saveUserPermissions.isRunning}}\n                />\n              {{/if}}\n              {{#if this.newFeatureFlags.entityCanUseBills}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can see all the bills'}}\n                  @key='canViewBills'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageBills\n                    this.model.permissionsChangeset.last.value.canViewBills\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t 'shared.people-editor.Can manage all bills'}}\n                    @description={{t\n                      'shared.people-editor.Lets the user create and map bills'\n                    }}\n                    @key='canManageBills'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n  \n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                  }}\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n  \n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canSeeAllBudgetDataInReports'}}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all quote data in reports'\n                }}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canSeeAllCostDataInReports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.Can see all invoicing data in reports'\n                }}\n                @key='canViewInvoicingReports'\n                @description={{t\n                  'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.healthAndSafetyPermissionsVisible)\n                  (not this.healthAndSafetyPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.healthAndSafety'}}\n              </h4>\n              {{#if this.healthAndSafetyPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.healthAndSafetyPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.healthAndSafetyPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.healthAndSafetyPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageHealthAndSafety\n                  this.model.permissionsChangeset.last.value.canCreateHealthAndSafety\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'shared.people-editor.canManageHealthAndSafetyDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.settingsPermissionsVisible)\n                (not this.settingsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Settings'}}\n            </h4>\n            {{#if this.settingsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.settingsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.settingsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.settingsPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.canViewWorkers'}}\n              @key='canViewWorkers'\n              @description={{t 'shared.people-editor.Lets users view workers'}}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"D0i/EvsA\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Email\\\"],null],\\\"email\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"tel\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageUser\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Deleting user\\\"],null]],[1,\\\"\\\\n                …\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Delete user\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEditUser\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"saveUser\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.subcontractors.subcontractor.Saving subcontractor\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.people.subcontractors.subcontractor.Create subcontractor\\\"],null],[28,[37,6],[\\\"entity.settings.people.subcontractors.subcontractor.Save subcontractor\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"userIsAdmin\\\"],null],[[[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex justify-content-end ms-auto\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link ms-auto text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"loginAs\\\"]],[30,0,[\\\"user\\\"]]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,17],[[28,[37,6],[\\\"shared.people-editor.Login as\\\"],null],\\\" \\\",[30,0,[\\\"user\\\",\\\"fullName\\\"]]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,8],[[28,[37,8],[[30,0,[\\\"user\\\",\\\"isNew\\\"]],[30,0,[\\\"user\\\",\\\"lastLoginDate\\\"]]],null],[28,[37,9],[[30,0,[\\\"canManageUserPermissions\\\"]]],null]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"user\\\",\\\"firstName\\\"]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.trySendReminderEmail\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-outline-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"sendPasswordResetEmail\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"sendPasswordResetEmail\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sendPasswordResetEmail\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Sending reminder email\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Send reminder email\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"canManageUserPermissions\\\"]],[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null]],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.userPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all projects\\\"],null],\\\"canViewProjects\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProjects\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProjects\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all projects\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectsDescription\\\"],null],\\\"canManageProjects\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all tasks\\\"],null],[28,[37,6],[\\\"shared.people-editor.Lets the user see all tasks\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all tasks\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllTasksDescription\\\"],null],\\\"canManageTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project budgets\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectBudgetsDescription\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project budgets\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectBudgetsDescription\\\"],null],\\\"canManageBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project quotes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectQuotesDescription\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project quotes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectQuotesDescription\\\"],null],\\\"canManageQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project progress\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectProgressDescription\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project progress\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectProgressDescription\\\"],null],\\\"canManageProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all documents\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllDocumentsDescription\\\"],null],\\\"canViewFileStorage\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all documents\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsDescription\\\"],null],\\\"canManageFileStorage\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsDescription\\\"],null],\\\"canViewProducts\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProductsDescription\\\"],null],\\\"canManageProducts\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseEstimates\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make estimates\\\"],null],\\\"canEstimate\\\",[28,[37,6],[\\\"shared.people-editor.canMakeEstimatesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageEstimateSettings\\\"],null],\\\"canManageEstimateSettings\\\",[28,[37,6],[\\\"shared.people-editor.canManageEstimateSettingsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,8],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all timesheets and notes\\\"],null],\\\"canViewTimesheets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTimesheets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTimesheets\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all timesheets and notes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllTimesheetsAndNotesDescription\\\"],null],\\\"canManageTimesheets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",[28,[37,6],[\\\"shared.people-editor.Timesheet workers\\\"],null],\\\"workers\\\",[28,[37,6],[\\\"shared.people-editor.timesheetWorkersDescription\\\"],null],[28,[37,24],[\\\"fullName\\\"],null],[30,0,[\\\"model\\\",\\\"workers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],true,\\\"fullName\\\",[28,[37,6],[\\\"shared.people-editor.Select a worker grant permissions for\\\"],null],[30,0,[\\\"saveUserPermissions\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the bills\\\"],null],\\\"canViewBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBills\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBills\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all bills\\\"],null],[28,[37,6],[\\\"shared.people-editor.Lets the user create and map bills\\\"],null],\\\"canManageBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllBudgetDataInReports\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageHealthAndSafety\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canCreateHealthAndSafety\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"settingsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"settingsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Settings\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"settingsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"settingsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"settingsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"settingsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canViewWorkers\\\"],null],\\\"canViewWorkers\\\",[28,[37,6],[\\\"shared.people-editor.Lets users view workers\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"unless\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"includes-feature-flags\\\",\\\"fn\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"and\\\",\\\"p\\\",\\\"mut\\\",\\\"h4\\\",\\\"array\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/subcontractors/subcontractor.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/users\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"E9jATaW6\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/users.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/users/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-1 d-flex align-items-center justify-content-end'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.users.Search for users'}}\n          data-test-user-search\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <div class='d-flex flex-column flex-lg-row'>\n          <LinkTo\n            @route={{concat this.model.basePath '.users.user'}}\n            @model='new'\n            class='btn btn-success text-white text-nowrap m-1'\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}</LinkTo>\n        </div>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredUsers}}\n      @noData={{t 'shared.people-editor.users.No users yet'}}\n      @route={{concat this.model.basePath '.users.user'}}\n      @showLoginAs={{includes-feature-flags 'userIsAdmin'}}\n      @onClickLoginAs={{this.loginAs}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"5RgJo2CI\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.users.Search for users\\\"],null]],[24,\\\"data-test-user-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],[[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".users.user\\\"],null],\\\"new\\\"]],[[\\\"default\\\"],[[[[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,10],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\",\\\"@showLoginAs\\\",\\\"@onClickLoginAs\\\"],[[30,0,[\\\"filteredUsers\\\"]],[28,[37,5],[\\\"shared.people-editor.users.No users yet\\\"],null],[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".users.user\\\"],null],[28,[37,6],[\\\"userIsAdmin\\\"],null],[30,0,[\\\"loginAs\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"people-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/users/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/users/user\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.First name'}}\n          @key='firstName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Last name'}}\n          @key='lastName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Email'}}\n          @key='email'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='tel'\n          @label={{t 'common.Phone number'}}\n          @key='phoneNumber'\n          @model={{this.model.userChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        {{#if this.canManageUser}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            {{#unless this.user.isNew}}\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{this.deleteUser.isRunning}}\n                {{on 'click' (perform this.deleteUser)}}\n              >\n                {{#if this.deleteUser.isRunning}}\n                  {{t 'shared.people-editor.Deleting user'}}\n                  &hellip;\n                {{else}}\n                  {{t 'shared.people-editor.Delete user'}}\n                {{/if}}\n              </button>\n            {{/unless}}\n  \n            {{#if (includes-feature-flags 'userIsAdmin')}}\n              {{#unless this.user.isNew}}\n                <div class='d-flex justify-content-end ms-auto'>\n                  <button\n                    class='btn btn-link ms-auto text-decoration-underline'\n                    type='button'\n                    {{on 'click' (fn this.loginAs this.user)}}\n                  >\n                    {{concat\n                      (t 'shared.people-editor.Login as')\n                      ' '\n                      this.user.fullName\n                    }}\n                  </button>\n                </div>\n              {{/unless}}\n            {{/if}}\n  \n            {{#if this.canEditUser}}\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveUser.isRunning}}\n                {{on\n                  'click'\n                  (perform this.saveUser this.model.userChangeset.last.value)\n                }}\n              >\n                {{#if this.saveUser.isRunning}}\n                  {{t 'entity.settings.people.users.user.Saving user'}}&hellip;\n                {{else}}\n                  {{if\n                    this.user.isNew\n                    (t 'entity.settings.people.users.user.Create user')\n                    (t 'entity.settings.people.users.user.Save user')\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n          </div>\n        {{/if}}\n      </PtlForm>\n  \n      {{#unless\n        (or\n          (or this.user.isNew this.user.lastLoginDate)\n          (not this.canManageUserPermissions)\n        )\n      }}\n        <div class='alert alert-primary' role='alert'>\n          <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n          <span class='me-2'>\n            {{this.user.firstName}}\n            {{t 'shared.people-editor.trySendReminderEmail'}}\n          </span>\n          <button\n            type='button'\n            class='btn btn-outline-primary'\n            {{on\n              'click'\n              (perform\n                this.sendPasswordResetEmail this.model.userChangeset.last.value\n              )\n            }}\n            disabled={{this.sendPasswordResetEmail.isRunning}}\n          >\n            {{#if this.sendPasswordResetEmail.isRunning}}\n              {{t 'shared.people-editor.Sending reminder email'}}&hellip;\n            {{else}}\n              {{t 'shared.people-editor.Send reminder email'}}\n            {{/if}}\n          </button>\n        </div>\n      {{/unless}}\n  \n      {{#if (and this.canManageUserPermissions (not this.user.isNew))}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n  \n          {{#if this.permissionsDescription}}\n            <p class='mb-4'>\n              {{this.permissionsDescription}}\n            </p>\n          {{/if}}\n  \n          {{#if (includes-feature-flags 'userIsEntityAdmin')}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'entity.settings.people.users.user.Can be a company administrator'\n              }}\n              @key='isCompanyAdministrator'\n              @description={{t\n                'entity.settings.people.users.user.canBeACompanyAdministratorDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n          {{/if}}\n  \n          {{#if (includes-feature-flags 'canUseBuildaPrice')}}\n            {{#unless\n              this.model.permissionsChangeset.last.value.isCompanyAdministrator\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.settings.people.users.user.Can be a company manager'\n                }}\n                @key='canManageEverything'\n                @description={{t\n                  'entity.settings.people.users.user.canBeACompanyManagerDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n  \n              {{#unless\n                this.model.permissionsChangeset.last.value.canManageEverything\n              }}\n                <div\n                  class='d-flex align-items-center mb-3'\n                  role='button'\n                  {{on\n                    'click'\n                    (fn\n                      (mut this.projectPermissionsVisible)\n                      (not this.projectPermissionsVisible)\n                    )\n                  }}\n                >\n                  <h4 class='m-0'>\n                    {{t 'common.Project'}}\n                  </h4>\n                  {{#if this.projectPermissionsCount}}\n                    <span class='ms-2 badge bg-info'>\n                      {{this.projectPermissionsCount}}\n                    </span>\n                  {{/if}}\n                  <h4 class='m-0 ms-auto'>\n                    <FaIcon\n                      @icon={{if\n                        this.projectPermissionsVisible\n                        'chevron-down'\n                        'chevron-right'\n                      }}\n                    />\n                  </h4>\n                </div>\n                {{#if this.projectPermissionsVisible}}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t 'shared.people-editor.Can see all projects'}}\n                    @key='canViewProjects'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                  {{#if\n                    (or\n                      this.model.permissionsChangeset.last.value.canManageProjects\n                      this.model.permissionsChangeset.last.value.canViewProjects\n                    )\n                  }}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can manage all projects'}}\n                      @description={{t\n                        'shared.people-editor.canManageAllProjectsDescription'\n                      }}\n                      @key='canManageProjects'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if\n                    (or\n                      this.model.permissionsChangeset.last.value.canViewProjects\n                      this.model.permissionsChangeset.last.value.canViewTasks\n                    )\n                  }}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can see all tasks'}}\n                      @description={{t\n                        'shared.people-editor.Lets the user see all tasks'\n                      }}\n                      @key='canViewTasks'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if\n                    (or\n                      this.model.permissionsChangeset.last.value.canManageTasks\n                      this.model.permissionsChangeset.last.value.canViewTasks\n                    )\n                  }}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can manage all tasks'}}\n                      @description={{t\n                        'shared.people-editor.canManageAllTasksDescription'\n                      }}\n                      @key='canManageTasks'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all project budgets'\n                      }}\n                      @description={{t\n                        'shared.people-editor.canSeeAllProjectBudgetsDescription'\n                      }}\n                      @key='canViewBudgets'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageBudgets\n                        this.model.permissionsChangeset.last.value.canViewBudgets\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all project budgets'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllProjectBudgetsDescription'\n                        }}\n                        @key='canManageBudgets'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all project quotes'\n                      }}\n                      @description={{t\n                        'shared.people-editor.canSeeAllProjectQuotesDescription'\n                      }}\n                      @key='canViewQuotes'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageQuotes\n                        this.model.permissionsChangeset.last.value.canViewQuotes\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all project quotes'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllProjectQuotesDescription'\n                        }}\n                        @key='canManageQuotes'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all project progress'\n                      }}\n                      @description={{t\n                        'shared.people-editor.canSeeAllProjectProgressDescription'\n                      }}\n                      @key='canViewProgress'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageProgress\n                        this.model.permissionsChangeset.last.value.canViewProgress\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all project progress'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllProjectProgressDescription'\n                        }}\n                        @key='canManageProgress'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can see all documents'}}\n                      @description={{t\n                        'shared.people-editor.canSeeAllDocumentsDescription'\n                      }}\n                      @key='canViewFileStorage'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageFileStorage\n                        this.model.permissionsChangeset.last.value.canViewFileStorage\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all documents'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllDocumentsDescription'\n                        }}\n                        @key='canManageFileStorage'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseProducts}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can see all products'}}\n                      @description={{t\n                        'shared.people-editor.canSeeAllProductsDescription'\n                      }}\n                      @key='canViewProducts'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageProducts\n                        this.model.permissionsChangeset.last.value.canViewProducts\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all products'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllProductsDescription'\n                        }}\n                        @key='canManageProducts'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseEstimates}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can make estimates'}}\n                      @key='canEstimate'\n                      @description={{t\n                        'shared.people-editor.canMakeEstimatesDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.canManageEstimateSettings'\n                      }}\n                      @key='canManageEstimateSettings'\n                      @description={{t\n                        'shared.people-editor.canManageEstimateSettingsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                {{/if}}\n                {{#if this.newFeatureFlags.entityCanUseScheduling}}\n                  <div\n                    class='d-flex align-items-center mb-3'\n                    role='button'\n                    {{on\n                      'click'\n                      (fn\n                        (mut this.schedulingPermissionsVisible)\n                        (not this.schedulingPermissionsVisible)\n                      )\n                    }}\n                  >\n                    <h4 class='m-0'>\n                      {{t 'common.Scheduling'}}\n                    </h4>\n                    {{#if this.schedulingPermissionsCount}}\n                      <span class='ms-2 badge bg-info'>\n                        {{this.schedulingPermissionsCount}}\n                      </span>\n                    {{/if}}\n                    <h4 class='m-0 ms-auto'>\n                      <FaIcon\n                        @icon={{if\n                          this.schedulingPermissionsVisible\n                          'chevron-down'\n                          'chevron-right'\n                        }}\n                      />\n                    </h4>\n                  </div>\n                  {{#if this.schedulingPermissionsVisible}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see scheduling reports'\n                      }}\n                      @key='canViewSchedulingReports'\n                      @description={{t\n                        'shared.people-editor.Gives access to see the timeline'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can make scheduling changes'\n                      }}\n                      @key='canManageSchedulingReports'\n                      @description={{t\n                        'shared.people-editor.canMakeSchedulingChangesDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                {{/if}}\n                {{#if\n                  (or\n                    this.newFeatureFlags.entityCanUseTimesheets\n                    this.newFeatureFlags.entityCanUseBills\n                  )\n                }}\n                  <div\n                    class='d-flex align-items-center mb-3'\n                    role='button'\n                    {{on\n                      'click'\n                      (fn\n                        (mut this.allocationsPermissionsVisible)\n                        (not this.allocationsPermissionsVisible)\n                      )\n                    }}\n                  >\n                    <h4 class='m-0'>\n                      {{t 'common.Allocations'}}\n                    </h4>\n                    {{#if this.allocationsPermissionsCount}}\n                      <span class='ms-2 badge bg-info'>\n                        {{this.allocationsPermissionsCount}}\n                      </span>\n                    {{/if}}\n                    <h4 class='m-0 ms-auto'>\n                      <FaIcon\n                        @icon={{if\n                          this.allocationsPermissionsVisible\n                          'chevron-down'\n                          'chevron-right'\n                        }}\n                      />\n                    </h4>\n                  </div>\n  \n                  {{#if this.allocationsPermissionsVisible}}\n                    {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can see all timesheets and notes'\n                        }}\n                        @key='canViewTimesheets'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageTimesheets\n                          this.model.permissionsChangeset.last.value.canViewTimesheets\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'shared.people-editor.Can manage all timesheets and notes'\n                          }}\n                          @description={{t\n                            'shared.people-editor.canManageAllTimesheetsAndNotesDescription'\n                          }}\n                          @key='canManageTimesheets'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                      <PtlInput\n                        @type='powerSelectMultiple'\n                        @label={{t 'shared.people-editor.Timesheet workers'}}\n                        @key='workers'\n                        @description={{t\n                          'shared.people-editor.timesheetWorkersDescription'\n                        }}\n                        @optionKeys={{array 'fullName'}}\n                        @options={{this.model.workers.last.value}}\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        @searchEnabled={{true}}\n                        @searchField='fullName'\n                        @placeholder={{t\n                          'shared.people-editor.Select a worker grant permissions for'\n                        }}\n                        @disabled={{this.saveUserPermissions.isRunning}}\n                      />\n                    {{/if}}\n                    {{#if this.newFeatureFlags.entityCanUseBills}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t 'shared.people-editor.Can see all the bills'}}\n                        @key='canViewBills'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageBills\n                          this.model.permissionsChangeset.last.value.canViewBills\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t 'shared.people-editor.Can manage all bills'}}\n                          @description={{t\n                            'shared.people-editor.Lets the user create and map bills'\n                          }}\n                          @key='canManageBills'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                    {{/if}}\n                    {{#if this.newFeatureFlags.entityCanUseInvoices}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.users.user.entity.Can see all invoices'\n                        }}\n                        @description={{t\n                          'shared.people-editor.users.user.entity.canViewInvoicesDescription'\n                        }}\n                        @key='canViewInvoices'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageInvoices\n                          this.model.permissionsChangeset.last.value.canViewInvoices\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'shared.people-editor.users.user.entity.Can create invoices'\n                          }}\n                          @description={{t\n                            'shared.people-editor.users.user.entity.canManageInvoicesDescription'\n                          }}\n                          @key='canManageInvoices'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageInvoices\n                          this.model.permissionsChangeset.last.value.canApproveInvoices\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'shared.people-editor.users.user.entity.Can approve invoices'\n                          }}\n                          @description={{t\n                            'shared.people-editor.users.user.entity.canApproveInvoicesDescription'\n                          }}\n                          @key='canApproveInvoices'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                    {{/if}}\n                    {{#if this.newFeatureFlags.entityCanUsePurchaseOrders}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'entity.settings.people.users.user.Can see all the purchase orders'\n                        }}\n                        @description={{t\n                          'entity.settings.people.users.user.canSeeAllThePurchaseOrdersDescription'\n                        }}\n                        @key='canViewPurchaseOrders'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManagePurchaseOrders\n                          this.model.permissionsChangeset.last.value.canViewPurchaseOrders\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'entity.settings.people.users.user.Can manage all purchase orders'\n                          }}\n                          @description={{t\n                            'entity.settings.people.users.user.canManageAllPurchaseOrdersDescription'\n                          }}\n                          @key='canManagePurchaseOrders'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManagePurchaseOrders\n                          this.model.permissionsChangeset.last.value.canApprovePurchaseOrders\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'entity.settings.people.users.user.Can approve all purchase orders'\n                          }}\n                          @description={{t\n                            'entity.settings.people.users.user.canApproveAllPurchaseOrdersDescription'\n                          }}\n                          @key='canApprovePurchaseOrders'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                    {{/if}}\n                    {{#if this.newFeatureFlags.entityCanUseStagePayments}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'entity.settings.people.users.user.Can see all the stage payments'\n                        }}\n                        @description={{t\n                          'entity.settings.people.users.user.canSeeAllTheStagePaymentsDescription'\n                        }}\n                        @key='canViewStagePayments'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageStagePayments\n                          this.model.permissionsChangeset.last.value.canViewStagePayments\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'entity.settings.people.users.user.Can manage all stage payments'\n                          }}\n                          @description={{t\n                            'entity.settings.people.users.user.canManageAllStagePaymentsDescription'\n                          }}\n                          @key='canManageStagePayments'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                    {{/if}}\n                  {{/if}}\n                {{/if}}\n                <div\n                  class='d-flex align-items-center mb-3'\n                  role='button'\n                  {{on\n                    'click'\n                    (fn\n                      (mut this.reportsPermissionsVisible)\n                      (not this.reportsPermissionsVisible)\n                    )\n                  }}\n                >\n                  <h4 class='m-0'>\n                    {{t 'common.Reports'}}\n                  </h4>\n                  {{#if this.reportsPermissionsCount}}\n                    <span class='ms-2 badge bg-info'>\n                      {{this.reportsPermissionsCount}}\n                    </span>\n                  {{/if}}\n                  <h4 class='m-0 ms-auto'>\n                    <FaIcon\n                      @icon={{if\n                        this.reportsPermissionsVisible\n                        'chevron-down'\n                        'chevron-right'\n                      }}\n                    />\n                  </h4>\n                </div>\n                {{#if this.reportsPermissionsVisible}}\n                  {{#if this.newFeatureFlags.canUsePayroll}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'entity.settings.people.users.user.Can run payroll reports'\n                      }}\n                      @key='canViewPayrollReports'\n                      @description={{t\n                        'entity.settings.people.users.user.canRunPayrollReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.canUseReportBuilder}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'entity.settings.people.users.user.Can use the report builder'\n                      }}\n                      @key='canUseReportBuilderReport'\n                      @description={{t\n                        'entity.settings.people.users.user.canUseTheReportBuilderDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n  \n                  <div class='alert alert-primary' role='alert'>\n                    <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n                    <span class='me-2'>\n                      {{#if this.canViewReports.length}}\n                        {{t\n                          'shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                        }}\n                        <span class='fw-bold'>{{this.canViewReports}}</span>.\n                      {{else}}\n                        {{t\n                          'shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports'\n                        }}\n                      {{/if}}\n                    </span>\n                  </div>\n                  {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.canSeeAllBudgetDataInReports'\n                      }}\n                      @description={{t\n                        'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                      }}\n                      @key='canViewBudgetFinancialReports'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                      }}\n                      @description={{t\n                        'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                      }}\n                      @key='canViewBudgetLabourHourReports'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all quote data in reports'\n                      }}\n                      @key='canViewQuoteReports'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if\n                    (or\n                      this.newFeatureFlags.entityCanUseTimesheets\n                      this.newFeatureFlags.entityCanUseBills\n                    )\n                  }}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.canSeeAllCostDataInReports'\n                      }}\n                      @key='canViewCostFinancialReports'\n                      @description={{t\n                        'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                      }}\n                      @key='canViewCostLabourHourReports'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all work value data in reports'\n                      }}\n                      @key='canViewChargeupReports'\n                      @description={{t\n                        'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all progress data in reports'\n                      }}\n                      @key='canViewProgressReports'\n                      @description={{t\n                        'shared.people-editor.canSeeAllProgressDataInReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.users.user.Can see all invoicing data in reports'\n                      }}\n                      @key='canViewInvoicingReports'\n                      @description={{t\n                        'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseGeofencing}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label='Can see all site access data in reports?'\n                      @key='canViewAccessReports'\n                      @description='Site access reports show real-time site occupancy and access history.'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                {{/if}}\n              {{/unless}}\n            {{/unless}}\n          {{/if}}\n  \n          {{#unless\n            this.model.permissionsChangeset.last.value.isCompanyAdministrator\n          }}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.settingsPermissionsVisible)\n                  (not this.settingsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Settings'}}\n              </h4>\n  \n              {{#if this.settingsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.settingsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.settingsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.settingsPermissionsVisible}}\n              {{#if (includes-feature-flags 'canUseBuildaPrice')}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canViewWorkers'}}\n                  @key='canViewWorkers'\n                  @description={{t\n                    'shared.people-editor.Lets users view workers'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageWorkers\n                    this.model.permissionsChangeset.last.value.canViewWorkers\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.settings.people.users.user.canManageWorkers'\n                    }}\n                    @key='canManageWorkers'\n                    @description={{t\n                      'entity.settings.people.users.user.canManageWorkersDescription'\n                    }}\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                {{/if}}\n              {{/if}}\n  \n              <PtlInput\n                @type='checkbox'\n                @label={{t 'entity.settings.people.users.user.canViewUsers'}}\n                @key='canViewUsers'\n                @description={{t\n                  'entity.settings.people.users.user.canViewUsersDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageUsers\n                  this.model.permissionsChangeset.last.value.canViewUsers\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'entity.settings.people.users.user.canManageUsers'}}\n                  @key='canManageUsers'\n                  @description={{t\n                    'entity.settings.people.users.user.canManageUsersDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n  \n              {{#if (includes-feature-flags 'canUseIntegrations')}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.settings.people.users.user.canManageIntegrations'\n                  }}\n                  @key='canManageIntegrations'\n                  @description={{t\n                    'entity.settings.people.users.user.canManageIntegrationsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n          {{/unless}}\n  \n          {{#if (includes-feature-flags 'canUseFinancialReporting')}}\n            {{#unless\n              this.model.permissionsChangeset.last.value.isCompanyAdministrator\n            }}\n              <div\n                class='d-flex align-items-center mb-3'\n                role='button'\n                {{on\n                  'click'\n                  (fn\n                    (mut this.financialReportingPermissionsVisible)\n                    (not this.financialReportingPermissionsVisible)\n                  )\n                }}\n              >\n                <h4 class='m-0'>\n                  {{t 'common.Financial portal'}}\n                </h4>\n                {{#if this.financialReportingPermissionsCount}}\n                  <span class='ms-2 badge bg-info'>\n                    {{this.financialReportingPermissionsCount}}\n                  </span>\n                {{/if}}\n                <h4 class='m-0 ms-auto'>\n                  <FaIcon\n                    @icon={{if\n                      this.financialReportingPermissionsVisible\n                      'chevron-down'\n                      'chevron-right'\n                    }}\n                  />\n                </h4>\n              </div>\n  \n              {{#if this.financialReportingPermissionsVisible}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.settings.people.users.user.Can view financials'\n                  }}\n                  @key='canViewFinancialReporting'\n                  @description={{t\n                    'entity.settings.people.users.user.canViewFinancialsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n                {{#if\n                  this.model.permissionsChangeset.last.value.canViewFinancialReporting\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.settings.people.users.user.Can manage financials'\n                    }}\n                    @key='canManageFinancialReporting'\n                    @description={{t\n                      'entity.settings.people.users.user.canManageFinancialsDescription'\n                    }}\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                {{/if}}\n              {{/if}}\n            {{/unless}}\n          {{/if}}\n  \n          {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.healthAndSafetyPermissionsVisible)\n                  (not this.healthAndSafetyPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.healthAndSafety'}}\n              </h4>\n              {{#if this.healthAndSafetyPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.healthAndSafetyPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.healthAndSafetyPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.healthAndSafetyPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageHealthAndSafety\n                  this.model.permissionsChangeset.last.value.canCreateHealthAndSafety\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'shared.people-editor.canManageHealthAndSafetyDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"iepkcC2B\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Email\\\"],null],\\\"email\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"tel\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageUser\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Deleting user\\\"],null]],[1,\\\"\\\\n                …\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Delete user\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"userIsAdmin\\\"],null],[[[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex justify-content-end ms-auto\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link ms-auto text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"loginAs\\\"]],[30,0,[\\\"user\\\"]]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,17],[[28,[37,6],[\\\"shared.people-editor.Login as\\\"],null],\\\" \\\",[30,0,[\\\"user\\\",\\\"fullName\\\"]]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEditUser\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"saveUser\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.users.user.Saving user\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.people.users.user.Create user\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.Save user\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,8],[[28,[37,8],[[30,0,[\\\"user\\\",\\\"isNew\\\"]],[30,0,[\\\"user\\\",\\\"lastLoginDate\\\"]]],null],[28,[37,9],[[30,0,[\\\"canManageUserPermissions\\\"]]],null]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"user\\\",\\\"firstName\\\"]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.trySendReminderEmail\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-outline-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"sendPasswordResetEmail\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"sendPasswordResetEmail\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sendPasswordResetEmail\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Sending reminder email\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Send reminder email\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"canManageUserPermissions\\\"]],[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null]],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"permissionsDescription\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"permissionsDescription\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"userIsEntityAdmin\\\"],null],[[[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can be a company administrator\\\"],null],\\\"isCompanyAdministrator\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canBeACompanyAdministratorDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"canUseBuildaPrice\\\"],null],[[[41,[51,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isCompanyAdministrator\\\"]]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can be a company manager\\\"],null],\\\"canManageEverything\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canBeACompanyManagerDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageEverything\\\"]]],[[[1,\\\"              \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all projects\\\"],null],\\\"canViewProjects\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProjects\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProjects\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all projects\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectsDescription\\\"],null],\\\"canManageProjects\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProjects\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all tasks\\\"],null],[28,[37,6],[\\\"shared.people-editor.Lets the user see all tasks\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all tasks\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllTasksDescription\\\"],null],\\\"canManageTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project budgets\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectBudgetsDescription\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project budgets\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectBudgetsDescription\\\"],null],\\\"canManageBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project quotes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectQuotesDescription\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project quotes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectQuotesDescription\\\"],null],\\\"canManageQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project progress\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectProgressDescription\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project progress\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectProgressDescription\\\"],null],\\\"canManageProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all documents\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllDocumentsDescription\\\"],null],\\\"canViewFileStorage\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all documents\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsDescription\\\"],null],\\\"canManageFileStorage\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsDescription\\\"],null],\\\"canViewProducts\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProductsDescription\\\"],null],\\\"canManageProducts\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseEstimates\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make estimates\\\"],null],\\\"canEstimate\\\",[28,[37,6],[\\\"shared.people-editor.canMakeEstimatesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageEstimateSettings\\\"],null],\\\"canManageEstimateSettings\\\",[28,[37,6],[\\\"shared.people-editor.canManageEstimateSettingsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"                \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,8],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"                \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all timesheets and notes\\\"],null],\\\"canViewTimesheets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTimesheets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTimesheets\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all timesheets and notes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllTimesheetsAndNotesDescription\\\"],null],\\\"canManageTimesheets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",[28,[37,6],[\\\"shared.people-editor.Timesheet workers\\\"],null],\\\"workers\\\",[28,[37,6],[\\\"shared.people-editor.timesheetWorkersDescription\\\"],null],[28,[37,24],[\\\"fullName\\\"],null],[30,0,[\\\"model\\\",\\\"workers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],true,\\\"fullName\\\",[28,[37,6],[\\\"shared.people-editor.Select a worker grant permissions for\\\"],null],[30,0,[\\\"saveUserPermissions\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the bills\\\"],null],\\\"canViewBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBills\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBills\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all bills\\\"],null],[28,[37,6],[\\\"shared.people-editor.Lets the user create and map bills\\\"],null],\\\"canManageBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoices\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.entity.Can see all invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.entity.canViewInvoicesDescription\\\"],null],\\\"canViewInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageInvoices\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewInvoices\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.entity.Can create invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.entity.canManageInvoicesDescription\\\"],null],\\\"canManageInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageInvoices\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canApproveInvoices\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.entity.Can approve invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.entity.canApproveInvoicesDescription\\\"],null],\\\"canApproveInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUsePurchaseOrders\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can see all the purchase orders\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canSeeAllThePurchaseOrdersDescription\\\"],null],\\\"canViewPurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManagePurchaseOrders\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewPurchaseOrders\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can manage all purchase orders\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canManageAllPurchaseOrdersDescription\\\"],null],\\\"canManagePurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManagePurchaseOrders\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canApprovePurchaseOrders\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can approve all purchase orders\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canApproveAllPurchaseOrdersDescription\\\"],null],\\\"canApprovePurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseStagePayments\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can see all the stage payments\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canSeeAllTheStagePaymentsDescription\\\"],null],\\\"canViewStagePayments\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageStagePayments\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewStagePayments\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can manage all stage payments\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canManageAllStagePaymentsDescription\\\"],null],\\\"canManageStagePayments\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"              \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"canUsePayroll\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can run payroll reports\\\"],null],\\\"canViewPayrollReports\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canRunPayrollReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"canUseReportBuilder\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can use the report builder\\\"],null],\\\"canUseReportBuilderReport\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canUseTheReportBuilderDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,18],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                      \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\"\\\\n                      \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllBudgetDataInReports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseGeofencing\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can see all site access data in reports?\\\",\\\"canViewAccessReports\\\",\\\"Site access reports show real-time site occupancy and access history.\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isCompanyAdministrator\\\"]]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"settingsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"settingsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Settings\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"settingsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"settingsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"settingsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"settingsPermissionsVisible\\\"]],[[[41,[28,[37,15],[\\\"canUseBuildaPrice\\\"],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canViewWorkers\\\"],null],\\\"canViewWorkers\\\",[28,[37,6],[\\\"shared.people-editor.Lets users view workers\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageWorkers\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewWorkers\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageWorkers\\\"],null],\\\"canManageWorkers\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageWorkersDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canViewUsers\\\"],null],\\\"canViewUsers\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canViewUsersDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageUsers\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewUsers\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageUsers\\\"],null],\\\"canManageUsers\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageUsersDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"canUseIntegrations\\\"],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageIntegrations\\\"],null],\\\"canManageIntegrations\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageIntegrationsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"canUseFinancialReporting\\\"],null],[[[41,[51,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isCompanyAdministrator\\\"]]],[[[1,\\\"            \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"financialReportingPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"financialReportingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Financial portal\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"financialReportingPermissionsCount\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"financialReportingPermissionsCount\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"financialReportingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"financialReportingPermissionsVisible\\\"]],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can view financials\\\"],null],\\\"canViewFinancialReporting\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canViewFinancialsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFinancialReporting\\\"]],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can manage financials\\\"],null],\\\"canManageFinancialReporting\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageFinancialsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageHealthAndSafety\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canCreateHealthAndSafety\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"unless\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"includes-feature-flags\\\",\\\"fn\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"and\\\",\\\"p\\\",\\\"mut\\\",\\\"h4\\\",\\\"array\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/users/user.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/workers\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"ob0AmGTn\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/workers.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/workers/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <SelectInput\n          @value={{this.filter}}\n          @action={{fn (mut this.filter)}}\n          @class='form-control select-box'\n          data-test-worker-filter\n          as |si|\n        >\n          <si.option @value='active'>{{t\n              'entity.settings.people.workers.Active workers'\n            }}</si.option>\n          <si.option @value='all'>{{t\n              'entity.settings.people.workers.All workers'\n            }}</si.option>\n          <si.option @value='inactive'>{{t\n              'entity.settings.people.workers.Inactive workers'\n            }}</si.option>\n        </SelectInput>\n      </span>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.workers.Search for workers'}}\n          @type='text'\n          @value={{this.searchString}}\n          data-test-worker-search\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageWorkers')}}\n        <div class='d-flex flex-column flex-lg-row'>\n          <LinkTo\n            @route={{concat this.model.basePath '.workers.worker'}}\n            @model='new'\n            class='btn btn-success text-white text-nowrap m-1'\n            data-test-add-worker\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}</LinkTo>\n        </div>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredWorkers}}\n      @noData={{t 'shared.people-editor.workers.No workers yet'}}\n      @route={{concat this.model.basePath '.workers.worker'}}\n      @showWorkerCode={{true}}\n      @onCopyAuthCode={{this.copyAuthCode}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"ouIJAUog\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,\\\"data-test-worker-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"filter\\\"]],[28,[37,5],[[28,[37,6],[[30,0,[\\\"filter\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"active\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"entity.settings.people.workers.Active workers\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"all\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"entity.settings.people.workers.All workers\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"inactive\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"entity.settings.people.workers.Inactive workers\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,7],[\\\"shared.people-editor.workers.Search for workers\\\"],null]],[24,\\\"data-test-worker-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"canManageWorkers\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,\\\"data-test-add-worker\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[28,[37,11],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".workers.worker\\\"],null],\\\"new\\\"]],[[\\\"default\\\"],[[[[8,[39,12],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Add\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,13],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\",\\\"@showWorkerCode\\\",\\\"@onCopyAuthCode\\\"],[[30,0,[\\\"filteredWorkers\\\"]],[28,[37,7],[\\\"shared.people-editor.workers.No workers yet\\\"],null],[28,[37,11],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".workers.worker\\\"],null],true,[30,0,[\\\"copyAuthCode\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"si\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"t\\\",\\\"input\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"people-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/workers/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/workers/worker\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.First name'}}\n          @key='firstName'\n          @model={{this.model.workerChangeset.last.value}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Last name'}}\n          @key='lastName'\n          @model={{this.model.workerChangeset.last.value}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'shared.contacts.Contact email'}}\n          @description={{t\n            'entity.settings.people.workers.worker.contactEmailDescription'\n          }}\n          @key='email'\n          @model={{this.model.workerChangeset.last.value}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Phone number'}}\n          @key='phoneNumber'\n          @model={{this.model.workerChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n  \n        <PtlInput\n          @type='select'\n          @label={{t 'common.Language'}}\n          @key='language'\n          @options={{this.languages}}\n          @model={{this.model.workerChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n  \n        {{#if this.canManageWorkers}}\n          {{#if this.canUseWorkerType}}\n            <PtlInput\n              @type='select'\n              @label={{t 'entity.settings.people.workers.worker.Worker type'}}\n              @key='isContractor'\n              @options={{this.workerTypes}}\n              @description={{t\n                'entity.settings.people.workers.worker.workerTypeDescription'\n              }}\n              @model={{this.model.workerChangeset.last.value}}\n              @required={{true}}\n              @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n              disabled={{or\n                this.saveWorker.isRunning\n                (not this.canManageWorkers)\n              }}\n            />\n          {{/if}}\n          {{#unless this.model.workerChangeset.last.value.isContractor}}\n            {{#if this.canUsePayRate}}\n              <PtlInput\n                @type='currency'\n                @label={{t 'common.Pay rate'}}\n                @key='payRate'\n                @formatterOptions={{hash dashZero=false}}\n                @model={{this.model.workerChangeset.last.value}}\n                @required={{true}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            {{/if}}\n            {{#if this.canUseCostRate}}\n              <PtlInput\n                @type='currency'\n                @label={{t 'entity.settings.people.workers.worker.Cost rate'}}\n                @key='costRate'\n                @formatterOptions={{hash dashZero=false}}\n                @model={{this.model.workerChangeset.last.value}}\n                @required={{true}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                @onChange={{this.setDefaultChargeOutRate}}\n                @containerClass={{if\n                  (or\n                    this.canUseWorkerCostCalculator\n                    (and (not this.worker.isNew) this.canUseBackdateCostRate)\n                  )\n                  'mb-2'\n                  'mb-3'\n                }}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.canUseWorkerCostCalculator\n                (and (not this.worker.isNew) this.canUseBackdateCostRate)\n              )\n            }}\n              <div class='d-flex mb-3'>\n                {{#if this.canUseWorkerCostCalculator}}\n                  <div class='text-left me-2'>\n                    <WorkerCostCalculator\n                      @worker={{this.model.worker.last.value}}\n                      @payRate={{this.model.workerChangeset.last.value.payRate}}\n                      @labourCostCalculators={{this.model.labourCostCalculators.last.value}}\n                    />\n                  </div>\n                {{/if}}\n                {{#if (and (not this.worker.isNew) this.canUseBackdateCostRate)}}\n                  <div class='text-left'>\n                    <button\n                      type='button'\n                      class='btn btn-link text-decoration-underline m-0 p-0'\n                      {{on 'click' this.initBackdateCostRateChangeset}}\n                      disabled={{this.backdateCostRate.isRunning}}\n                    >\n                      {{t\n                        'entity.settings.people.workers.worker.Change cost rate on existing timesheets'\n                      }}\n                    </button>\n                  </div>\n                {{/if}}\n              </div>\n            {{/if}}\n          {{/unless}}\n          {{#if this.canUseChargeOutRate}}\n            <div class='d-flex mb-3'>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @type='currency'\n                  @label={{t 'common.Charge-out rate'}}\n                  @key='chargeOutRate'\n                  @formatterOptions={{hash dashZero=false}}\n                  class='rounded-0 rounded-start'\n                  @model={{this.model.workerChangeset.last.value}}\n                  @required={{true}}\n                  @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                  @containerClass={{if\n                    (and (not this.worker.isNew) this.canUseBackdateChargeOutRate)\n                    'mb-2'\n                    'mb-3'\n                  }}\n                  disabled={{or\n                    this.saveWorker.isRunning\n                    (not this.canManageWorkers)\n                  }}\n                />\n                {{#if\n                  (and (not this.worker.isNew) this.canUseBackdateChargeOutRate)\n                }}\n                  <div class='text-left'>\n                    <button\n                      type='button'\n                      class='btn btn-link text-decoration-underline m-0 p-0'\n                      {{on 'click' this.initBackdateChargeOutRateChangeset}}\n                      disabled={{this.backdateChargeOutRate.isRunning}}\n                    >\n                      {{t\n                        'entity.settings.people.workers.worker.changeChargeOutRateOnExistingTimesheets'\n                      }}\n                    </button>\n                  </div>\n                {{/if}}\n              </div>\n              {{#unless this.model.workerChangeset.last.value.isContractor}}\n                <div>\n                  <div>\n                    <label class='mb-1'>\n                      {{profit-type-label\n                        this.sessionData.entity.effectiveProfitMargin.labourPercentage.type\n                        effective=true\n                      }}\n                    </label>\n                    <div class='input-group d-block mb-2'>\n                      <span\n                        class='input-group-text text-muted rounded-0 rounded-end'\n                      >\n                        {{number-format\n                          this.effectiveProfitMargin\n                          style='percent'\n                          dashZero=false\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        }}</span>\n                    </div>\n                    {{#if\n                      this.sessionData.entity.effectiveProfitMargin.labourPercentage.value\n                    }}\n                      <button\n                        class='btn btn-link m-0 p-0 text-decoration-underline'\n                        {{on 'click' this.setDefaultEffectiveMargin}}\n                        type='button'\n                      >\n                        {{concat\n                          (t 'common.Use default')\n                          ' '\n                          (number-format\n                            this.sessionData.entity.effectiveProfitMargin.labourPercentage.value\n                            style='percent'\n                            dashZero=true\n                            maximumFractionDigits=2\n                            minimumFractionDigits=2\n                          )\n                        }}\n                      </button>\n                    {{else}}\n                      <div class='form-text text-muted'>\n                        {{t 'shared.financial.There is no default value'}}\n                      </div>\n                    {{/if}}\n                  </div>\n                </div>\n              {{/unless}}\n            </div>\n          {{/if}}\n          <h4 class='mb-2'>{{t\n              'entity.settings.people.workers.worker.Emergency contacts'\n            }}</h4>\n          <div class='row'>\n            <div class='col-4'>\n              <PtlInput\n                @type='text'\n                @label={{t 'common.Name'}}\n                @key='emergencyContactNameOne'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n            <div class='col-3'>\n              <PtlInput\n                @type='text'\n                @label={{t 'entity.settings.people.workers.worker.Relationship'}}\n                @key='emergencyContactRelationshipOne'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n            <div class='col-5'>\n              <PtlInput\n                @type='text'\n                @label={{t 'common.Phone number'}}\n                @key='emergencyContactPhoneNumberOne'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n          </div>\n  \n          <div class='row'>\n            <div class='col-4'>\n              <PtlInput\n                @type='text'\n                @label={{t 'common.Name'}}\n                @key='emergencyContactNameTwo'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n            <div class='col-3'>\n              <PtlInput\n                @type='text'\n                @label={{t 'entity.settings.people.workers.worker.Relationship'}}\n                @key='emergencyContactRelationshipTwo'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n            <div class='col-5'>\n              <PtlInput\n                @type='text'\n                @label={{t 'common.Phone number'}}\n                @key='emergencyContactPhoneNumberTwo'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n          </div>\n  \n          {{#if\n            (or\n              (includes-some-feature-flags\n                'entityCanUseSmartPayroll' 'entityCanUseKeypay'\n              )\n              (and\n                this.accountingPlatform.isActive\n                (eq this.accountingPlatform.activePlatform 'xero')\n                (includes-feature-flags 'canUseXeroIntegration')\n              )\n              (and\n                this.accountingPlatform.isActive\n                (eq this.accountingPlatform.activePlatform 'quickbooks')\n                (includes-feature-flags 'canUseQuickbooksIntegration')\n              )\n            )\n          }}\n            <h4 class='mb-2'>{{t 'common.Integrations'}}</h4>\n            {{#if (includes-feature-flags 'entityCanUseSmartPayroll')}}\n              <PtlInput\n                @type='text'\n                @label={{t\n                  'entity.settings.people.workers.worker.Smartly employee code'\n                }}\n                @description={{t\n                  'entity.settings.people.workers.worker.smartlyEmployeeCodeDescription'\n                }}\n                @key='smartPayrollEmployeeCode'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n              <PtlInput\n                @type='text'\n                @label={{t\n                  'entity.settings.people.workers.worker.Smartly employee department code'\n                }}\n                @description={{t\n                  'entity.settings.people.workers.worker.smartlyEmployeeDepartmentCodeDescription'\n                }}\n                @key='smartPayrollEmployeeDepartmentCode'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            {{/if}}\n  \n            {{#if (includes-feature-flags 'entityCanUseKeypay')}}\n              <PtlInput\n                @type='text'\n                @label={{t\n                  'entity.settings.people.workers.worker.Keypay employee code'\n                }}\n                @description={{t\n                  'entity.settings.people.workers.worker.keypayEmployeeCodeDescription'\n                }}\n                @key='keypayEmployeeCode'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{this.saveWorker.isRunning}}\n              />\n            {{/if}}\n  \n            {{#if\n              (and\n                (eq this.accountingPlatform.activePlatform 'xero')\n                (includes-feature-flags 'canUseXeroIntegration')\n              )\n            }}\n              <PtlInput\n                @type='powerSelect'\n                @label={{t 'entity.settings.people.workers.worker.Xero employee'}}\n                @key='xeroEmployee'\n                @optionKeys={{array 'name'}}\n                @description={{t\n                  'entity.settings.people.workers.worker.xeroEmployeeDescription'\n                }}\n                @options={{this.model.accountingPlatformEmployees.last.value}}\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                @searchEnabled={{true}}\n                @searchField={{'name'}}\n                @disabled={{or\n                  this.saveWorker.isRunning\n                  this.reloadEmployees.isRunning\n                }}\n              />\n              <div>\n                <button\n                  type='button'\n                  class='btn btn-link text-decoration-underline m-0 p-0 mb-2'\n                  {{on 'click' (perform this.reloadEmployees)}}\n                  disabled={{this.reloadEmployees.isRunning}}\n                >\n                  {{#if this.reloadEmployees.isRunning}}\n                    {{t\n                      'entity.settings.people.workers.worker.Reloading Xero employees'\n                    }}&hellip;\n                  {{else}}\n                    {{t\n                      'entity.settings.people.workers.worker.Reload Xero employees'\n                    }}\n                  {{/if}}\n                </button>\n              </div>\n  \n              <PtlInput\n                @type='powerSelect'\n                @label={{t\n                  'entity.settings.people.workers.worker.Xero earnings rate'\n                }}\n                @description={{t\n                  'entity.settings.people.workers.worker.xeroEarningsRateDescription'\n                }}\n                @key='xeroEarningsRate'\n                @options={{this.model.xeroEarningsRates.last.value}}\n                @optionKeys={{array 'name'}}\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                @searchEnabled={{true}}\n                @searchField={{'name'}}\n                @disabled={{or\n                  this.saveWorker.isRunning\n                  this.reloadEarningsRates.isRunning\n                }}\n              />\n  \n              <div>\n                <button\n                  type='button'\n                  class='btn btn-link text-decoration-underline m-0 p-0 mb-2'\n                  {{on 'click' (perform this.reloadEarningsRates)}}\n                  disabled={{this.reloadEarningsRates.isRunning}}\n                >\n                  {{#if this.reloadEarningsRates.isRunning}}\n                    {{t\n                      'entity.settings.people.workers.worker.Reloading Xero earnings rates'\n                    }}&hellip;\n                  {{else}}\n                    {{t\n                      'entity.settings.people.workers.worker.Reload Xero earnings rates'\n                    }}\n                  {{/if}}\n                </button>\n              </div>\n            {{/if}}\n  \n            {{#if\n              (and\n                (eq this.accountingPlatform.activePlatform 'quickbooks')\n                (includes-feature-flags 'canUseQuickbooksIntegration')\n              )\n            }}\n              <PtlInput\n                @type='powerSelect'\n                @label={{t\n                  'entity.settings.people.workers.worker.QuickBooks employee'\n                }}\n                @key='quickbooksEmployee'\n                @optionKeys={{array 'name'}}\n                @description={{t\n                  'entity.settings.people.workers.worker.quickbooksEmployeeHelperText'\n                }}\n                @options={{this.model.accountingPlatformEmployees.last.value}}\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                @searchEnabled={{true}}\n                @searchField={{'name'}}\n                @allowClear={{true}}\n                @disabled={{or\n                  this.saveWorker.isRunning\n                  this.reloadEmployees.isRunning\n                }}\n                @afterOptionsComponent={{component\n                  'power-select-after-options-button'\n                  onClick=(perform this.reloadEmployees)\n                  icon='sync'\n                  text=(t\n                    'entity.settings.people.workers.worker.Reload QuickBooks employees'\n                  )\n                  isLoading=this.reloadEmployees.isRunning\n                  loadingText=(t\n                    'entity.settings.people.workers.worker.Loading QuickBooks employees'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n        {{/if}}\n  \n        <div class='d-flex flex-grow-1'>\n          {{#if (and this.worker.isActive (not this.enableWorker.isRunning))}}\n            {{#unless this.worker.isNew}}\n              {{#if this.canManageWorkers}}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{or\n                    this.deleteWorker.isRunning\n                    this.saveWorker.isRunning\n                  }}\n                  {{on 'click' (perform this.deleteWorker)}}\n                >\n                  {{#if this.deleteWorker.isRunning}}\n                    {{if\n                      this.canDeleteWorker\n                      (t 'entity.settings.people.workers.worker.Deleting worker')\n                      (t 'entity.settings.people.workers.worker.Disabling worker')\n                    }}&hellip;\n                  {{else}}\n                    {{if\n                      this.canDeleteWorker\n                      (t 'entity.settings.people.workers.worker.Delete worker')\n                      (t 'entity.settings.people.workers.worker.Disable worker')\n                    }}\n                  {{/if}}\n                </button>\n              {{/if}}\n            {{/unless}}\n  \n            {{#if this.canManageWorkers}}\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{or\n                  this.deleteWorker.isRunning\n                  this.saveWorker.isRunning\n                }}\n                {{on\n                  'click'\n                  (perform this.saveWorker this.model.workerChangeset.last.value)\n                }}\n              >\n                {{#if this.saveWorker.isRunning}}\n                  {{t\n                    'entity.settings.people.workers.worker.Saving worker'\n                  }}&hellip;\n                {{else}}\n                  {{if\n                    this.worker.isNew\n                    (t 'entity.settings.people.workers.worker.Create worker')\n                    (t 'entity.settings.people.workers.worker.Save worker')\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n          {{else}}\n            {{#if this.canManageWorkers}}\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.enableWorker.isRunning}}\n                {{on\n                  'click'\n                  (perform\n                    this.enableWorker this.model.workerChangeset.last.value\n                  )\n                }}\n              >\n                {{#if this.enableWorker.isRunning}}\n                  {{t\n                    'entity.settings.people.workers.worker.Enabling worker'\n                  }}&hellip;\n                {{else}}\n                  {{t 'entity.settings.people.workers.worker.Enable worker'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#if this.canManageWorkers}}\n        {{#unless this.worker.isNew}}\n          <PtlForm class='mb-3'>\n            <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n            <p class='mb-4'>\n              {{t\n                'entity.settings.people.workers.worker.workerPermissionsExplanation'\n              }}\n            </p>\n  \n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'entity.settings.people.workers.worker.Can see all projects and tasks'\n              }}\n              @key='canSeeProjectsAndTasks'\n              @description={{t\n                'entity.settings.people.workers.worker.canSeeAllProjectsAndTasksDescription'\n              }}\n              @model={{this.model.workerPermissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n              disabled={{this.saveWorker.isRunning}}\n            />\n  \n            {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.workerPermissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{this.saveWorker.isRunning}}\n              />\n            {{/if}}\n  \n            <div class='d-flex flex-grow-1'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.savePermissions.isRunning}}\n                {{on\n                  'click'\n                  (perform\n                    this.savePermissions\n                    this.model.workerPermissionsChangeset.last.value\n                  )\n                }}\n              >\n                {{#if this.savePermissions.isRunning}}\n                  {{t 'shared.people-editor.Saving permissions'}}&hellip;\n                {{else}}\n                  {{t 'shared.people-editor.Save permissions'}}\n                {{/if}}\n              </button>\n            </div>\n          </PtlForm>\n        {{/unless}}\n      {{/if}}\n  \n      {{#unless this.worker.isNew}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-3'>{{t\n              'entity.settings.people.workers.worker.Worker login code'\n            }}</h3>\n          <p class='mt-0'>\n            {{t\n              'entity.settings.people.workers.worker.workerLoginCodeExplanation'\n            }}\n          </p>\n          <div class='d-flex align-items-center position-relative'>\n  \n            {{#if this.worker.authCode}}\n              <div\n                role='button'\n                class='bg-white border rounded px-2 py-1 flex-grow-1'\n                data-bs-placement='bottom'\n                {{on 'click' this.copyAuthCode}}\n                {{bootstrap-tooltip\n                  (if\n                    this.copiedAuthCode\n                    (t 'common.Copied')\n                    (t 'common.Click to copy')\n                  )\n                }}\n              >\n                <span class='fw-bold'>\n                  {{this.worker.authCode}}\n                </span>\n              </div>\n            {{else}}\n              <div\n                role='button'\n                class='bg-white border rounded px-2 py-1 flex-grow-1'\n              >\n                <span class='fw-bold'>\n                  {{t 'common.Not set'}}\n                </span>\n              </div>\n            {{/if}}\n  \n            {{#if this.canManageWorkers}}\n              <button\n                class='btn ms-2\n                  {{if\n                    this.worker.authCode\n                    \"btn-outline-danger\"\n                    \"btn-outline-success\"\n                  }}'\n                type='button'\n                {{on 'click' (perform this.resetWorkerAuthCode)}}\n              >\n                {{#if this.resetWorkerAuthCode.isRunning}}\n                  {{t\n                    'entity.settings.people.workers.worker.Generating new code'\n                  }}&hellip;\n                {{else}}\n                  {{if\n                    this.worker.authCode\n                    (t 'entity.settings.people.workers.worker.Generate new code')\n                    (t 'entity.settings.people.workers.worker.Generate code')\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n          </div>\n        </PtlForm>\n      {{/unless}}\n    {{/if}}\n  </div>\n  \n  {{#if this.backdateChargeOutRateChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.backdateChargeOutRateChangeSet) null}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        <p>\n          {{t\n            'entity.settings.people.workers.worker.overwriteTheChargeOutRatesConfirm'\n          }}\n        </p>\n        <PtlInput\n          @type='currency'\n          @label={{t 'common.Charge-out rate'}}\n          @key='chargeOutRate'\n          @formatterOptions={{hash dashZero=false}}\n          @required={{true}}\n          @model={{this.backdateChargeOutRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateChargeOutRate.performCount 0}}\n          disabled={{this.backdateChargeOutRate.isRunning}}\n        />\n        <PtlInput\n          @type='date'\n          @label={{t 'common.From'}}\n          @key='startDate'\n          @model={{this.backdateChargeOutRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateChargeOutRate.performCount 0}}\n          disabled={{this.backdateChargeOutRate.isRunning}}\n        />\n        <PtlInput\n          @type='date'\n          @label={{t 'common.To'}}\n          @key='endDate'\n          @model={{this.backdateChargeOutRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateChargeOutRate.performCount 0}}\n          disabled={{this.backdateChargeOutRate.isRunning}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.backdateChargeOutRate.isRunning}}\n            {{on 'click' (fn (mut this.backdateChargeOutRateChangeSet) null)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.backdateChargeOutRate.isRunning}}\n            {{on\n              'click'\n              (perform\n                this.backdateChargeOutRate this.model.workerChangeset.last.value\n              )\n            }}\n          >\n            {{#if this.backdateChargeOutRate.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Applying'}}&hellip;\n            {{else}}\n              {{t 'common.Apply'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.backdateCostRateChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.backdateCostRateChangeSet) null}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        <p>\n          {{t\n            'entity.settings.people.workers.worker.overwriteTheCostRatesConfirm'\n          }}\n        </p>\n        <PtlInput\n          @type='currency'\n          @label={{t 'entity.settings.people.workers.worker.Cost rate'}}\n          @key='costRate'\n          @formatterOptions={{hash dashZero=false}}\n          @required={{true}}\n          @model={{this.backdateCostRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateCostRate.performCount 0}}\n          disabled={{this.backdateCostRate.isRunning}}\n        />\n        <PtlInput\n          @type='date'\n          @label={{t 'common.From'}}\n          @key='startDate'\n          @model={{this.backdateCostRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateCostRate.performCount 0}}\n          disabled={{this.backdateCostRate.isRunning}}\n        />\n        <PtlInput\n          @type='date'\n          @label={{t 'common.To'}}\n          @key='endDate'\n          @model={{this.backdateCostRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateCostRate.performCount 0}}\n          disabled={{this.backdateCostRate.isRunning}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.backdateCostRate.isRunning}}\n            {{on 'click' (fn (mut this.backdateCostRateChangeSet) null)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.backdateCostRate.isRunning}}\n            {{on\n              'click'\n              (perform\n                this.backdateCostRate this.model.workerChangeset.last.value\n              )\n            }}\n          >\n            {{#if this.backdateCostRate.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Applying'}}&hellip;\n            {{else}}\n              {{t 'common.Apply'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"a142buBC\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"shared.contacts.Contact email\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.contactEmailDescription\\\"],null],\\\"email\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,6],[\\\"common.Language\\\"],null],\\\"language\\\",[30,0,[\\\"languages\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageWorkers\\\"]],[[[41,[30,0,[\\\"canUseWorkerType\\\"]],[[[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@description\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Worker type\\\"],null],\\\"isContractor\\\",[30,0,[\\\"workerTypes\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.workerTypeDescription\\\"],null],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isContractor\\\"]]],[[[41,[30,0,[\\\"canUsePayRate\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,6],[\\\"common.Pay rate\\\"],null],\\\"payRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"canUseCostRate\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@containerClass\\\"],[\\\"currency\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Cost rate\\\"],null],\\\"costRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"setDefaultChargeOutRate\\\"]],[52,[28,[37,8],[[30,0,[\\\"canUseWorkerCostCalculator\\\"]],[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateCostRate\\\"]]],null]],null],\\\"mb-2\\\",\\\"mb-3\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"canUseWorkerCostCalculator\\\"]],[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateCostRate\\\"]]],null]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"d-flex mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseWorkerCostCalculator\\\"]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"text-left me-2\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,14],null,[[\\\"@worker\\\",\\\"@payRate\\\",\\\"@labourCostCalculators\\\"],[[30,0,[\\\"model\\\",\\\"worker\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"payRate\\\"]],[30,0,[\\\"model\\\",\\\"labourCostCalculators\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateCostRate\\\"]]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"text-left\\\"],[12],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"initBackdateCostRateChangeset\\\"]]],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Change cost rate on existing timesheets\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"canUseChargeOutRate\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,7],[[24,0,\\\"rounded-0 rounded-start\\\"],[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\",\\\"@containerClass\\\"],[\\\"currency\\\",[28,[37,6],[\\\"common.Charge-out rate\\\"],null],\\\"chargeOutRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],[52,[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateChargeOutRate\\\"]]],null],\\\"mb-2\\\",\\\"mb-3\\\"]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateChargeOutRate\\\"]]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"text-left\\\"],[12],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"initBackdateChargeOutRateChangeset\\\"]]],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.changeChargeOutRateOnExistingTimesheets\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isContractor\\\"]]],[[[1,\\\"              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,18],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"type\\\"]]],[[\\\"effective\\\"],[true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"input-group d-block mb-2\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"input-group-text text-muted rounded-0 rounded-end\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,20],[[30,0,[\\\"effectiveProfitMargin\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",false,2,2]]]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link m-0 p-0 text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"setDefaultEffectiveMargin\\\"]]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,21],[[28,[37,6],[\\\"common.Use default\\\"],null],\\\" \\\",[28,[37,20],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,6],[\\\"shared.financial.There is no default value\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Emergency contacts\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-4\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"emergencyContactNameOne\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Relationship\\\"],null],\\\"emergencyContactRelationshipOne\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-5\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"emergencyContactPhoneNumberOne\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-4\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"emergencyContactNameTwo\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Relationship\\\"],null],\\\"emergencyContactRelationshipTwo\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-5\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"emergencyContactPhoneNumberTwo\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,8],[[28,[37,23],[\\\"entityCanUseSmartPayroll\\\",\\\"entityCanUseKeypay\\\"],null],[28,[37,13],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[28,[37,24],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"xero\\\"],null],[28,[37,25],[\\\"canUseXeroIntegration\\\"],null]],null],[28,[37,13],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[28,[37,24],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"quickbooks\\\"],null],[28,[37,25],[\\\"canUseQuickbooksIntegration\\\"],null]],null]],null],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,6],[\\\"common.Integrations\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[\\\"entityCanUseSmartPayroll\\\"],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Smartly employee code\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.smartlyEmployeeCodeDescription\\\"],null],\\\"smartPayrollEmployeeCode\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Smartly employee department code\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.smartlyEmployeeDepartmentCodeDescription\\\"],null],\\\"smartPayrollEmployeeDepartmentCode\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[\\\"entityCanUseKeypay\\\"],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Keypay employee code\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.keypayEmployeeCodeDescription\\\"],null],\\\"keypayEmployeeCode\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[28,[37,24],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"xero\\\"],null],[28,[37,25],[\\\"canUseXeroIntegration\\\"],null]],null],[[[1,\\\"            \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@description\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@disabled\\\"],[\\\"powerSelect\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Xero employee\\\"],null],\\\"xeroEmployee\\\",[28,[37,26],[\\\"name\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.xeroEmployeeDescription\\\"],null],[30,0,[\\\"model\\\",\\\"accountingPlatformEmployees\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],true,\\\"name\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0 mb-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"reloadEmployees\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Reloading Xero employees\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Reload Xero employees\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@options\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@disabled\\\"],[\\\"powerSelect\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Xero earnings rate\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.xeroEarningsRateDescription\\\"],null],\\\"xeroEarningsRate\\\",[30,0,[\\\"model\\\",\\\"xeroEarningsRates\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,26],[\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],true,\\\"name\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"reloadEarningsRates\\\",\\\"isRunning\\\"]]],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0 mb-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"reloadEarningsRates\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"reloadEarningsRates\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reloadEarningsRates\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Reloading Xero earnings rates\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Reload Xero earnings rates\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[28,[37,24],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"quickbooks\\\"],null],[28,[37,25],[\\\"canUseQuickbooksIntegration\\\"],null]],null],[[[1,\\\"            \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@description\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@allowClear\\\",\\\"@disabled\\\",\\\"@afterOptionsComponent\\\"],[\\\"powerSelect\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.QuickBooks employee\\\"],null],\\\"quickbooksEmployee\\\",[28,[37,26],[\\\"name\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.quickbooksEmployeeHelperText\\\"],null],[30,0,[\\\"model\\\",\\\"accountingPlatformEmployees\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],true,\\\"name\\\",true,[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]]],null],[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[28,[37,27],[[30,0,[\\\"reloadEmployees\\\"]]],null],\\\"sync\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Reload QuickBooks employees\\\"],null],[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Loading QuickBooks employees\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,0,[\\\"worker\\\",\\\"isActive\\\"]],[28,[37,9],[[30,0,[\\\"enableWorker\\\",\\\"isRunning\\\"]]],null]],null],[[[41,[51,[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],[[[41,[30,0,[\\\"canManageWorkers\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"deleteWorker\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[52,[30,0,[\\\"canDeleteWorker\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Deleting worker\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.Disabling worker\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[52,[30,0,[\\\"canDeleteWorker\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Delete worker\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.Disable worker\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageWorkers\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveWorker\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Saving worker\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"worker\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Create worker\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.Save worker\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[30,0,[\\\"canManageWorkers\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"enableWorker\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"enableWorker\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"enableWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Enabling worker\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Enable worker\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageWorkers\\\"]],[[[41,[51,[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],[[[1,\\\"        \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.workerPermissionsExplanation\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Can see all projects and tasks\\\"],null],\\\"canSeeProjectsAndTasks\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.canSeeAllProjectsAndTasksDescription\\\"],null],[30,0,[\\\"model\\\",\\\"workerPermissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"workerPermissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"workerPermissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Worker login code\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.workerLoginCodeExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center position-relative\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"worker\\\",\\\"authCode\\\"]],[[[1,\\\"            \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"bg-white border rounded px-2 py-1 flex-grow-1\\\"],[24,\\\"data-bs-placement\\\",\\\"bottom\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"copyAuthCode\\\"]]],null],[4,[38,30],[[52,[30,0,[\\\"copiedAuthCode\\\"]],[28,[37,6],[\\\"common.Copied\\\"],null],[28,[37,6],[\\\"common.Click to copy\\\"],null]]],null],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"worker\\\",\\\"authCode\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,\\\"role\\\",\\\"button\\\"],[14,0,\\\"bg-white border rounded px-2 py-1 flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Not set\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageWorkers\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn ms-2\\\\n                \\\",[52,[30,0,[\\\"worker\\\",\\\"authCode\\\"]],\\\"btn-outline-danger\\\",\\\"btn-outline-success\\\"]]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"resetWorkerAuthCode\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"resetWorkerAuthCode\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Generating new code\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"worker\\\",\\\"authCode\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Generate new code\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.Generate code\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,31],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,32],[[28,[37,33],[[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]]],null],null],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.overwriteTheChargeOutRatesConfirm\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,6],[\\\"common.Charge-out rate\\\"],null],\\\"chargeOutRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],true,[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateChargeOutRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.From\\\"],null],\\\"startDate\\\",[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateChargeOutRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.To\\\"],null],\\\"endDate\\\",[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateChargeOutRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,32],[[28,[37,33],[[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]]],null],null],null]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"backdateChargeOutRate\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Applying\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Apply\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"backdateCostRateChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,31],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,32],[[28,[37,33],[[30,0,[\\\"backdateCostRateChangeSet\\\"]]],null],null],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.overwriteTheCostRatesConfirm\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Cost rate\\\"],null],\\\"costRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],true,[30,0,[\\\"backdateCostRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateCostRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.From\\\"],null],\\\"startDate\\\",[30,0,[\\\"backdateCostRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateCostRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.To\\\"],null],\\\"endDate\\\",[30,0,[\\\"backdateCostRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateCostRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,32],[[28,[37,33],[[30,0,[\\\"backdateCostRateChangeSet\\\"]]],null],null],null]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"backdateCostRate\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Applying\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Apply\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"unless\\\",\\\"hash\\\",\\\"and\\\",\\\"worker-cost-calculator\\\",\\\"button\\\",\\\"on\\\",\\\"label\\\",\\\"profit-type-label\\\",\\\"span\\\",\\\"number-format\\\",\\\"concat\\\",\\\"h4\\\",\\\"includes-some-feature-flags\\\",\\\"eq\\\",\\\"includes-feature-flags\\\",\\\"array\\\",\\\"perform\\\",\\\"component\\\",\\\"p\\\",\\\"bootstrap-tooltip\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/workers/worker.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/profile\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Profile')}}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Profile'}}</h2>\n      {{/if}}\n    </header>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <PtlForm\n        class='width--small mb-4'\n        {{did-insert this.initUserCanManageHealthAndSafety}}\n      >\n  \n        <h3 class='mb-3'>{{t 'entity.settings.profile.User details'}}</h3>\n        {{#let\n          (changeset this.model.user.last.value this.userValidationMap)\n          as |userModel|\n        }}\n          <PtlInput\n            @type='text'\n            @label={{t 'common.First name'}}\n            @key='firstName'\n            @model={{userModel}}\n            @required={{true}}\n            disabled={{this.saveUser.isRunning}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Last name'}}\n            @key='lastName'\n            @model={{userModel}}\n            @required={{true}}\n            disabled={{this.saveUser.isRunning}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Email'}}\n            @key='email'\n            @model={{userModel}}\n            @required={{true}}\n            disabled={{this.saveUser.isRunning}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Phone number'}}\n            @key='phoneNumber'\n            @model={{userModel}}\n            disabled={{this.saveUser.isRunning}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          />\n          <PtlInput\n            @type='select'\n            @label={{t 'common.Language'}}\n            @key='language'\n            @options={{this.languages}}\n            @model={{userModel}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n            disabled={{this.saveUser.isRunning}}\n          />\n  \n          <div class='mb-3'>\n            <button\n              type='button'\n              class='btn btn-link text-decoration-underline p-0'\n              {{on 'click' (fn (mut this.termsOfServiceModalVisible) true)}}\n            >\n              {{t 'entity.settings.profile.View Terms of Service'}}\n            </button>\n          </div>\n  \n          {{#if\n            (includes-feature-flags\n              'userIsEntityAdmin' 'entityCanUseHealthAndSafety'\n            )\n          }}\n            <h4 class='mb-3'>\n              {{t 'common.healthAndSafety'}}\n            </h4>\n  \n            <div class='form-check mb-3'>\n              <label>\n                <Input\n                  class='form-check-input'\n                  @type='checkbox'\n                  @checked={{this.userCanManageHealthAndSafety}}\n                  disabled={{this.saveUser.isRunning}}\n                />\n                {{t 'entity.settings.profile.Manage health and safety'}}\n              </label>\n              <div class='form-text text-muted'>\n                {{t\n                  'entity.settings.profile.grantYourselfAccessToManageAndSuperviseHealthAndSafety'\n                }}\n              </div>\n            </div>\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveUser.isRunning}}\n              {{on 'click' (perform this.saveUser userModel)}}\n            >\n              {{#if this.saveUser.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/let}}\n      </PtlForm>\n  \n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-1'>{{t 'entity.settings.profile.Change password'}}</h3>\n        <div>\n          <button\n            type='button'\n            class='btn btn-link text-decoration-underline m-0 p-0 mt-2'\n            {{on 'click' (fn (mut this.passwordModalVisible) true)}}\n          >\n            {{t 'entity.settings.profile.Click here to change password'}}\n          </button>\n        </div>\n      </PtlForm>\n  \n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-1'>{{t\n            'entity.settings.profile.Remove yourself from company'\n          }}</h3>\n        <p>\n          {{t\n            'entity.settings.profile.ifYouChooseToDoThisYouWillNotBeAbleToAccess'\n          }}\n          <b>{{this.sessionData.entity.name}}</b>\n        </p>\n        <div>\n          <button\n            type='button'\n            class='btn btn-link text-danger text-decoration-underline m-0 p-0'\n            {{on 'click' (perform this.deleteUser)}}\n          >\n            {{t 'entity.settings.profile.Remove me from this company'}}\n          </button>\n        </div>\n      </PtlForm>\n    {{/if}}\n  </article>\n  \n  {{#if this.passwordModalVisible}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{perform this.closePasswordModal}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <div class='form-group mb-2'>\n          <label for='old-password'>{{t\n              'entity.settings.profile.Current password'\n            }}</label>\n          <Input\n            @type='password'\n            @value={{this.oldPassword}}\n            class='form-control'\n            id='old-password'\n          />\n  \n        </div>\n        <div class='form-group mb-2'>\n          <label for='new-password'>{{t\n              'entity.settings.profile.New password'\n            }}</label>\n          <Input\n            @type='password'\n            @value={{this.newPassword}}\n            class='form-control'\n            id='new-password'\n          />\n        </div>\n        <div class='form-group mb-2'>\n          <label for='confirm-password'>{{t\n              'entity.settings.profile.Confirm password'\n            }}</label>\n          <Input\n            @type='password'\n            @value={{this.confirmPassword}}\n            class='form-control'\n            id='confirm-password'\n          />\n        </div>\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          class='btn btn-secondary'\n          type='button'\n          {{on 'click' (perform this.closePasswordModal)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='float-end btn btn-primary'\n          type='button'\n          {{on 'click' (perform (mut this.changePassword))}}\n        >\n          {{#if this.changePassword.isRunning}}\n            {{t 'common.Changing'}}&hellip;\n          {{else}}\n            {{t 'common.Confirm change'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.termsOfServiceModalVisible}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.termsOfServiceModalVisible) false}}\n      @containerClass='modal-content modal-dialog-scrollable w-75'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        {{html-safe this.model.terms.last.value}}\n      </div>\n  \n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          aria-label='button close'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.termsOfServiceModalVisible) false)}}\n        >{{t 'common.Close'}}</button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"pEqIxCum\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Profile\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Profile\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,9],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,10],[[24,0,\\\"width--small mb-4\\\"],[4,[38,11],[[30,0,[\\\"initUserCanManageHealthAndSafety\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.User details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"model\\\",\\\"user\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"userValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,1],true,[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,1],true,[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Email\\\"],null],\\\"email\\\",[30,1],true,[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,4],[\\\"common.Language\\\"],null],\\\"language\\\",[30,0,[\\\"languages\\\"]],[30,1],[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline p-0\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"termsOfServiceModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.View Terms of Service\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,22],[\\\"userIsEntityAdmin\\\",\\\"entityCanUseHealthAndSafety\\\"],null],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"form-check mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"userCanManageHealthAndSafety\\\"]]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.Manage health and safety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.grantYourselfAccessToManageAndSuperviseHealthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"saveUser\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,10],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.Change password\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0 mt-2\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"passwordModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.Click here to change password\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,10],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.Remove yourself from company\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.ifYouChooseToDoThisYouWillNotBeAbleToAccess\\\"],null]],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline m-0 p-0\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.Remove me from this company\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"passwordModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,26],[[30,0,[\\\"closePasswordModal\\\"]]],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"old-password\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.Current password\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[8,[39,25],[[24,0,\\\"form-control\\\"],[24,1,\\\"old-password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"oldPassword\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"new-password\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.New password\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[8,[39,25],[[24,0,\\\"form-control\\\"],[24,1,\\\"new-password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"newPassword\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"confirm-password\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.Confirm password\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[8,[39,25],[[24,0,\\\"form-control\\\"],[24,1,\\\"confirm-password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"confirmPassword\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"closePasswordModal\\\"]]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,26],[[28,[37,21],[[30,0,[\\\"changePassword\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"changePassword\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Changing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Confirm change\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"termsOfServiceModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"termsOfServiceModalVisible\\\"]]],null],false],null],\\\"modal-content modal-dialog-scrollable w-75\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,31],[[30,0,[\\\"model\\\",\\\"terms\\\",\\\"last\\\",\\\"value\\\"]]],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"button close\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"termsOfServiceModalVisible\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"userModel\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"loading-icon\\\",\\\"ptl-form\\\",\\\"did-insert\\\",\\\"h3\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"includes-feature-flags\\\",\\\"h4\\\",\\\"label\\\",\\\"input\\\",\\\"perform\\\",\\\"span\\\",\\\"p\\\",\\\"b\\\",\\\"modal-dialog\\\",\\\"html-safe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/profile.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/error\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1 text-center p-5 d-flex flex-column align-items-center'>\n    <FaIcon @icon='dizzy' @size='5x' class='mb-3' />\n    <h1 class='mb-0'>Oops</h1>\n    <h3>Something went wrong</h3>\n  \n    <LinkTo @route='index' class='btn btn-lg btn-primary'>Try again</LinkTo>\n  </div>\n  */\n  {\n    \"id\": \"S/xBlQ7T\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1 text-center p-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"dizzy\\\",\\\"5x\\\"]],null],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"Oops\\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Something went wrong\\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,4],[[24,0,\\\"btn btn-lg btn-primary\\\"]],[[\\\"@route\\\"],[\\\"index\\\"]],[[\\\"default\\\"],[[[[1,\\\"Try again\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"h3\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/templates/error.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/initiate-password-reset\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='vh-100 bg-dark bg-gradient'>\n    <div class='container h-100 d-flex justify-content-center align-items-center'>\n      <div class='card shadow-lg' style='width: 450px;'>\n        <div class='card-body p-sm-5 text-center'>\n  \n          <form {{action 'resetPassword' on='submit'}}>\n            <h1 class='mb-3'>Reset your password</h1>\n            <div class='mb-3'>\n              <Input\n                id='email-address'\n                class='form-control form-control-lg'\n                @value={{this.email}}\n              />\n            </div>\n            <LoadingButton\n              @class='btn btn-primary btn-lg w-100'\n              @isLoading={{this.isResettingPassword}}\n              @action={{action 'resetPassword'}}\n              @buttonText='Send password reset email'\n            />\n          </form>\n        </div>\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"ouRsjDc1\",\n    \"block\": \"[[[10,0],[14,0,\\\"vh-100 bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container h-100 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg\\\"],[14,5,\\\"width: 450px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5 text-center\\\"],[12],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"form\\\"],[4,[38,2],[[30,0],\\\"resetPassword\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Reset your password\\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],[[24,1,\\\"email-address\\\"],[24,0,\\\"form-control form-control-lg\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"email\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"btn btn-primary btn-lg w-100\\\",[30,0,[\\\"isResettingPassword\\\"]],[28,[37,2],[[30,0],\\\"resetPassword\\\"],null],\\\"Send password reset email\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"form\\\",\\\"action\\\",\\\"h1\\\",\\\"input\\\",\\\"loading-button\\\"]]\",\n    \"moduleName\": \"portal/templates/initiate-password-reset.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"xQuGqETj\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/login\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"0q3Z2Pb9\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/login.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/logout-redirect\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"/Dnn3c5w\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/logout-redirect.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/no-access\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='vh-100 bg-dark bg-gradient'>\n    <div class='container h-100 d-flex justify-content-center align-items-center'>\n      <div class='card shadow-lg' style='width: 450px;'>\n        <div class='card-body p-sm-5 text-center'>\n          <h1 class='mb-3'>\n            You can't access this company\n          </h1>\n          <p>\n            Either you haven't been given access to this company, or the company\n            has been disabled.\n          </p>\n          <p>\n            If you believe you have received this message in error, please contact\n            the company manager.\n          </p>\n  \n          {{#if (gt this.sessionData.allowedEntities.length 1)}}\n            <button\n              type='button'\n              class='btn btn-primary btn-lg w-100'\n              {{on 'click' (fn (mut this.orgSelectorOpen) true)}}\n            >\n              Change company\n            </button>\n          {{else}}\n            <button\n              class='btn btn-primary btn-lg w-100'\n              type='button'\n              {{on 'click' this.signOut}}\n            >\n              Sign out\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    </div>\n  </div>\n  \n  {{#if this.orgSelectorOpen}}\n    <EntitySelector @onClose={{fn (mut this.orgSelectorOpen) false}} />\n  {{/if}}\n  */\n  {\n    \"id\": \"9zP/Hc7f\",\n    \"block\": \"[[[10,0],[14,0,\\\"vh-100 bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container h-100 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg\\\"],[14,5,\\\"width: 450px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5 text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          You can't access this company\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          Either you haven't been given access to this company, or the company\\\\n          has been disabled.\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          If you believe you have received this message in error, please contact\\\\n          the company manager.\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,4],[[30,0,[\\\"sessionData\\\",\\\"allowedEntities\\\",\\\"length\\\"]],1],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-lg w-100\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"orgSelectorOpen\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            Change company\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-lg w-100\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"signOut\\\"]]],null],[12],[1,\\\"\\\\n            Sign out\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"orgSelectorOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@onClose\\\"],[[28,[37,7],[[28,[37,8],[[30,0,[\\\"orgSelectorOpen\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"h1\\\",\\\"p\\\",\\\"if\\\",\\\"gt\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"entity-selector\\\"]]\",\n    \"moduleName\": \"portal/templates/no-access.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/not-found\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='page__container'>\n    <div\n      class='flex-grow-1 text-center p-5 d-flex flex-column align-items-center'\n    >\n      <FaIcon @icon='dizzy' @size='5x' class='mb-3' />\n      <h1 class='mb-0'>404</h1>\n      <h3>Page not found</h3>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"nSS0ZRzF\",\n    \"block\": \"[[[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1 text-center p-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],[[24,0,\\\"mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"dizzy\\\",\\\"5x\\\"]],null],[1,\\\"\\\\n    \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"404\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Page not found\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/not-found.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/project\", [\"exports\", \"oss-portal-addon/templates/project\"], function (_exports, _project) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _project.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/no-site\", [\"exports\", \"oss-portal-addon/templates/project/no-site\"], function (_exports, _noSite) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _noSite.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/no-site\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site\", [\"exports\", \"oss-portal-addon/templates/project/site\"], function (_exports, _site) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _site.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/dashboard\", [\"exports\", \"oss-portal-addon/templates/project/site/dashboard\"], function (_exports, _dashboard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dashboard.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/dashboard\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/details\", [\"exports\", \"oss-portal-addon/templates/project/site/details\"], function (_exports, _details) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _details.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/details\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/hazards\", [\"exports\", \"oss-portal-addon/templates/project/site/hazards\"], function (_exports, _hazards) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _hazards.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/hazards\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/hazards/board\", [\"exports\", \"oss-portal-addon/templates/project/site/hazards/board\"], function (_exports, _board) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _board.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/hazards/board\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/hazards/selection\", [\"exports\", \"oss-portal-addon/templates/project/site/hazards/selection\"], function (_exports, _selection) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _selection.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/hazards/selection\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/index\", [\"exports\", \"oss-portal-addon/templates/project/site/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _index.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/index\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/ppe\", [\"exports\", \"oss-portal-addon/templates/project/site/ppe\"], function (_exports, _ppe) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _ppe.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/ppe\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/reports/index\", [\"exports\", \"oss-portal-addon/templates/project/site/reports/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _index.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/reports/index\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/reports/report\", [\"exports\", \"oss-portal-addon/templates/project/site/reports/report\"], function (_exports, _report) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _report.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/reports/report\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/setup\", [\"exports\", \"oss-portal-addon/templates/project/site/setup\"], function (_exports, _setup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _setup.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/setup\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/setup/notifiable\", [\"exports\", \"oss-portal-addon/templates/project/site/setup/notifiable\"], function (_exports, _notifiable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _notifiable.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/setup/notifiable\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/setup/summary\", [\"exports\", \"oss-portal-addon/templates/project/site/setup/summary\"], function (_exports, _summary) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _summary.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/setup/summary\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/signin\", [\"exports\", \"oss-portal-addon/templates/project/site/signin\"], function (_exports, _signin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _signin.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/signin\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/reports\", [\"exports\", \"oss-portal-addon/templates/reports\"], function (_exports, _reports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _reports.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/reports\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/reset-password\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='vh-100 bg-dark bg-gradient'>\n    <div class='container h-100 d-flex justify-content-center align-items-center'>\n      <div class='card shadow-lg' style='width: 450px;'>\n        <div class='card-body p-sm-5 text-center'>\n          {{#unless this.tokenExpired}}\n            <h1 class='mb-3'>Reset your password</h1>\n  \n            <form autocomplete='off' {{action 'resetPasswordForm' on='submit'}}>\n              <div class='mb-3'>\n                <Input\n                  id='new-password'\n                  @type='password'\n                  class='form-control form-control-lg'\n                  placeholder='New password'\n                  @value={{this.newPassword}}\n                />\n              </div>\n              <div class='mb-3'>\n                <Input\n                  id='confirm-password'\n                  @type='password'\n                  class='form-control form-control-lg'\n                  placeholder='Confirm password'\n                  @value={{this.confirmPassword}}\n                />\n              </div>\n              <LoadingButton\n                @class='btn btn-primary btn-lg w-100'\n                @isLoading={{this.isResettingPassword}}\n                @action={{action 'resetPasswordForm'}}\n                @buttonText='Reset password'\n              />\n            </form>\n          {{else}}\n            <h1 class='mb-3'>Reset your password</h1>\n            <p class='mb-3'>Your token is invalid or has expired.</p>\n            <button\n              type='button'\n              class='btn btn-primary btn-lg w-100'\n              {{action 'handleRequestPasswordReset'}}\n            >\n              Click here to request a new reset link…\n            </button>\n          {{/unless}}\n        </div>\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"OLs82MBi\",\n    \"block\": \"[[[10,0],[14,0,\\\"vh-100 bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container h-100 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg\\\"],[14,5,\\\"width: 450px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5 text-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"tokenExpired\\\"]]],[[[1,\\\"          \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Reset your password\\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[11,\\\"form\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,4],[[30,0],\\\"resetPasswordForm\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,5],[[24,1,\\\"new-password\\\"],[24,0,\\\"form-control form-control-lg\\\"],[24,\\\"placeholder\\\",\\\"New password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"newPassword\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,5],[[24,1,\\\"confirm-password\\\"],[24,0,\\\"form-control form-control-lg\\\"],[24,\\\"placeholder\\\",\\\"Confirm password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"confirmPassword\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,6],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"btn btn-primary btn-lg w-100\\\",[30,0,[\\\"isResettingPassword\\\"]],[28,[37,4],[[30,0],\\\"resetPasswordForm\\\"],null],\\\"Reset password\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Reset your password\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Your token is invalid or has expired.\\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-lg w-100\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"handleRequestPasswordReset\\\"],null],[12],[1,\\\"\\\\n            Click here to request a new reset link…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"unless\\\",\\\"h1\\\",\\\"form\\\",\\\"action\\\",\\\"input\\\",\\\"loading-button\\\",\\\"p\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"portal/templates/reset-password.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/site\", [\"exports\", \"oss-portal-addon/templates/site\"], function (_exports, _site) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _site.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/site\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/terms-of-service\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='vh-100 bg-dark bg-gradient'>\n    <div class='container h-100 d-flex justify-content-center align-items-center'>\n      <div class='card shadow-lg w-75'>\n        <div class='card-body p-sm-5 text-center'>\n          <form>\n            <h1 class='mb-3'>Terms of service</h1>\n  \n            <div class='overflow-auto mb-3 border p-3' style='height: 50vh'>\n              {{html-safe this.model.terms}}\n            </div>\n  \n            <div class='form-check mb-3 text-left'>\n              <Input\n                class='form-check-input'\n                id='terms'\n                @type='checkbox'\n                @checked={{this.model.user.hasAcceptedTerms}}\n              />\n              <label class='form-check-label' for='terms'>\n                I agree to these terms\n              </label>\n            </div>\n  \n            <LoadingButton\n              @isLoading={{this.isSubmitting}}\n              @action={{action 'continue'}}\n              @class='btn btn-primary btn-lg w-100'\n            >\n              Continue\n            </LoadingButton>\n          </form>\n        </div>\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"DH5du54D\",\n    \"block\": \"[[[10,0],[14,0,\\\"vh-100 bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container h-100 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg w-75\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5 text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Terms of service\\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"overflow-auto mb-3 border p-3\\\"],[14,5,\\\"height: 50vh\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,0,[\\\"model\\\",\\\"terms\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"form-check mb-3 text-left\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],[[24,0,\\\"form-check-input\\\"],[24,1,\\\"terms\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"model\\\",\\\"user\\\",\\\"hasAcceptedTerms\\\"]]]],null],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check-label\\\"],[14,\\\"for\\\",\\\"terms\\\"],[12],[1,\\\"\\\\n              I agree to these terms\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,6],null,[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"isSubmitting\\\"]],[28,[37,7],[[30,0],\\\"continue\\\"],null],\\\"btn btn-primary btn-lg w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            Continue\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"form\\\",\\\"h1\\\",\\\"html-safe\\\",\\\"input\\\",\\\"label\\\",\\\"loading-button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/templates/terms-of-service.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/test-support/helpers\", [\"exports\", \"ember-power-calendar/test-support/helpers\"], function (_exports, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _helpers.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/test-support/helpers\"eaimeta@70e063a35619d71f\n});","define(\"portal/transforms/array\", [\"exports\", \"@ember/array\", \"@ember-data/serializer/transform\"], function (_exports, _array, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n  class _default extends _transform.default {\n    deserialize(serialized) {\n      return (0, _array.isArray)(serialized) ? serialized : [];\n    }\n    serialize(deserialized) {\n      return (0, _array.isArray)(deserialized) ? deserialized : [];\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/transforms/boolean\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.BooleanTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n});","define(\"portal/transforms/date\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.DateTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n});","define(\"portal/transforms/number\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.NumberTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n});","define(\"portal/transforms/string\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.StringTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n});","define(\"portal/transitions\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _default() {\n    this.setDefault({\n      duration: 200,\n      easing: 'ease-out'\n    });\n\n    // From any route to a deeper entity route\n    this.transition(this.fromRoute(() => true), this.toRoute((newRoute, oldRoute) => {\n      const newParts = newRoute.split('.');\n      const oldParts = oldRoute.split('.');\n      if (['index', 'index_loading'].includes((0, _object.get)(newParts, 'lastObject'))) {\n        newParts.pop();\n      }\n      if (['index', 'index_loading'].includes((0, _object.get)(oldParts, 'lastObject'))) {\n        oldParts.pop();\n      }\n      return newParts[0] === 'entity' && oldParts[0] === 'entity' && oldParts.length < newParts.length;\n    }), this.use('toLeft'), this.reverse('toRight'), this.media('(max-width: 992px)'));\n  }\n});","define(\"portal/utils/am5-bp-theme\", [\"exports\", \"@amcharts/amcharts5\"], function (_exports, am5) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@amcharts/amcharts5\"eaimeta@70e063a35619d71f\n  class BpTheme extends am5.Theme {\n    setupDefaultRules() {\n      this.rule('InterfaceColors').setAll({\n        positive: am5.color('#5cb85c'),\n        negative: am5.color('#ff7052')\n      });\n      // variations of these colors will be generated by the library\n      this.rule('ColorSet').set('colors', [\n      // am5.color('#5cb85c'), // green\n      am5.color('#20aaff'),\n      // blue\n      am5.color('#B95F89'),\n      // purple\n      am5.color('#ffbe0b') // yellow\n      ]);\n    }\n  }\n  _exports.default = BpTheme;\n});","define(\"portal/utils/auto-map\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = autoMap;\n  _exports.sanitizeString = sanitizeString;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  /**\n   * Selects one directive from a list that applies to the invoice\n   * @param {Object} invoice - The invoice that is to be mapped\n   * @param {Object[]} directives - The directives to choose from\n   * @returns {Object} directive\n   */\n  function autoMap(invoice, directives = []) {\n    // Return a matching reference directive if one can be found\n    const invoiceReference = (0, _object.get)(invoice, 'reference');\n    const matchingReferenceDirective = invoiceReference && directives.find(d => (0, _object.get)(d, 'kind') === 'reference' && sanitizeString((0, _object.get)(d, 'value')) === sanitizeString(invoiceReference));\n    if (matchingReferenceDirective) return matchingReferenceDirective;\n\n    // Return a matching account directive if one can be found\n    const invoiceAccount = (0, _object.get)(invoice, 'supplierDebtorAccountCode');\n    const matchingAccountDirective = invoiceAccount && directives.find(d => (0, _object.get)(d, 'kind') === 'account' && sanitizeString((0, _object.get)(d, 'value')) === sanitizeString(invoiceAccount));\n    if (matchingAccountDirective) return matchingAccountDirective;\n\n    // Return null since no directive can be found\n    return null;\n  }\n  function sanitizeString(string) {\n    return string\n    // Ignore case\n    .toLowerCase()\n    // Ignore length of white space\n    .replace(/\\s\\s+/g, ' ')\n    // Replace tabs or any other type of white space with a space character\n    .replace(/\\s/g, ' ')\n    // Ignore leading or trailaing white space\n    .trim();\n  }\n});","define(\"portal/utils/balance-calculator\", [\"exports\", \"@ember/object/computed\", \"@ember/object\"], function (_exports, _computed, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.addValue = addValue;\n  _exports.default = calcBalacnes;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function calcBalacnes(accounts, imp, maps, step) {\n    const balances = [];\n    const extBals = (0, _object.get)(imp, 'externalBalances') || [];\n    const manBals = (0, _object.get)(imp, 'manualBalances') || [];\n    accounts.forEach(account => {\n      const manBal = manBals.findBy('account', (0, _object.get)(account, 'id'));\n      const balance = _object.default.extend({\n        account,\n        date: (0, _object.get)(imp, 'date'),\n        value: (0, _object.computed)('manualBalance', 'manualBalance.value', 'maps.[]', 'maps.@each.value', 'maps.@each.inverted', function () {\n          const manual = (0, _object.get)(this, 'manualBalance');\n          if (manual) {\n            return (0, _object.get)(manual, 'value');\n          }\n          let total = null;\n          (0, _object.get)(this, 'maps').forEach(map => {\n            if ((0, _object.get)(map, 'value') != null) {\n              total += (0, _object.get)(map, 'value');\n            }\n          });\n          return total;\n        }),\n        isManual: (0, _computed.notEmpty)('manualBalance'),\n        entity: (0, _object.get)(imp, 'entity'),\n        manualBalance: manBal ? _object.default.create(manBal) : null,\n        maps: []\n      }).create();\n      const mapsForAccount = maps.filterBy('account.id', (0, _object.get)(account, 'id')).filterBy('system', (0, _object.get)(imp, 'system'));\n      mapsForAccount.forEach(map => {\n        const extBal = extBals.findBy('externalId', (0, _object.get)(map, 'externalId'));\n        if (!(0, _object.get)(map, 'sourceBalance')) {\n          addValue(map, extBal, step);\n        } else {\n          (0, _object.set)(map, 'sourceBalance', extBal);\n        }\n        (0, _object.get)(balance, 'maps').pushObject(map);\n      });\n      balances.pushObject(balance);\n    });\n    return balances;\n  }\n  function addValue(map, balance, step) {\n    (0, _object.set)(map, 'step', step);\n    (0, _object.set)(map, 'sourceBalance', balance);\n  }\n});","define(\"portal/utils/bill-parsers/bunnings\", [\"exports\", \"moment\", \"portal/utils/parse-currency-string\"], function (_exports, _moment, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = bunningsInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function bunningsInvoiceParser(source) {\n    const types = {\n      10: 'head',\n      20: 'item',\n      30: 'total'\n    };\n    try {\n      const invoices = source.reduce((bills, line, index) => {\n        const [type] = line;\n        const lastBill = bills[0];\n        switch (types[type]) {\n          case 'head':\n            bills.unshift(extractHead(line, index + 1));\n            break;\n          case 'item':\n            if (lastBill) {\n              lastBill.items.push(extractItem(line, index + 1));\n              break;\n            } else {\n              throw new Error('Invalid file, invoice item found before invoice. Invoice row (10) must precede item row (20).');\n            }\n          case 'total':\n            checkTotal(lastBill, line, index + 1);\n            break;\n          default:\n            throw new Error(`Unknown row type${type ? ' \"' + type + '\" ' : ' '}on bill ${bills.length}, row ${index + 1}, column 1. Expected 10, 20, or 30.` // eslint-disable-line max-len\n            );\n        }\n        return bills;\n      }, []);\n      return {\n        invoices: invoices.reverse(),\n        errors: []\n      };\n    } catch (error) {\n      return {\n        invoices: [],\n        errors: [error.message]\n      };\n    }\n  }\n  function extractHead(line, rowIndex) {\n    const [type,\n    // eslint-disable-line no-unused-vars\n    customerNumber,\n    // eslint-disable-line no-unused-vars\n    issuedTo,\n    // eslint-disable-line no-unused-vars\n    issueDate, invoiceNumber, orderNumber, jobNumber, specialInstructions] = line;\n    const reference = [orderNumber, jobNumber, specialInstructions].filter(i => i).join(' - ');\n    if (!invoiceNumber) throw new Error(`Expected \"Invoice Number\" at row ${rowIndex}, column 5.`);\n    if (!issueDate) throw new Error(`Expected \"Issue Date\" at row ${rowIndex}, column 4.`);\n    const parsedIssueDate = (0, _moment.default)(issueDate, 'DD/MM/YYYY');\n    if (!parsedIssueDate.isValid()) throw new Error(`Expected issue date in \"DD/MM/YYYY\" format. Instead got ${issueDate}.`);\n    return {\n      reference,\n      billNumber: invoiceNumber,\n      issuer: 'Bunnings',\n      issueDate: parsedIssueDate.toDate(),\n      dueDate: parsedIssueDate.add(1, 'month').set('date', 20).toDate(),\n      items: [],\n      source: 'web:bunnings'\n    };\n  }\n  function extractItem(line, rowIndex) {\n    const [type,\n    // eslint-disable-line no-unused-vars\n    sku, description, unit,\n    // eslint-disable-line no-unused-vars\n    quantity, price,\n    // eslint-disable-line no-unused-vars\n    discount,\n    // eslint-disable-line no-unused-vars\n    net, total // eslint-disable-line no-unused-vars\n    ] = line;\n    if (!description) throw new Error(`Expected \"Description\" at row ${rowIndex}, column 3.`);\n    if (!sku) throw new Error(`Expected \"SKU\" at row ${rowIndex}, column 2.`);\n    if (!quantity) throw new Error(`Expected \"Quantity\" at row ${rowIndex}, column 5.`);\n    if (!net) throw new Error(`Expected \"Net\" at row ${rowIndex}, column 8.`);\n    return {\n      description,\n      productCode: sku,\n      quantity: Number(quantity),\n      unitPrice: (0, _parseCurrencyString.default)(net)\n    };\n  }\n  function checkTotal(invoice, line, rowIndex) {\n    const [type,\n    // eslint-disable-line no-unused-vars\n    _subTotal, gst,\n    // eslint-disable-line no-unused-vars\n    total // eslint-disable-line no-unused-vars\n    ] = line;\n    const subTotal = Number((0, _parseCurrencyString.default)(_subTotal));\n    const itemsTotal = invoice.items.reduce((total, item) => total + item.quantity * item.unitPrice, 0);\n    if (Math.abs(itemsTotal - subTotal) > 0.1) {\n      throw new Error(`Expected \"Sub Total\" on row ${rowIndex}, column 2 to equal the sum of the items (${itemsTotal.toFixed(2)}). Instead got ${subTotal.toFixed(2)}.` // eslint-disable-line max-len\n      );\n    }\n  }\n});","define(\"portal/utils/bill-parsers/carters-type-1\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = cartersInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['Document Date', 'Document Number', 'Type', 'Your Ref.', 'Contract Number', 'Address', 'Status', 'Total Value', 'Outstanding Value', 'Due Date'];\n\n  // An example invoice\n  // Document Date, Document Number, Type, Your Ref., Contract Number, Address, Status     , Total Value, Outstanding Value, Due Date\n  // 26/03/2018   , TG0744244      , IN  , FREIDLEIB, TG1254349E1    , Taken  , Outstanding, 285.41     , 285.41           , 31/03/2018\n\n  /**\n   * Turns the data from a carters invoice file into the portal domain invoice format.\n   * @param {Array} source - 2D array representing the source csv file.\n   * @returns {Object} - An object with an `invoices` member who's value is an array with one invoice in it.\n   */\n  function cartersInvoiceParser(source) {\n    const newInvoice = {\n      reference: source[1][3],\n      billNumber: source[1][1],\n      issuer: 'Carters',\n      issueDate: (0, _moment.default)(source[1][0], 'DD/MM/YYYY').toDate(),\n      dueDate: (0, _moment.default)(source[1][9], 'DD/MM/YYYY').toDate(),\n      items: [{\n        description: `Total (invoice number ${source[1][1]})`,\n        quantity: 1,\n        unitPrice: extractNumber(source[1][7] / 1.15) // Total in file is including GST\n      }],\n      source: 'web:carters-type-1'\n    };\n    return {\n      invoices: [newInvoice]\n    };\n  }\n\n  /**\n   * Checks that the number is valid and rounds to 2DP\n   * @param {String} input - A string that is a plain number\n   * @returns {Number} - The string turned into a number with 2DP accuracy\n   */\n  function extractNumber(input) {\n    return isNaN(input) ? 0 : Math.floor(Number(input) * 100) / 100;\n  }\n});","define(\"portal/utils/bill-parsers/carters-type-2\", [\"exports\", \"portal/utils/find-date\", \"portal/utils/extract-number\"], function (_exports, _findDate, _extractNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = cartersInvoiceParser2;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/find-date\",0,\"portal/utils/extract-number\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['ContactName', 'InvoiceNumber', 'InvoiceDate', 'DueDate', 'Description', 'Quantity', 'UnitAmount'];\n\n  // An example invoice\n  // Document Date, Document Number, Type, Your Ref., Contract Number, Address, Status     , Total Value, Outstanding Value, Due Date\n  // 26/03/2018   , TG0744244      , IN  , FREIDLEIB, TG1254349E1    , Taken  , Outstanding, 285.41     , 285.41           , 31/03/2018\n\n  /**\n   * Turns the data from a carters invoice file into the portal domain invoice format.\n   * @param {Array} source - 2D array representing the source csv file.\n   * @returns {Object} - An object with an `invoices` member who's value is an array with one invoice in it.\n   */\n  function cartersInvoiceParser2(source) {\n    const invoicesMap = {};\n\n    // Get the column indices for each header in the first line.\n    const indices = source[0].reduce((allKeys, header, index) => Object.assign(allKeys, {\n      [header]: index\n    }), {});\n\n    // Iterate over the lines of the file, skip the first line as it has headers in it.\n    for (const line of source.slice(1)) {\n      const billNumber = line[indices['InvoiceNumber']];\n      let invoice = invoicesMap[billNumber];\n      if (!invoice) {\n        // If it is the first line for a new invoice, it should contain a description (the reference) and not a quantity or unit price.\n        if (line[indices['Quantity']] || line[indices['UnitAmount']]) {\n          return {\n            errors: 'Could not find reference line for bill: ' + billNumber\n          };\n        }\n        invoice = {\n          billNumber,\n          reference: line[indices['Description']],\n          // The reference is stored in the description of the first item.\n          issuer: line[indices['ContactName']],\n          issueDate: (0, _findDate.default)(line[indices['InvoiceDate']], 'DD/MM/YYYY'),\n          dueDate: (0, _findDate.default)(line[indices['DueDate']], 'DD/MM/YYYY'),\n          items: [],\n          source: 'web:carters-type-2'\n        };\n        invoicesMap[billNumber] = invoice;\n      } else {\n        // If it is not the first line for a new invoice, it should contain a valid item with a quantity and unit price.\n        if (line[indices['Quantity']] == null || line[indices['UnitAmount']] == null || !line[indices['Description']]) {\n          return {\n            errors: 'Invalid item line: ' + line\n          };\n        }\n        invoice.items.push({\n          description: line[indices['Description']],\n          quantity: line[indices['Quantity']],\n          unitPrice: (0, _extractNumber.default)(line[indices['UnitAmount']])\n        });\n      }\n    }\n    const invoicesArray = Object.keys(invoicesMap).map(key => invoicesMap[key]);\n    return {\n      invoices: invoicesArray\n    };\n  }\n});","define(\"portal/utils/bill-parsers/carters-type-3\", [\"exports\", \"portal/utils/find-date\", \"portal/utils/extract-number\"], function (_exports, _findDate, _extractNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = cartersInvoiceParser3;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/find-date\",0,\"portal/utils/extract-number\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['Account Number', 'Invoice Number', 'Credit Address', 'Delivery Address', 'Document Type', 'Document Date', 'Branch', 'Customer Number', 'Customer Order Number', 'Contract Number', 'Delivery Date', 'Tax', 'Total Nett', 'Total Gross'];\n  const indices = REQUIRED_HEADERS.reduce((allKeys, header, index) => Object.assign(allKeys, {\n    [header]: index\n  }), {});\n  function cartersInvoiceParser3(source) {\n    const invoices = [];\n    // Dump the header row\n    // Each line is a separate invoice\n    for (const [index, invoice] of source.slice(1).entries()) {\n      const billNumber = invoice[indices['Invoice Number']];\n      const totalNet = invoice[indices['Total Nett']]; // Yes, this is misspelled in the format.\n      const documentDate = invoice[indices['Document Date']];\n      const customerOrderNumber = invoice[indices['Customer Order Number']];\n      const deliveryDate = invoice[indices['Delivery Date']];\n      // const accountNumber       = invoice[indices['Account Number']];\n      // const creditAddress       = invoice[indices['Credit Address']];\n      // const deliveryAddress     = invoice[indices['Delivery Address']];\n      // const documentType        = invoice[indices['Document Type']];\n      // const branch              = invoice[indices['Branch']];\n      // const customerNumber      = invoice[indices['Customer Number']];\n      // const contractNumber      = invoice[indices['Contract Number']];\n      // const totalGross          = invoice[indices['Total Gross']];\n      // const tax                 = invoice[indices['Tax']];\n\n      if (!billNumber) return {\n        errors: [`Invoice number not provided on line ${index + 2}`]\n      };\n      if (!totalNet) return {\n        errors: [`Total nett not provided on line ${index + 2}`]\n      };\n      invoices.push({\n        billNumber,\n        reference: customerOrderNumber,\n        issuer: 'Carters',\n        issueDate: (0, _findDate.default)(documentDate, 'DD/MM/YYYY'),\n        dueDate: (0, _findDate.default)(deliveryDate, 'DD/MM/YYYY'),\n        items: [{\n          description: `Total (invoice number ${billNumber})`,\n          quantity: 1,\n          unitPrice: (0, _extractNumber.default)(totalNet)\n        }],\n        source: 'web:carters-type-3'\n      });\n    }\n    return {\n      invoices\n    };\n  }\n});","define(\"portal/utils/bill-parsers/carters-type-4\", [\"exports\", \"portal/utils/find-date\", \"portal/utils/extract-number\"], function (_exports, _findDate, _extractNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = cartersInvoiceParser4;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/find-date\",0,\"portal/utils/extract-number\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['Account Number', 'Invoice Number', 'Customer Number', 'Customer Order Number', 'Contract Number', 'Delivery Date', 'Product Code', 'Product Description', 'Quantity Delivered', 'Sales Unit', 'Unit Price excluding GST', 'Discount %', 'Nett Value', 'Extended Line Value'];\n  const indices = REQUIRED_HEADERS.reduce((allKeys, header, index) => Object.assign(allKeys, {\n    [header]: index\n  }), {});\n  function cartersInvoiceParser4(source) {\n    const invoices = {};\n    // Dump the header row\n    // Each line is a invoice line\n    for (const [_index, invoice] of source.slice(1).entries()) {\n      // eslint-disable-line no-unused-vars\n      // deal with the invoice\n      const billNumber = invoice[indices['Invoice Number']];\n      const customerOrderNumber = invoice[indices['Customer Order Number']];\n      const deliveryDate = invoice[indices['Delivery Date']];\n      if (!billNumber) continue;\n      if (!invoices[billNumber]) {\n        invoices[billNumber] = {\n          billNumber,\n          reference: customerOrderNumber,\n          issuer: 'Carters',\n          // issueDate: findDate(documentDate, 'DD/MM/YYYY'), missing from format...\n          issueDate: (0, _findDate.default)(deliveryDate, 'DD/MM/YYYY'),\n          source: 'web:carters-type-4',\n          items: []\n        };\n      }\n\n      // deal with the item\n      const productCode = invoice[indices['Product Code']];\n      const productDescription = invoice[indices['Product Description']];\n      const quantityDelivered = invoice[indices['Quantity Delivered']];\n      const unitPriceExcludingGST = invoice[indices['Unit Price excluding GST']];\n      invoices[billNumber].items.push({\n        description: productDescription,\n        productCode: productCode,\n        quantity: (0, _extractNumber.default)(quantityDelivered),\n        unitPrice: (0, _extractNumber.default)(unitPriceExcludingGST)\n      });\n    }\n    return {\n      invoices: Object.values(invoices)\n    };\n  }\n});","define(\"portal/utils/bill-parsers/carters\", [\"exports\", \"portal/utils/bill-parsers/carters-type-1\", \"portal/utils/bill-parsers/carters-type-2\", \"portal/utils/bill-parsers/carters-type-3\", \"portal/utils/bill-parsers/carters-type-4\"], function (_exports, _cartersType, _cartersType2, _cartersType3, _cartersType4) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = cartersInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/bill-parsers/carters-type-1\",0,\"portal/utils/bill-parsers/carters-type-2\",0,\"portal/utils/bill-parsers/carters-type-3\",0,\"portal/utils/bill-parsers/carters-type-4\"eaimeta@70e063a35619d71f\n  // An example invoice\n  // Document Date, Document Number, Type, Your Ref., Contract Number, Address, Status     , Total Value, Outstanding Value, Due Date\n  // 26/03/2018   , TG0744244      , IN  , FREIDLEIB, TG1254349E1    , Taken  , Outstanding, 285.41     , 285.41           , 31/03/2018\n\n  /**\n   * Turns the data from a carters invoice file into the portal domain invoice format.\n   * @param {Array} source - 2D array representing the source csv file.\n   * @returns {Object} - An object with an `invoices` member who's value is an array with one invoice in it.\n   */\n  function cartersInvoiceParser(source) {\n    const isType1 = _cartersType.REQUIRED_HEADERS.every(header => source[0].includes(header));\n    const isType2 = _cartersType2.REQUIRED_HEADERS.every(header => source[0].includes(header));\n    const isType3 = _cartersType3.REQUIRED_HEADERS.every(header => source[0].includes(header));\n    const isType4 = _cartersType4.REQUIRED_HEADERS.every(header => source[0].includes(header));\n    if (isType1) return (0, _cartersType.default)(source);else if (isType2) return (0, _cartersType2.default)(source);else if (isType3) return (0, _cartersType3.default)(source);else if (isType4) return (0, _cartersType4.default)(source);else return {\n      errors: ['Unrecognized format']\n    };\n  }\n});","define(\"portal/utils/bill-parsers/csv\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = csvParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  function csvParser(report) {\n    const invoices = [];\n    let index = 0;\n    do {\n      const {\n        errors,\n        invoice,\n        items,\n        i\n      } = parseInvoice(report, index);\n      if (errors.length) {\n        return {\n          errors\n        };\n      }\n      index = i;\n      invoice.items = items;\n      invoices.push(invoice);\n    } while (index);\n    return {\n      invoices\n    };\n  }\n  function parseInvoice(report, i = 0) {\n    const errors = [];\n    const items = [];\n    const invoice = {\n      source: 'web:generic-csv'\n    };\n\n    // Skip empty rows at top\n    while (i < report.length) {\n      if (rowIsEmpty(report[i])) {\n        i++;\n      } else {\n        break;\n      }\n    }\n\n    // Extract meta\n    if (report[i][0].trim() !== 'Invoice Number') {\n      errors.push(`Invalid file, expected 'Invoice Number' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.number = report[i][1];\n    i++;\n    if (report[i][0].trim() !== 'Invoice Name') {\n      errors.push(`Invalid file, expected 'Invoice Name' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.name = report[i][1];\n    i++;\n    if (report[i][0].trim() !== 'Issuer') {\n      errors.push(`Invalid file, expected 'Issuer' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.issuer = report[i][1];\n    i++;\n    if (report[i][0].trim() !== 'Issue Date') {\n      errors.push(`Invalid file, expected 'Issue Date' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.issueDate = (0, _moment.default)(report[i][1], 'DD-MM-YYYY').toDate();\n    i++;\n    if (report[i][0].trim() !== 'Due Date') {\n      errors.push(`Invalid file, expected 'Due Date' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.dueDate = (0, _moment.default)(report[i][1], 'DD-MM-YYYY').toDate();\n    i++;\n\n    // Check header row\n    if (!report[i] === ['Item Code', 'Item Name', 'Item Quantity', 'Item Unit Price']) {\n      errors.push(`Expected the headers 'Item Code, Item Name, Item Quantity, Item Unit Price' at row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    i++;\n    while (i < report.length) {\n      if (report[i][0] === 'Invoice Number' || rowIsEmpty(report[i])) {\n        return {\n          errors,\n          invoice,\n          items,\n          i\n        };\n      }\n      const newItem = {\n        productCode: report[i][0],\n        name: report[i][1],\n        quantity: Number(report[i][2]),\n        unitPrice: Number(report[i][3])\n      };\n      if (isNaN(newItem.quantity) || newItem.quantity == null) {\n        errors.push(`Item Quantity on row ${i + 1} could not be parsed`);\n        return {\n          errors\n        };\n      }\n      if (isNaN(newItem.unitPrice) || newItem.unitPrice == null) {\n        errors.push(`Item Unit Price on row ${i + 1} could not be parsed`);\n        return {\n          errors\n        };\n      }\n      items.push(newItem);\n      i++;\n    }\n    return {\n      errors,\n      invoice,\n      items\n    };\n  }\n  function rowIsEmpty(row) {\n    for (var i = 0; i < row.length; i++) {\n      if (row[i]) return false;\n    }\n    return true;\n  }\n});","define(\"portal/utils/bill-parsers/itm\", [\"exports\", \"lodash\"], function (_exports, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = itmInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"lodash\"eaimeta@70e063a35619d71f\n  const FOOTER_ROW_NAMES = ['Subtotal', 'GST', 'Total'];\n  const COLUMN_NAMES = ['Item Code', 'Description', 'Qty Ordered', 'Qty Backordred', 'Qty Supplied', 'Unit Price', 'Extended'];\n  function itmInvoiceParser(report) {\n    const items = [];\n    let invoice = {\n      source: 'web:itm'\n    };\n    const errors = [];\n    if (!report.length) {\n      errors.push('This file appears to be empty');\n      return {\n        items,\n        invoice,\n        errors\n      };\n    }\n    invoice = {\n      reference: report[0][0],\n      // issueDate: couldnt find this on the csv\n      total: report[report.length - 1][6]\n    };\n    if (!report[0] || !report[0].length) {\n      errors.push('Wrong format, no quote title found in cell 1,1');\n    }\n    if (!report[1] || !report[1].length) {\n      errors.push('Wrong format, no headers found on line 2');\n    }\n    const headerRow = report[1].map(cell => cell.trim());\n\n    // Check that all the headers are in the right place\n    if (!_lodash.default.isEqual(headerRow, COLUMN_NAMES)) {\n      errors.push('Wrong format, missing or incorrect coloum descriptions on line 2');\n    }\n\n    // Extract main body of report\n    // Native filter rather than Ember's reject: this module is reached without\n    // the application having booted, and the array prototype extensions are not\n    // installed until it has.\n    const trimmedReport = report.slice(2).filter(row => {\n      const hasFooterLabel = FOOTER_ROW_NAMES.includes(row[0]);\n      const hasNoContent = row.slice(1, 5).filter(cell => cell !== '').length === 0;\n      return !(hasFooterLabel && hasNoContent);\n    });\n    trimmedReport.forEach((row, i) => {\n      const thisRowsQuantity = parseInt(row[6], 10);\n\n      // Skip rows that do not have a quantity as they are likely to be NOTE rows\n      if (!thisRowsQuantity) return;\n      if (!row[0].trim()) {\n        errors.push(`Cell 1, line ${i + 3} must not be empty`);\n      }\n      if (!row[1].trim()) {\n        errors.push(`Cell 2, line ${i + 3} must not be empty`);\n      }\n      for (let index = 2; index < 6; index++) {\n        if (isNaN(row[index])) {\n          errors.push(`Cell ` + index + `, line ${i + 3} must be a number`);\n        }\n      }\n      const item = {\n        productCode: row[0],\n        description: row[1],\n        quantity: row[2],\n        unitPrice: row[5]\n      };\n      items.push(item);\n    });\n    return {\n      items,\n      invoice,\n      errors\n    };\n  }\n});","define(\"portal/utils/bill-parsers/mitre\", [\"exports\", \"moment\", \"lodash\", \"portal/utils/parse-currency-string\"], function (_exports, _moment, _lodash, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = mitreInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"lodash\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  const ITEM_HEADERS_OLD = ['Invoice number', 'Date', 'Type', 'Order reference', 'SKU', 'Product title', 'Quantity', 'Unit Rate', 'Sub total'];\n  const ITEM_HEADERS = ['Invoice Reference', 'Document Type', 'Created Date', 'Due Date', 'Order Number', 'Store Code', 'Store Name', 'Job', 'Docket Number', 'Customer Reference', 'SKU', 'Product Title', 'UOM', 'Quantity', 'Unit Rate', 'Sub Total', 'GST', 'Total'];\n\n  /**\n   * Checks that the number is valid, if so returns the number or zero\n   * @param {String} input - A string that is a plain number\n   * @returns {Number} - The string turned into a number or zero\n   */\n  const extractNumber = input => {\n    const parsedNumber = (0, _parseCurrencyString.default)(input);\n    return isNaN(parsedNumber) ? 0 : Number(parsedNumber);\n  };\n  /**\n   * Creates invoice item from csv line\n   * @param {Array} line - an array following Mitre 10 specification for invoice\n   * @returns {Object} - An object with fields required for an invoice item\n   */\n  const createItemFromOldFormat = line => {\n    const quantity = extractNumber(line[6]);\n    const subtotal = extractNumber(line[8]);\n    const unitPrice = subtotal / (quantity || Infinity);\n    return {\n      description: line[5],\n      productCode: line[4],\n      quantity,\n      unitPrice\n    };\n  };\n\n  /**\n   * Creates invoice from csv line\n   * @param {Array} line - an array following Mitre 10 specification for invoice\n   * @returns {Object} - An object with fields required for an invoice\n   */\n  const createInvoiceFromOldFormat = line => {\n    const yearLength = line[1].split('/')[2].length;\n    if (yearLength !== 2 && yearLength !== 4) {\n      throw new Error('Your invoice has an invalid date format. The format must either be DD/MM/YY or DD/MM/YYYY.');\n    }\n    const dateFormat = 'DD/MM/' + 'Y'.repeat(yearLength);\n    return {\n      reference: line[3],\n      billNumber: line[0],\n      issuer: 'Mitre 10',\n      issueDate: new Date(),\n      dueDate: (0, _moment.default)(line[1], dateFormat).toDate(),\n      items: [],\n      source: 'web:mitre'\n    };\n  };\n\n  /**\n   * Creates invoice item from csv line\n   * @param {Array} line - an array following Mitre 10 specification for invoice\n   * @returns {Object} - An object with fields required for an invoice item\n   */\n  const createItem = line => {\n    const quantity = extractNumber(line[13]);\n    const unitPrice = extractNumber(line[14]);\n    return {\n      description: line[11],\n      productCode: line[10],\n      quantity,\n      unitPrice\n    };\n  };\n\n  /**\n   * Creates invoice from csv line\n   * @param {Array} line - an array following Mitre 10 specification for invoice\n   * @returns {Object} - An object with fields required for an invoice\n   */\n  const createInvoice = line => {\n    const createdDateStr = line[2];\n    const dueDateStr = line[3];\n    return {\n      billNumber: line[0],\n      reference: line[9],\n      issuer: 'Mitre 10',\n      issueDate: createdDateStr ? (0, _moment.default)(createdDateStr, 'DD/MM/YYYY').toDate() : new Date(),\n      dueDate: (0, _moment.default)(dueDateStr, 'DD/MM/YYYY').toDate(),\n      items: [],\n      source: 'web:mitre'\n    };\n  };\n  function mitreInvoiceParser(source) {\n    try {\n      const headerLine = source[0] || [];\n      const newFormatHeaderColumns = ['Store Code', 'Document Type', 'Invoice Reference', 'Docket Number'];\n      const isNewFormat = headerLine.length === ITEM_HEADERS.length || headerLine.some(column => newFormatHeaderColumns.includes(column));\n      const HEADERS = isNewFormat ? ITEM_HEADERS : ITEM_HEADERS_OLD;\n      const linesWithErrors = [];\n      source.forEach((line, i) => {\n        if (line.length !== HEADERS.length) {\n          linesWithErrors.push(i + 1);\n        }\n      });\n      if (linesWithErrors.length) {\n        return {\n          errors: [`Incorrect format, expected line/s ${linesWithErrors} to have the following information: ${HEADERS.join(',')}`]\n        };\n      }\n\n      /*\n          The first interesting line is after the header\n          so we delete it if found.\n      */\n      const hasHeaderRow = _lodash.default.isEqual(source[0], HEADERS);\n      if (hasHeaderRow) source.shift();\n      const invoices = [];\n      source.forEach((row, i) => {\n        try {\n          const matchInvoice = invoice => invoice.billNumber === row[0];\n\n          // Find or create the invoice that the row belongs to\n          const invoiceExists = invoices.some(matchInvoice);\n          let invoice = invoices.find(matchInvoice);\n          if (!invoiceExists) {\n            invoice = isNewFormat ? createInvoice(row) : createInvoiceFromOldFormat(row);\n            invoices.push(invoice);\n          }\n          const item = isNewFormat ? createItem(row) : createItemFromOldFormat(row);\n          // Create an item and add it to the invoice\n          invoice.items.push(item);\n        } catch (error) {\n          throw new Error(`Error on line ${i + 1}: ${error.message}`);\n        }\n      });\n      return {\n        invoices\n      };\n    } catch (error) {\n      return {\n        errors: [error.message]\n      };\n    }\n  }\n});","define(\"portal/utils/bill-parsers/placemakers\", [\"exports\", \"moment\", \"portal/utils/bill-parsers/xero\"], function (_exports, _moment, _xero) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = placemakersInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"portal/utils/bill-parsers/xero\"eaimeta@70e063a35619d71f\n  const INVOICE_HEADERS = ['H',\n  // 0\n  'Branch',\n  // 1\n  'Branch Name',\n  // 2\n  'Parent Account',\n  // 3\n  'Account Code',\n  // 4\n  'Customer Name',\n  // 5\n  'Date',\n  // 6\n  'Customer Order Number',\n  // 7\n  'Transaction number',\n  // 8\n  'Transaction type (IN/CR)',\n  // 9\n  'Packing Slip Number',\n  // 10\n  'Freight Amount(excl GST)',\n  // 11\n  'Total including GST',\n  // 12\n  'GST Total' // 13\n  ];\n  const ITEM_HEADERS = ['D',\n  // 0\n  'Line number',\n  // 1\n  'Product Code (Suppliers)',\n  // 2\n  'Description',\n  // 3\n  'Qty Supplied',\n  // 4\n  'Unit',\n  // 5\n  'Unit Rate',\n  // 6\n  'Extended Line Total (excluding GST)',\n  // 7\n  'GST Rate %',\n  // 8\n  'GST Amount' // 9\n  ];\n  function placemakersInvoiceParser(source) {\n    let parser;\n    // Check we are dealing with the original expected format.\n    if (INVOICE_HEADERS.every((h, i) => h === source[0][i])) {\n      if (ITEM_HEADERS.some((h, i) => h !== source[1][i])) {\n        return {\n          errors: [`Incorrect headers, expected line 2 to be ${ITEM_HEADERS.join(',')}`]\n        };\n      }\n      parser = placemakersParser;\n\n      // We could also be dealing with a Xero Style format.\n    } else if (_xero.REQUIRED_HEADERS.every(h => source[0].includes(h))) {\n      parser = _xero.default;\n\n      // Throw an error if we cannot match a format.\n    } else {\n      return {\n        errors: [`Incorrect headers, expected line 1 to be ${INVOICE_HEADERS.join(',')}`]\n      };\n    }\n    const parsedInvoices = parser(source);\n\n    // if the parser was xero search the invoice items for a reference line\n    if (parser === _xero.default) parsedInvoices.invoices = parsePlacemakersXeroInvoiceItemsForReference(parsedInvoices.invoices);\n    return parsedInvoices;\n  }\n  function parsePlacemakersXeroInvoiceItemsForReference(invoices) {\n    return invoices.map(invoice => {\n      // if the invoice already has a reference, don't bother checking the items\n      if (invoice.reference) return invoice;\n      const referenceLineIndex = invoice.items.findIndex(item => item.description?.toLowerCase().includes('reference:'));\n      // if a reference line is found proceed in pulling the reference from it and setting it to the invoice\n      if (referenceLineIndex >= 0) {\n        const [referenceLine] = invoice.items.splice(referenceLineIndex, 1);\n        const reference = referenceLine.description.split(':').slice(1).join(':').trim();\n        invoice.reference = reference;\n      }\n      return invoice;\n    });\n  }\n  function placemakersParser(source) {\n    // The first interesting line is 2 so start the counter 1 earlier than that.\n    let lineNumber = 1;\n    let lineKey = source[lineNumber][0];\n    function updateLine() {\n      lineNumber++;\n      lineKey = source[lineNumber][0];\n    }\n    const newInvoices = [];\n    while (lineNumber < source.length - 1) {\n      // Update line number first so that when the while condition hits the last line,\n      // it can stop and the last line has already been read. Prevents array out of bounds.\n      updateLine();\n      if (lineKey === 'H') {\n        // Create new invoice and add to new invoices.\n        newInvoices.push(createInvoiceFromHeaderLine(source[lineNumber], lineNumber));\n      }\n      if (lineKey === 'D') {\n        // Create new item and add to last invoice.\n        newInvoices[newInvoices.length - 1].items.push(createItemFromLine(source[lineNumber], lineNumber));\n      }\n    }\n    return {\n      invoices: newInvoices\n    };\n  }\n  function extractNumber(input) {\n    return isNaN(input) ? 0 : Number(input);\n  }\n  function createItemFromLine(line) {\n    return {\n      description: line[3],\n      productCode: line[2],\n      quantity: extractNumber(line[4]),\n      unitPrice: extractNumber(line[6])\n    };\n  }\n  function createInvoiceFromHeaderLine(line) {\n    const yearLength = line[6].split('/')[2].length;\n    if (yearLength !== 2 && yearLength !== 4) {\n      throw new Error('Your invoice has an invalid date format. The format must either be DD/MM/YY or DD/MM/YYYY.');\n    }\n    const dateFormat = 'DD/MM/' + 'Y'.repeat(yearLength);\n    return {\n      reference: line[7],\n      billNumber: line[8],\n      issuer: `PlaceMakers ${line[2]}`,\n      issueDate: (0, _moment.default)(line[6], dateFormat).toDate(),\n      dueDate: (0, _moment.default)(line[14], dateFormat).toDate(),\n      items: [],\n      source: 'web:placemakers'\n    };\n  }\n});","define(\"portal/utils/bill-parsers/xero\", [\"exports\", \"portal/utils/find-date\"], function (_exports, _findDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = xeroInvoiceParser;\n  _exports.getUnitPriceWithDiscount = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/find-date\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['ContactName', 'InvoiceNumber', 'InvoiceDate', 'DueDate', 'Description', 'Quantity', 'UnitAmount'];\n  function xeroInvoiceParser(source) {\n    // Check we are dealing with the expected format.\n    const missingHeader = REQUIRED_HEADERS.find(h => !source[0].includes(h));\n    if (missingHeader) return {\n      errors: [`Incorrect headers, expected line 1 to contain '${missingHeader}'`]\n    };\n    const columnKeys = source[0].reduce((indices, h, index) => Object.assign({}, indices, {\n      [h]: index\n    }), {});\n\n    // The first interesting line is 2 so start the counter 1 earlier than that.\n    let lineNumber = 0;\n    let lineKey = source[lineNumber][columnKeys.InvoiceNumber];\n    function updateLine() {\n      lineNumber++;\n      lineKey = createIdentifier(source[lineNumber][columnKeys.InvoiceNumber], source[lineNumber][columnKeys.ContactName]);\n    }\n    function matchInvoice(invoice) {\n      return createIdentifier(invoice.billNumber, invoice.issuer) === lineKey;\n    }\n    function createIdentifier(billNumber, issuer) {\n      return billNumber + ':::' + issuer;\n    }\n    const newInvoices = [];\n    while (lineNumber < source.length - 1) {\n      // Update line number first so that when the while condition hits the last line,\n      // it can stop and the last line has already been read. Prevents array out of bounds.\n      updateLine();\n      const lineInvoice = newInvoices.find(matchInvoice);\n      if (lineInvoice) {\n        // Create new invoice and add to new invoices.\n        lineInvoice.items.push(createItemFromLine(source[lineNumber], columnKeys));\n      } else {\n        newInvoices.push(createInvoiceFromHeaderLine(source[lineNumber], columnKeys));\n        newInvoices.find(matchInvoice).items.push(createItemFromLine(source[lineNumber], columnKeys));\n      }\n    }\n    return {\n      invoices: newInvoices\n    };\n  }\n  function extractNumber(input) {\n    return isNaN(input) ? 0 : Number(input);\n  }\n  const getUnitPriceWithDiscount = (unitPrice, discount) => (100 - discount) / 100 * unitPrice;\n  _exports.getUnitPriceWithDiscount = getUnitPriceWithDiscount;\n  function createItemFromLine(line, columnKeys) {\n    const unitPrice = extractNumber(line[columnKeys.UnitAmount]);\n    const discount = extractNumber(line[columnKeys.Discount]);\n    const unitPriceWithDiscount = getUnitPriceWithDiscount(unitPrice, discount);\n    return {\n      description: line[columnKeys.Description],\n      productCode: line[columnKeys.InventoryItemCode] || null,\n      quantity: extractNumber(line[columnKeys.Quantity]),\n      unitPrice: unitPriceWithDiscount\n    };\n  }\n  function createInvoiceFromHeaderLine(line, columnKeys) {\n    return {\n      reference: line[columnKeys.Reference],\n      billNumber: line[columnKeys.InvoiceNumber],\n      issuer: line[columnKeys.ContactName],\n      issueDate: (0, _findDate.default)(line[columnKeys.InvoiceDate], 'DD/MM/YYYY'),\n      dueDate: (0, _findDate.default)(line[columnKeys.DueDate], 'DD/MM/YYYY'),\n      items: [],\n      source: 'web:xero'\n    };\n  }\n});","define(\"portal/utils/bunnings-bill-csv-normalizer\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.NORMALIZED_BUNNINGS_HEADERS = void 0;\n  _exports.default = normalizeBunningsBillCsv;\n  _exports.isBunningsBillCsv = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  const NORMALIZED_BUNNINGS_HEADERS = _exports.NORMALIZED_BUNNINGS_HEADERS = ['Invoice Number', 'Issue Date', 'Due Date', 'Customer Reference', 'Code', 'Description', 'Unit Price', 'Quantity'];\n  const isBunningsBillCsv = (csv = []) => {\n    const rowTypes = csv.map(row => String(row[0]));\n    return rowTypes[0] === '10' && rowTypes.includes('20') && rowTypes.includes('30');\n  };\n  _exports.isBunningsBillCsv = isBunningsBillCsv;\n  function normalizeBunningsBillCsv(csv = []) {\n    if (!isBunningsBillCsv(csv)) return csv;\n    const normalizedRows = [NORMALIZED_BUNNINGS_HEADERS];\n    let currentBill = null;\n    csv.forEach(row => {\n      // means this is header of invoice\n      if (String(row[0]) === '10') {\n        const issueDate = (0, _moment.default)(row[3], 'DD/MM/YYYY');\n        currentBill = {\n          invoiceNumber: row[4],\n          issueDate: row[3],\n          dueDate: issueDate.add(1, 'month').set('date', 20).format('DD/MM/YYYY'),\n          reference: [row[5], row[6], row[7]].filter(Boolean).join(' - ')\n        };\n        return;\n      }\n\n      // 20 means invoice item row, if it is not invoice item row skip it\n      if (String(row[0]) !== '20' || !currentBill) return;\n      normalizedRows.push([currentBill.invoiceNumber, currentBill.issueDate, currentBill.dueDate, currentBill.reference, row[1], row[2], row[7], row[4]]);\n    });\n    return normalizedRows;\n  }\n});","define(\"portal/utils/calc-map-balance\", [\"exports\", \"@ember/array\", \"@ember/utils\", \"@ember/object\"], function (_exports, _array, _utils, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = calcMapBalance;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"@ember/utils\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function calcMapBalance(map, balances, account = (0, _object.get)(map, 'account')) {\n    const step = (0, _object.get)(map, 'step');\n    const drCrCorrection = (0, _object.get)(account, 'debitCredit') === 'DEBIT' ? 1 : -1;\n    const invertCorrection = (0, _object.get)(map, 'inverted') ? -1 : 1;\n    const periodic = (0, _object.get)(account, 'periodic') || step === 'profit-and-loss';\n    let balance;\n    if ((0, _array.isArray)(balances)) {\n      balance = balances.findBy('externalId', (0, _object.get)(map, 'externalId'));\n    } else {\n      balance = balances;\n    }\n    if ((0, _utils.isEmpty)(balance)) {\n      return null;\n    }\n    const {\n      period,\n      ytd,\n      periodDebit,\n      periodCredit,\n      ytdDebit,\n      ytdCredit\n    } = balance;\n\n    // Single value\n    if (periodic ? period != null : ytd != null) {\n      return invertCorrection * (periodic ? period : ytd);\n    }\n\n    // Period value\n    if (periodic ? periodDebit != null : ytdDebit != null) {\n      return invertCorrection * drCrCorrection * (periodic ? periodDebit : ytdDebit);\n    }\n\n    // Credit value\n    if (periodic ? periodCredit != null : ytdCredit != null) {\n      return invertCorrection * drCrCorrection * -(periodic ? periodCredit : ytdCredit);\n    }\n  }\n});","define(\"portal/utils/collection-to-array\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = collectionToArray;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function collectionToArray(collection) {\n    if (!collection) return [];\n    if (Array.isArray(collection)) return collection;\n    if (typeof collection.toArray === 'function') {\n      return collection.toArray();\n    }\n    if (collection.content) {\n      return collectionToArray(collection.content);\n    }\n    if (typeof collection.value === 'function') {\n      return collectionToArray(collection.value());\n    }\n    if (typeof collection[Symbol.iterator] === 'function') {\n      return Array.from(collection);\n    }\n    if (typeof collection.length === 'number') {\n      return Array.from(collection);\n    }\n    return [];\n  }\n});","define(\"portal/utils/computed\", [\"exports\", \"@ember/object\", \"portal/utils/sums\"], function (_exports, _object, _sums) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.dividedBy = dividedBy;\n  _exports.sum = sum;\n  _exports.sumBy = sumBy;\n  _exports.sumByProducts = sumByProducts;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/sums\"eaimeta@70e063a35619d71f\n  const {\n    sum: _sum,\n    sumBy: _sumBy,\n    sumByProducts: _sumByProducts\n  } = _sums.default;\n  function sum(...keys) {\n    return (0, _object.computed)(...keys, function () {\n      return _sum(this, ...keys);\n    });\n  }\n  function sumBy(arrayStr, keyStr) {\n    return (0, _object.computed)(`${arrayStr}.@each.${keyStr}`, function () {\n      return _sumBy((0, _object.get)(this, arrayStr), keyStr);\n    });\n  }\n  function sumByProducts(arrayStr, ...keys) {\n    return (0, _object.computed)(`${arrayStr}.@each.{${keys.join(',')}}`, function () {\n      return _sumByProducts((0, _object.get)(this, arrayStr), ...keys);\n    });\n  }\n  function dividedBy(numeratorKey, denominatorKey) {\n    return (0, _object.computed)(numeratorKey, denominatorKey, function () {\n      if (!(0, _object.get)(this, denominatorKey)) return 0;\n      return (0, _object.get)(this, numeratorKey) / (0, _object.get)(this, denominatorKey);\n    });\n  }\n});","define(\"portal/utils/crystal-csv-generator\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.generateCrystalCSV = generateCrystalCSV;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  // Headings used in this Crystal CSV format\n  const headings = ['Employee ID', 'Date', 'Action Type', 'Hours', 'Payrate'];\n\n  /**\n   * Takes worker details, payrate and totals over a period of days and returns a 2D array\n   * @param {Array} workers - An array of objects with worker names, totals and payrates\n   * @param {Array} days - An array of report days\n   * @returns {Array} - A 2D array representation of the Crystal CSV format\n   */\n  function generateCrystalCSV(workers = [], days = []) {\n    const formattedDays = days.map(d => (0, _moment.default)(d).format('DD/MM/YYYY'));\n    const table = [headings];\n    workers.forEach(({\n      fullName,\n      totals\n    }) => {\n      // Calculate the work done by the worker over the whole period.\n      // if no work has been done, we can exit early\n      if (!totals.some(totalObj => totalObj.totalHours > 0)) return;\n      totals.forEach((totalObj, i) => {\n        const total = totalObj.totalHours;\n\n        // only care about days where a total exists\n        // cannot use filter on array because we need the array index\n        if (total > 0) {\n          const date = formattedDays[i];\n          const row = [fullName, date, 'ord', total, 0 // Omit pay rate as it is ignored by Crystal anyway\n          ];\n          table.push(row);\n        }\n      });\n    });\n    return table;\n  }\n});","define(\"portal/utils/csv-builder\", [\"exports\", \"@ember/object\", \"portal/utils/sanitize-filename\"], function (_exports, _object, _sanitizeFilename) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = buildCSV;\n  _exports.downloadCSV = downloadCSV;\n  _exports.downloadCSVCrystal = downloadCSVCrystal;\n  _exports.downloadXlsx = downloadXlsx;\n  _exports.generateCSVBlob = generateCSVBlob;\n  _exports.generateDataRows = generateDataRows;\n  _exports.generateHeaderRows = generateHeaderRows;\n  _exports.generateMetaDataRows = generateMetaDataRows;\n  _exports.toCSV = toCSV;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/sanitize-filename\"eaimeta@70e063a35619d71f\n  function buildCSV(meta, orderedEntities, metricsSortedByEntity) {\n    const rows = [\n    // generates metadata about the report, when it was created and by whom\n    ...generateMetaDataRows(meta),\n    // generates all the table headers to the document.\n    ...generateHeaderRows(orderedEntities),\n    // adds in page data\n    ...generateDataRows(metricsSortedByEntity)];\n    return rows;\n  }\n\n  /**\n   * Transforms a 2d array into a CSV string. Values of\n   * @param {Array.[]} rows - Array to be used.\n   * @returns {String} A CSV string\n   */\n  function toCSV(rows, {\n    quoteValues = true\n  } = {}) {\n    const rowsAsStrings = rows.map(row => {\n      const joiner = quoteValues ? '\",\"' : ',';\n      const rowAsText = row.join(joiner);\n      const textWithoutNewLines = rowAsText.replaceAll(/\\r\\n|\\r|\\n|\\x0B|\\x0C|\\u0085|\\u2028|\\u2029/gm, ' '); // eslint-disable-line no-control-regex\n\n      return quoteValues ? `\"${textWithoutNewLines}\"` : textWithoutNewLines;\n    });\n    return rowsAsStrings.join('\\n');\n  }\n\n  /**\n   * Generates metadata for the report.\n   * @param {Object} meta - Metadata to be used in the report.\n   * @param {String} meta.entityName - The name of the entity that is the focus of the report.\n   * @param {String} meta.userEmail - The email of the user generating the report.\n   * @param {String} meta.category - The account category included.\n   * @return {Array} A 2d array that represents the metadata for the report.\n   */\n  function generateMetaDataRows(meta) {\n    return [['Report for:', (0, _object.get)(meta, 'entityName')], ['Report period:', (0, _object.get)(meta, 'period')], ['Created on:', Date()], ['Created by:', (0, _object.get)(meta, 'userEmail')], ['Accounts category:', (0, _object.get)(meta, 'category')],\n    // Excel will ignore the empty line unless it has at least one comma in it.\n    ['', '']];\n  }\n\n  /**\n   * Creates an array containing the headers for the report.\n   * @param {Object.[]} entities - Objects containing the names of the entities / groups to be included.\n   * @return {Array} rows - An array where each item in the array represents a row.\n   */\n  function generateHeaderRows(entities) {\n    return [\n    // Build a header row for entity / group names.\n    entities.reduce((total, entity) => [...total, (0, _object.get)(entity, 'name'), ''], ['Entity Name']),\n    // Build a subheader row for Month / YTD labels\n    entities.reduce(total => [...total, 'Month', 'YTD'], ['Account Name'])];\n  }\n\n  /**\n   * Converts an nested set of accounts into a 2d array for output to csv.\n   * @param  {Array} nestedReport - A tree where each node is an object that contains the\n   * name of the account and an array for the report values.\n   * @param {Number} depth - Keeps track of how deep the recursion goes. Does not need to be passed in.\n   * @return {Array} rows - A 2d array that represents the nested report data as a flat table.\n   */\n  function generateDataRows(nestedReport, depth = 0) {\n    let rows = [];\n    nestedReport.forEach(lineData => {\n      // Indent the account name by 4 spaces times its depth.\n      const name = `${'    '.repeat(depth)}${(0, _object.get)(lineData, 'name')}`;\n\n      // If the account has children, then rows for the children need to be created as well.\n      if ((0, _object.get)(lineData, 'children.length')) {\n        // Add a row that names the parent account but is otherwise empty\n        rows.push([name]);\n\n        // Recursively call this function to add rows for the child accounts.\n        rows = rows.concat(generateDataRows((0, _object.get)(lineData, 'children'), depth + 1));\n\n        // Add a total row for the parent account\n        rows.push([`${'    '.repeat(depth)}Total ${lineData.name}`, ...extractReportValues(lineData)]);\n      } else {\n        // Add a row for the account\n        rows.push([name, ...extractReportValues(lineData)]);\n      }\n    });\n    return rows;\n  }\n  function generateCSVBlob(csv, {\n    includeBOM = true\n  } = {}) {\n    // '\\uFEFF' fixes Excel opening csv with wrong encoding; https://github.com/eligrey/FileSaver.js/issues/28#issue-15333709\n    const parsedCsv = includeBOM ? '\\uFEFF' + toCSV(csv) : toCSV(csv);\n    const blob = new Blob([parsedCsv], {\n      type: 'text/csv;charset=UTF-8;'\n    });\n    return blob;\n  }\n\n  /**\n   * Creates downloadable csv\n   * @param   {Array}   csv      - csv array.\n   * @param   {String}  fileName - The desired file name.\n   * @param   {Object}  options  - Options are includeBOM, and quoteValues\n   * @returns {null}             - Returns nothing.\n   */\n  function downloadCSV(csv, _fileName, {\n    includeBOM = true,\n    quoteValues = true\n  } = {}) {\n    const fileName = (0, _sanitizeFilename.default)(_fileName);\n\n    // '\\uFEFF' fixes Excel opening csv with wrong encoding; https://github.com/eligrey/FileSaver.js/issues/28#issue-15333709\n    const parsedCsv = includeBOM ? '\\uFEFF' + toCSV(csv, {\n      quoteValues\n    }) : toCSV(csv, {\n      quoteValues\n    });\n    const blob = new Blob([parsedCsv], {\n      type: 'text/csv;charset=UTF-8;'\n    });\n    if (window.navigator.msSaveOrOpenBlob) {\n      // IE hack; see http://msdn.microsoft.com/en-us/library/ie/hh779016.aspx\n      window.navigator.msSaveBlob(blob, fileName);\n    } else {\n      const a = document.createElement('a');\n      a.href = window.URL.createObjectURL(blob);\n      a.download = fileName;\n\n      // Trigger a click event which will start the native download process.\n      document.body.appendChild(a);\n      a.click();\n      document.body.removeChild(a);\n    }\n  }\n  function downloadXlsx(blob, _fileName) {\n    const fileName = (0, _sanitizeFilename.default)(_fileName);\n    if (window.navigator.msSaveOrOpenBlob) {\n      // IE hack; see http://msdn.microsoft.com/en-us/library/ie/hh779016.aspx\n      window.navigator.msSaveBlob(blob, fileName);\n    } else {\n      const a = document.createElement('a');\n      a.href = window.URL.createObjectURL(blob);\n      a.download = fileName;\n\n      // Triger a click event which will start the native download process.\n      document.body.appendChild(a);\n      a.click();\n      document.body.removeChild(a);\n    }\n  }\n\n  /**\n   * This implements the same API as downloadCSV but uses UNICODE and windows style line endings as required by Crystal Payroll\n   * @param   {Array}  csv\n   * @param   {String} fileName\n   * @returns {null}\n   */\n  function downloadCSVCrystal(csv, _fileName) {\n    const fileName = (0, _sanitizeFilename.default)(_fileName);\n\n    // This CSV string has windows style line endings and no quotes around the values\n    const csvAsString = csv.map(row => `${row.join(',')}`).join('\\r\\n');\n    const blob = new Blob([csvAsString], {\n      type: 'text/csv;charset=UTF-8;'\n    });\n    if (window.navigator.msSaveOrOpenBlob) {\n      // IE hack; see http://msdn.microsoft.com/en-us/library/ie/hh779016.aspx\n      window.navigator.msSaveBlob(blob, fileName);\n    } else {\n      const a = document.createElement('a');\n      a.href = window.URL.createObjectURL(blob);\n      a.download = fileName;\n\n      // Triger a click event which will start the native download process.\n      document.body.appendChild(a);\n      a.click();\n      document.body.removeChild(a);\n    }\n  }\n\n  /**\n   * Ectracts values from a line in the nested report and turns it into a flat array.\n   * @param  {Array} reportLine - An object containing a data variable to be extracted.\n   * @return {Array} values - An array of data values.\n   */\n  function extractReportValues(reportLine) {\n    return (0, _object.get)(reportLine, 'data').reduce((total, data = {}) => {\n      const month = (0, _object.get)(data, 'month') || (0, _object.get)(data, 'periods.0.periodTypes.month.value');\n      const ytd = (0, _object.get)(data, 'ytd') || (0, _object.get)(data, 'periods.0.periodTypes.ytd.value');\n\n      // Only use the values if they are valid numbers.\n      // Call anything less than a 1,000,000th, zero.\n      return [...total, isNaN(month) || Math.abs(month) < 0.000001 ? 0 : month, isNaN(ytd) || Math.abs(ytd) < 0.000001 ? 0 : ytd];\n    }, []);\n  }\n});","define(\"portal/utils/deprecation-filter\", [\"exports\", \"@ember/debug\", \"portal/config/environment\"], function (_exports, _debug, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.deprecationTally = deprecationTally;\n  _exports.installDeprecationFilter = installDeprecationFilter;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  // Ember re-fires the same deprecation on every render and every request, and\n  // LOG_STACKTRACE_ON_DEPRECATION prints a full stack for each one — thousands of\n  // stack captures per page, which is enough to make dev noticeably slow. Log the\n  // first occurrence of each id and tally the rest silently: the signal is what\n  // fires, not how often, and one stack per id locates the source better than\n  // thousands of duplicates. Call `deprecationTally()` for the counts.\n  //\n  // Not in `test`, where every occurrence has to keep flowing down the handler\n  // chain — tests/smoke/deprecation-report.js tallies from there, and deduping\n  // here would flatten every count to 1.\n  const DEDUPE = _environment.default.environment !== 'test';\n  const SEEN = new Map();\n\n  // The app installs this from an initializer, which only runs once something\n  // boots the app — which unit and integration tests never do, so for most of the\n  // suite the filter was absent and every deprecation went to Ember's default\n  // handler. tests/test-helper.js installs it directly to cover them, so this\n  // guard keeps the app's own boot from registering a second copy.\n  let installed = false;\n  function deprecationTally() {\n    return [...SEEN.entries()].sort((a, b) => b[1] - a[1]);\n  }\n  function installDeprecationFilter() {\n    if (installed) return;\n    installed = true;\n    (0, _debug.registerDeprecationHandler)((message, options, next) => {\n      const untilMajor = Number.parseInt(options?.until, 10);\n\n      // Show deprecations that must be resolved before upgrading to Ember 6.\n      // Anything with `until: 7.0` or later stays silenced — Ember 7 is not on\n      // the roadmap yet, and those warnings would drown out the ones that are.\n      // WarpDrive's `until` is a package version (\"@warp-drive/core 6.0\"), which\n      // parses as NaN and is silenced with them.\n      if (!Number.isFinite(untilMajor) || untilMajor > 6) {\n        return;\n      }\n      const id = options?.id ?? 'unknown';\n      const count = (SEEN.get(id) ?? 0) + 1;\n      SEEN.set(id, count);\n      if (!DEDUPE || count === 1) {\n        next(message, options);\n      }\n    });\n  }\n});","define(\"portal/utils/download\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.download = download;\n  _exports.downloadUrl = downloadUrl;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  // eslint-disable-next-line complexity\n  function download(data, strFileName, strMimeType) {\n    const isReactNative = !!window.ReactNativeWebView;\n    if (isReactNative) {\n      // convert Blob to base64 if necessary\n      if (data instanceof Blob) {\n        const reader = new FileReader();\n        reader.onloadend = function () {\n          const base64data = reader.result; // \"data:application/zip;base64,....\"\n          window.ReactNativeWebView.postMessage(JSON.stringify({\n            type: 'DOWNLOAD_BLOB',\n            data: base64data,\n            name: `${strFileName}.zip` || 'download',\n            mimeType: data.type\n          }));\n        };\n        reader.readAsDataURL(data);\n        return;\n      }\n\n      // if already a base64/data URL\n      window.ReactNativeWebView.postMessage(JSON.stringify({\n        type: 'DOWNLOAD_BLOB',\n        data: data,\n        name: strFileName || 'download'\n      }));\n      return;\n    }\n    var self = window; // this script is only for browsers anyway...\n    var defaultMime = 'application/octet-stream'; // this default mime also triggers iframe downloads\n    var mimeType = strMimeType || defaultMime;\n    var payload = data;\n    var url = !strFileName && !strMimeType && payload;\n    var anchor = document.createElement('a');\n    var toString = function (a) {\n      return String(a);\n    };\n    var MyBlob = self.Blob || self.MozBlob || self.WebKitBlob || toString;\n    var fileName = strFileName || 'download';\n    var blob;\n    var reader;\n    MyBlob = MyBlob.call ? MyBlob.bind(self) : Blob;\n    if (String(this) === 'true') {\n      // reverse arguments, allowing download.bind(true, \"text/xml\", \"export.xml\") to act as a callback\n      payload = [payload, mimeType];\n      mimeType = payload[0];\n      payload = payload[1];\n    }\n    if (url && url.length < 2048) {\n      // if no filename and no mime, assume a url was passed as the only argument\n      fileName = url.split('/').pop().split('?')[0];\n      anchor.href = url; // assign href prop to temp anchor\n      if (anchor.href.indexOf(url) !== -1) {\n        // if the browser determines that it's a potentially valid url path:\n        var ajax = new XMLHttpRequest();\n        ajax.open('GET', url, true);\n        ajax.responseType = 'blob';\n        ajax.onload = function (e) {\n          download(e.target.response, fileName, defaultMime);\n        };\n        setTimeout(function () {\n          ajax.send();\n        }, 0); // allows setting custom ajax headers using the return:\n        return ajax;\n      } // end if valid url?\n    } // end if url?\n\n    // go ahead and download dataURLs right away\n    if (/^data:([\\w+-]+\\/[\\w+.-]+)?[,;]/.test(payload)) {\n      if (payload.length > 1024 * 1024 * 1.999 && MyBlob !== toString) {\n        payload = dataUrlToBlob(payload);\n        mimeType = payload.type || defaultMime;\n      } else {\n        return navigator.msSaveBlob // IE10 can't do a[download], only Blobs:\n        ? navigator.msSaveBlob(dataUrlToBlob(payload), fileName) : saver(payload); // everyone else can save dataURLs un-processed\n      }\n    } else if (/([\\x80-\\xff])/.test(payload)) {\n      // not data url, is it a string with special needs?\n      // if (/([\\x80-\\xff])/.test(payload)) {\n      var i = 0;\n      var tempUiArr = new Uint8Array(payload.length);\n      var mx = tempUiArr.length;\n      for (i; i < mx; ++i) tempUiArr[i] = payload.charCodeAt(i);\n      payload = new MyBlob([tempUiArr], {\n        type: mimeType\n      });\n      // }\n    }\n    blob = payload instanceof MyBlob ? payload : new MyBlob([payload], {\n      type: mimeType\n    });\n    function dataUrlToBlob(strUrl) {\n      var parts = strUrl.split(/[:;,]/);\n      var type = parts[1];\n      var indexDecoder = strUrl.indexOf('charset') > 0 ? 3 : 2;\n      var decoder = parts[indexDecoder] === 'base64' ? atob : decodeURIComponent;\n      var binData = decoder(parts.pop());\n      var mx = binData.length;\n      var i = 0;\n      var uiArr = new Uint8Array(mx);\n      for (i; i < mx; ++i) uiArr[i] = binData.charCodeAt(i);\n      return new MyBlob([uiArr], {\n        type: type\n      });\n    }\n    function saver(url, winMode) {\n      if ('download' in anchor) {\n        // html5 A[download]\n        anchor.href = url;\n        anchor.setAttribute('download', fileName);\n        anchor.className = 'download-js-link';\n        anchor.innerHTML = 'downloading...';\n        anchor.style.display = 'none';\n        anchor.addEventListener('click', function (e) {\n          e.stopPropagation();\n          // eslint-disable-next-line no-caller\n          this.removeEventListener('click', arguments.callee);\n        });\n        document.body.appendChild(anchor);\n        setTimeout(function () {\n          anchor.click();\n          document.body.removeChild(anchor);\n          if (winMode === true) {\n            setTimeout(function () {\n              self.URL.revokeObjectURL(anchor.href);\n            }, 250);\n          }\n        }, 66);\n        return true;\n      }\n\n      // handle non-a[download] safari as best we can:\n      if (/(Version)\\/(\\d+)\\.(\\d+)(?:\\.(\\d+))?.*Safari\\//.test(navigator.userAgent)) {\n        if (/^data:/.test(url)) url = 'data:' + url.replace(/^data:([\\w\\/\\-\\+]+)/, defaultMime);\n        if (!window.open(url)) {\n          // popup blocked, offer direct download:\n          // eslint-disable-next-line max-len,no-alert\n          if (confirm('Displaying New Document\\n\\nUse Save As... to download, then click back to return to this page.')) {\n            location.href = url;\n          }\n        }\n        return true;\n      }\n\n      // do iframe dataURL download (old ch+FF):\n      var f = document.createElement('iframe');\n      document.body.appendChild(f);\n      if (!winMode && /^data:/.test(url)) {\n        // force a mime that will download:\n        url = 'data:' + url.replace(/^data:([\\w\\/\\-\\+]+)/, defaultMime);\n      }\n      f.src = url;\n      setTimeout(function () {\n        document.body.removeChild(f);\n      }, 333);\n    } // end saver\n\n    if (navigator.msSaveBlob) {\n      // IE10+ : (has Blob, but not a[download] or URL)\n      return navigator.msSaveBlob(blob, fileName);\n    }\n    if (self.URL) {\n      // simple fast and modern way using Blob and URL:\n      saver(self.URL.createObjectURL(blob), true);\n    } else {\n      // handle non-Blob()+non-URL browsers:\n      if (typeof blob === 'string' || blob.constructor === toString) {\n        try {\n          return saver('data:' + mimeType + ';base64,' + self.btoa(blob));\n        } catch (y) {\n          return saver('data:' + mimeType + ',' + encodeURIComponent(blob));\n        }\n      }\n\n      // Blob but not URL support:\n      reader = new FileReader();\n      reader.onload = function () {\n        saver(this.result);\n      };\n      reader.readAsDataURL(blob);\n    }\n    return true;\n  }\n  function downloadUrl(file) {\n    const isReactNative = !!window.ReactNativeWebView;\n    if (isReactNative) {\n      window.ReactNativeWebView.postMessage(JSON.stringify({\n        type: 'DOWNLOAD_URL',\n        url: file.href,\n        name: file.name\n      }));\n    } else {\n      const a = document.createElement('a');\n      a.download = file.name;\n      a.rel = 'noopener noreferrer'; // tabnabbing\n      a.target = '_blank';\n      a.href = file.href;\n      a.style.display = 'none';\n      a.click();\n      a.remove();\n    }\n  }\n});","define(\"portal/utils/duration-input\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatDuration = formatDuration;\n  _exports.parseDuration = parseDuration;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatDuration([duration], options = {}) {\n    const {\n      abs,\n      emptyPlaceholder = ''\n    } = options;\n    const total = isNaN(duration) ? 0 : abs ? Math.abs(Number(duration)) : Number(duration);\n    let minutes = String(Math.abs(Math.round(total % 1 * 60)));\n    let hours = Math[total > 0 ? 'floor' : 'ceil'](total);\n    if (minutes.length < 2) {\n      minutes = '0' + minutes;\n    }\n\n    // Floating point errors\n    if (minutes.length > 2) {\n      minutes = minutes.substring(0, 2);\n    }\n    if (minutes === '60') {\n      hours = String(hours + 1);\n      minutes = '00';\n    }\n    return hours || parseInt(minutes, 10) ? `${Math.floor(hours)}:${minutes}` : emptyPlaceholder;\n  }\n  function parseDuration(duration) {\n    // Null input\n    if ([null, undefined, ''].includes(duration)) {\n      return null;\n    }\n    if (!isNaN(duration)) return Number(duration);\n    const parts = duration.replace('.', ':').replace(/[^0-9:-]+/g, '').split(':');\n\n    // Invalid input\n    if (!parts.find(p => p !== '') || parts.length === 0) {\n      return null;\n    }\n    const [hours, minutes = 0] = parts.map(str => Number(str));\n    return hours + (hours >= 0 ? 1 : -1) * minutes / 60;\n  }\n});","define(\"portal/utils/email-validator\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = emailValidator;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function emailValidator(email) {\n    // eslint-disable-line complexity\n    const [localPart, domain, extra] = email.split('@');\n\n    // Return false if the email doesn't have exactly 1 @\n    if (!localPart || !domain || extra) return false;\n\n    // Return false if the local part has any characters that aren't the allowed characters\n    if (/[^\\ \"\\d\\w\\.!#$%&'*/=?^_+-`{|}~]+/.test(localPart)) return false;\n\n    // Local part can be max 64 chars long\n    if (localPart.length > 64) return false;\n    // Local part may not have quotes unless they are the leading AND trailing char\n    if (localPart.slice(1, -1).includes('\"')) return false;\n\n    // If local part is not quoted, do not allow leading dots, trailing dots, double dots, or spaces\n    if (!(localPart.startsWith('\"') && localPart.endsWith('\"'))) {\n      if (/\\.\\./.test(localPart)) return false;\n      if (/^\\./.test(localPart)) return false;\n      if (/\\.$/.test(localPart)) return false;\n      if (localPart.includes(' ')) return false;\n      // If the leading AND trailing char are not quotes, then don't allow any quotes.\n      if (localPart.includes('\"')) return false;\n    }\n\n    // Validate the domain, if test fails, return false\n    const subdomains = domain.split('.');\n    if (subdomains.some(part => !part.length || /[^a-zA-Z0-9\\-]/.test(part))) return false;\n\n    // No reason to invalidate, return true\n    return true;\n  }\n});","define(\"portal/utils/extract-number\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = extractNumber;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * Checks that the number is valid and rounds to 2DP\n   * @param {String} input - A string that is a plain number\n   * @returns {Number} - The string turned into a number with 2DP accuracy\n   */\n  function extractNumber(input) {\n    return isNaN(input) ? 0 : Math.floor(Number(input) * 100) / 100;\n  }\n});","define(\"portal/utils/favicon-title\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.changeFavicon = changeFavicon;\n  _exports.changeTitle = changeTitle;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function changeFavicon(src) {\n    src = src + '?=' + Math.random(); // invalidate the cached icon\n    const link = document.createElement('link');\n    const oldLink = document.getElementById('dynamic-favicon');\n    link.id = 'dynamic-favicon';\n    link.rel = 'icon';\n    link.href = src;\n    if (oldLink) document.head.removeChild(oldLink);\n    document.head.appendChild(link);\n  }\n  function changeTitle(title) {\n    document.title = title;\n  }\n});","define(\"portal/utils/find-date\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  function _default(dateString, format) {\n    let date = (0, _moment.default)(dateString, format);\n    if (date.isValid()) return date.toDate();\n    date = (0, _moment.default)(dateString);\n    if (date.isValid()) return date.toDate();\n    return null;\n  }\n});","define(\"portal/utils/find-param\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = findParam;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function findParam(routeDescription, routeName, paramName) {\n    // If this is the correct route, look for the param\n    if (routeDescription.name === routeName) {\n      return routeDescription.params[paramName];\n    }\n\n    // If this is still a sub-route, look in the parent\n    if (routeDescription.name.startsWith(routeName)) {\n      return findParam(routeDescription.parent, routeName, paramName);\n    }\n\n    // Route could not be found so return null\n    return null;\n  }\n});","define(\"portal/utils/get-default-language\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getDefaultUserOrWorkerLanguage = getDefaultUserOrWorkerLanguage;\n  _exports.languages = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  const languages = _exports.languages = [{\n    value: 'zh-Hans',\n    label: 'Chinese (简体中文)'\n  }, {\n    value: 'en-AU',\n    label: 'English (Australia)'\n  }, {\n    value: 'en-NZ',\n    label: 'English (New Zealand)'\n  }, {\n    value: 'en-GB',\n    label: 'English (United Kingdom)'\n  }, {\n    value: 'en-US',\n    label: 'English (United States)'\n  }];\n  function getDefaultUserOrWorkerLanguage() {\n    const supportedTranslations = ['zh-Hans', 'en-AU', 'en-NZ', 'en-GB', 'en-US'];\n    if (supportedTranslations.includes(navigator.language)) return navigator.language;\n    return 'en-NZ';\n  }\n});","define(\"portal/utils/gl-import-parsers/banklink\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = banklinkReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function banklinkReportParser(report) {\n    const maps = [];\n    const balances = [];\n    if (report.length) {\n      // Remove header row\n      report.shift();\n\n      // Extract useful info\n      report.forEach(row => {\n        // Check line name starts with number (account code)\n        if (isNaN(parseInt(row[0].split(' ')[0], 10))) {\n          return;\n        }\n\n        // Check both data columns contain numbers\n        if (isNaN(parseInt(row[1], 10)) || isNaN(parseInt(row[2], 10))) {\n          return;\n        }\n        const period = (0, _parseCurrencyString.default)(row[1]);\n        const ytd = (0, _parseCurrencyString.default)(row[2]);\n        const map = {\n          externalId: row[0].split(' ')[0],\n          code: row[0].split(' ')[0],\n          name: row[0].split(' ').slice(1).join(' '),\n          system: 'banklink'\n        };\n        const balance = {\n          externalId: row[0].split(' ')[0],\n          period,\n          ytd\n        };\n        maps.push(map);\n        balances.push(balance);\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/empower\", [\"exports\", \"@ember/object\", \"portal/utils/parse-currency-string\"], function (_exports, _object, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = empowerReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function empowerReportParser(report) {\n    var maps = [];\n    var balances = [];\n    if (report.length) {\n      // Remove header row\n      for (let i = 0; i < report.length; i++) {\n        report.shift();\n        if (report[0][0] && report[0][0].trim() === 'Account') {\n          report.shift();\n          break;\n        }\n      }\n\n      // Extract useful info\n      report.forEach(row => {\n        if (!row[0] || !row[1]) {\n          return;\n        }\n        const map = {\n          externalId: row[0],\n          code: row[0],\n          name: row[1],\n          system: 'empower'\n        };\n        const balance = {\n          externalId: row[0],\n          periodDebit: null,\n          periodCredit: null,\n          ytdDebit: null,\n          ytdCredit: null\n        };\n        const value = (0, _parseCurrencyString.default)(row[2]);\n\n        // Credit values are negative\n        if (value > 0) {\n          (0, _object.set)(balance, 'periodCredit', -value);\n          (0, _object.set)(balance, 'ytdCredit', -value);\n        } else {\n          (0, _object.set)(balance, 'periodDebit', value);\n          (0, _object.set)(balance, 'ytdDebit', value);\n        }\n        maps.push(map);\n        balances.push(balance);\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/frameworks\", [\"exports\", \"@ember/utils\", \"portal/utils/parse-currency-string\", \"lodash\"], function (_exports, _utils, _parseCurrencyString, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"portal/utils/parse-currency-string\",0,\"lodash\"eaimeta@70e063a35619d71f\n  const fileError = noun => `The file you uploaded didn't have the ${noun} we were expecting. Please check it is a CSV report from Frameworks.`;\n  const contentError = (value, ordinal, lineNo) => `We expected to find ${value} in the ${ordinal} column on line ${lineNo}, but that cell was empty.`;\n  function _default(report) {\n    const maps = [];\n    const balances = [];\n    const errors = [];\n    if (!Array.isArray(report) || !Array.isArray(report[0]) || report.length < 2) {\n      errors.push(fileError('structure'));\n    } else if (!_lodash.default.isEqual(report[0].slice(0, -1), ['Type', 'Account', 'Account Name', 'Current Balance'])) {\n      errors.push(fileError('headers'));\n    } else if (report[report.length - 1][0] !== 'T1') {\n      errors.push(fileError('footer row'));\n    }\n    if (errors.length === 0 && report.length > 2) {\n      // Skip header and footer rows\n      report = report.slice(1, -1);\n\n      // Extract useful info\n      report.forEach((row, i) => {\n        // Check for account code\n        if ((0, _utils.isEmpty)(row[1])) {\n          errors.push(contentError('an account code', 'second', i + 2));\n          return;\n        }\n\n        // Check for account name\n        if ((0, _utils.isEmpty)(row[2])) {\n          errors.push(contentError('an account name', 'third', i + 2));\n          return;\n        }\n        maps.push({\n          externalId: row[1],\n          code: row[1],\n          name: row[2],\n          system: 'frameworks'\n        });\n        const value = (0, _parseCurrencyString.default)(row[4]);\n        if (value) {\n          balances.push({\n            externalId: row[1],\n            periodDebit: value,\n            ytdDebit: value\n          });\n        }\n      });\n    }\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/gj-gardner\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = gjGardnerReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function gjGardnerReportParser(report) {\n    const maps = [];\n    const balances = [];\n\n    // Shallow clone\n    report = [...report];\n    validateHeaders(report.shift());\n    if (report.length) {\n      let level = 1;\n      const headers = [];\n      report.forEach(row => {\n        // Extract row data\n        const accountNumber = typeof row[0] === 'string' && row[0].trim();\n        let accountName = typeof row[1] === 'string' && row[1].trim();\n        const accountLevel = typeof row[2] === 'string' && Number(row[2].trim());\n        const accountType = typeof row[3] === 'string' && row[3].trim();\n        const actual = typeof row[4] === 'string' && row[4].length > 0 && (0, _parseCurrencyString.default)(row[4]);\n\n        // If the account name ends with it's header name, remove it\n        const currentHeader = headers[headers.length - 1];\n        if (headers.length && accountName.endsWith(currentHeader)) {\n          accountName = accountName.replace(currentHeader, '').trim();\n        }\n\n        // End of section\n        if (accountLevel < level) {\n          headers.pop();\n          level -= 1;\n        }\n\n        // Track which section we're in\n        if (accountType === 'H') {\n          headers.push(accountName);\n          level += 1;\n        }\n\n        // Skip header and total rows\n        if (accountType !== 'D') {\n          return;\n        }\n\n        // Skip if this is an account row, but for some reason this doesn't have a value\n        if (Number.isNaN(actual)) {\n          return;\n        }\n\n        // If we've reach this point, this is an account with data we need to extract\n\n        maps.push({\n          externalId: accountNumber,\n          code: accountNumber,\n          name: buildAccountName(headers, accountName),\n          system: 'gj-gardner'\n        });\n        balances.push({\n          externalId: accountNumber,\n          period: actual,\n          ytd: actual\n        });\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n  function validateHeaders(headers) {\n    if (!headers) throw new Error('CSV file appears to be empty');\n    const check = (header, expected, index) => {\n      if (!Array.isArray(expected)) {\n        expected = [expected];\n      }\n      if (!expected.includes(header.trim())) {\n        throw new Error(`Expected column ${index} to be named '${expected}', but found '${header.trim()}'`);\n      }\n    };\n    check(headers[0], 'AccountNumber', 1);\n    check(headers[1], 'AccountName', 2);\n    check(headers[2], 'AccountLevel', 3);\n    check(headers[3], 'AccountType', 4);\n    check(headers[4], ['Actual', 'Amount'], 5);\n    if (headers.length > 6) {\n      throw new Error(`Expected 5 or 6 columns, but found ${headers.length}`);\n    }\n  }\n\n  /*\n   * e.g. ([ Income, Sales ], Timber) => 'Income / Sales / Timber'\n   */\n  function buildAccountName(headers, account) {\n    return headers.map(header => header + ' / ').join('') + account;\n  }\n});","define(\"portal/utils/gl-import-parsers/itm-manual\", [\"exports\", \"@ember/object\", \"portal/utils/parse-currency-string\"], function (_exports, _object, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = itmManualParser;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function itmManualParser(report) {\n    var maps = [];\n    var balances = [];\n    report.shift();\n    report.forEach(row => {\n      if (!row[0] || !row[1] || !row[2]) return;\n      maps.push({\n        externalId: row[0],\n        code: row[0],\n        name: row[1],\n        system: 'itm-manual'\n      });\n      const balance = {\n        externalId: row[0],\n        period: null\n      };\n      const value = (0, _parseCurrencyString.default)(row[2]);\n\n      // Since this is a manual format, no assumptions can really be made on whether,\n      // an account is supposed to be a period value or a YTD one. Nor, whether the source\n      // account is a credit or debit account.\n      (0, _object.set)(balance, 'period', value);\n      (0, _object.set)(balance, 'ytd', value);\n      balances.push(balance);\n    });\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/maxim\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = maximReportParser;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function maximReportParser(report) {\n    const maps = [];\n    const balances = [];\n    const errors = [];\n    if (report.length) {\n      // Remove header row\n      report.shift();\n\n      // Extract useful info\n      report.forEach((row, i) => {\n        const map = {\n          externalId: row[3],\n          code: row[3],\n          name: row[4],\n          system: 'maxim'\n        };\n        const balance = {\n          externalId: row[3],\n          periodDebit: null,\n          periodCredit: null,\n          ytdDebit: null,\n          ytdCredit: null\n        };\n        const periodValue = extractValue(row[5]);\n        if (periodValue < 0) {\n          balance.periodCredit = -periodValue;\n        } else {\n          balance.periodDebit = periodValue;\n        }\n        const ytdValue = extractValue(row[6]);\n        if (ytdValue < 0) {\n          balance.ytdCredit = -ytdValue;\n        } else {\n          balance.ytdDebit = ytdValue;\n        }\n        if (!map.externalId || !map.name || !map.code) {\n          errors.push(`Line ${i + 2} of the provided csv file did not contain valid data.`);\n        } else {\n          maps.push(map);\n          balances.push(balance);\n        }\n      });\n    }\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n  function extractValue(source) {\n    if (!source || !source.replace) {\n      return null;\n    }\n    source = source.replace(/,/g, '');\n    if (source.indexOf('(') > -1) {\n      source = source.replace('(', '-').replace(')', '');\n    }\n    return parseFloat(source);\n  }\n});","define(\"portal/utils/gl-import-parsers/myob-ao\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function _default(report) {\n    var maps = [];\n    var balances = [];\n    if (report.length) {\n      // Remove header row\n      for (let i = 0; i < report.length; i++) {\n        report.shift();\n        if (report[0][0] && report[0][0].trim() === 'No.') {\n          report.shift();\n          report.shift();\n          break;\n        }\n      }\n\n      // Extract useful info\n      report.forEach(function (row) {\n        const map = {\n          externalId: row[0],\n          code: row[0],\n          name: row[1],\n          system: 'myob-ao'\n        };\n        const value = (0, _parseCurrencyString.default)(row[2]);\n        const balance = {\n          externalId: row[0],\n          period: value,\n          ytd: value\n        };\n        maps.push(map);\n        balances.push(balance);\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/myob\", [\"exports\", \"@ember/object\", \"@ember/array\", \"portal/utils/parse-currency-string\", \"moment\", \"lodash\"], function (_exports, _object, _array, _parseCurrencyString, _moment, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = myobReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/array\",0,\"portal/utils/parse-currency-string\",0,\"moment\",0,\"lodash\"eaimeta@70e063a35619d71f\n  /**\n   * Format is as follows\n   * @example\n   * *Created:*,  businessName\n   * unused\n   * reportName\n   * unused\n   * period\n   *\n   * OR\n   *\n   * blank line\n   * businessName\n   * some lines\n   * `General Ledger [Summary]`\n   * reportName\n   * periodStart\n   *\n   * THEN\n   *\n   * some linescd\n   * Account No. OR Acct No.,   Account Name,   Net Activity,   Ending Balance\n   * some lines\n   * positiveDigit-positiveDigit\n   *\n   * @param {array} report - The lines of a csv file\n   * @returns {{meta: {}, maps: Array, balances: Array, errors: Array}} An object containing the import data.\n   */\n  function myobReportParser(report) {\n    const meta = {};\n    const maps = [];\n    const balances = [];\n    let errors = [];\n    if (!(0, _array.isArray)(report) || report.length <= 8 || !report.every(_array.isArray)) {\n      errors.push('Input could not be parsed');\n      return {\n        meta,\n        maps,\n        balances,\n        errors\n      };\n    }\n    if (report[0][0].indexOf('Created:') === 0) {\n      // Business name\n      (0, _object.set)(meta, 'businessName', report[0][1]);\n\n      // Report name\n      (0, _object.set)(meta, 'reportName', report[2][0]);\n\n      // Report period\n      (0, _object.set)(meta, 'periodStart', report[4][0]);\n      if ((0, _object.get)(meta, 'periodStart')) {\n        (0, _object.set)(meta, 'periodEnd', (0, _moment.default)((0, _object.get)(meta, 'periodStart').substr(13, 10), 'DD/MM/YYYY').toDate());\n        (0, _object.set)(meta, 'periodStart', (0, _moment.default)((0, _object.get)(meta, 'periodStart').substr(0, 10), 'DD/MM/YYYY').toDate());\n      }\n    } else {\n      (0, _object.set)(meta, 'businessName', report.shift()[0]);\n      while (report[0][0] !== 'General Ledger [Summary]') {\n        report.shift();\n      }\n      (0, _object.set)(meta, 'reportName', report.shift()[0]);\n      (0, _object.set)(meta, 'periodStart', report.shift()[0]);\n      if ((0, _object.get)(meta, 'periodStart')) {\n        (0, _object.set)(meta, 'periodEnd', (0, _moment.default)((0, _object.get)(meta, 'periodStart').substr(13, 10), 'DD/MM/YYYY').endOf('day').toDate());\n        (0, _object.set)(meta, 'periodStart', (0, _moment.default)((0, _object.get)(meta, 'periodStart').substr(0, 10), 'DD/MM/YYYY').startOf('day').toDate());\n      }\n    }\n\n    // Error checking\n\n    if (!(0, _object.get)(meta, 'businessName')) {\n      errors.push('Could not find business name.');\n    }\n    if (!(0, _object.get)(meta, 'reportName') || (0, _object.get)(meta, 'reportName') !== 'General Ledger [Summary]') {\n      errors.push('Could not find report name.');\n    }\n    if (!(0, _object.get)(meta, 'periodStart') || !(0, _object.get)(meta, 'periodEnd')) {\n      errors.push('Could not find report date.');\n    }\n    if (errors.length) {\n      return {\n        meta,\n        maps,\n        balances,\n        errors\n      };\n    }\n    while (!report[0][0].match(/Acc(?:oun)?t No\\./)) {\n      report.shift();\n    }\n\n    // Find which column holds which data\n    let code = null;\n    let name = null;\n    let period = null;\n    let ytd = null;\n    report.shift().forEach((header, index) => {\n      if (header.match(/^Acc(?:oun)?t No\\.$/)) {\n        code = index;\n      } else if (header === 'Account Name') {\n        name = index;\n      } else if (header === 'Net Activity') {\n        period = index;\n      } else if (header === 'Ending Balance') {\n        ytd = index;\n      }\n    });\n    if (code == null) errors.push('Could not find code column');\n    if (name == null) errors.push('Could not find name column');\n    if (period == null) errors.push('Could not find period column');\n    if (ytd == null) errors.push('Could not find YTD column');\n    while (!report[0][0].match(/\\d+-\\d+/)) {\n      report.shift();\n    }\n    if (!report.length) {\n      errors.push('Could not find report data');\n      return {\n        meta,\n        maps,\n        balances,\n        errors\n      };\n    }\n    report.forEach(row => {\n      if (!row[0].match(/^\\d+-\\d+$/)) {\n        return;\n      }\n      if (!row[code] || !row[name] || !row[period] || !row[ytd]) {\n        errors.push('Failed to parse at least one row.');\n      }\n      maps.push({\n        externalId: row[code].trim(),\n        code: row[code].trim(),\n        name: row[name].trim(),\n        system: 'myob'\n      });\n      var balance = {\n        externalId: row[code]\n      };\n      if (row[period].indexOf('cr') > -1 || row[period].indexOf('(') > -1) {\n        (0, _object.set)(balance, 'periodCredit', (0, _parseCurrencyString.default)(row[period]));\n      } else {\n        (0, _object.set)(balance, 'periodDebit', (0, _parseCurrencyString.default)(row[period]));\n      }\n      if (row[ytd].indexOf('cr') > -1 || row[ytd].indexOf('(') > -1) {\n        (0, _object.set)(balance, 'ytdCredit', (0, _parseCurrencyString.default)(row[ytd]));\n      } else {\n        (0, _object.set)(balance, 'ytdDebit', (0, _parseCurrencyString.default)(row[ytd]));\n      }\n      balances.push(balance);\n    });\n    errors = _lodash.default.uniq(errors);\n    return {\n      meta,\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/new-xero-parser\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  /* eslint-disable complexity */\n  /**\n   * extracts account code from a string\n   * @example\n   * Sales (200)\n   * @param {string} label produced by Xero\n   * @returns {string} An account code\n   */\n  const extractAccountCode = label => label.substring(label.lastIndexOf('(') + 1, label.lastIndexOf(')'));\n\n  /**\n   * extracts account name from a string\n   * @example\n   * Sales (200)\n   * @param {string} label produced by Xero\n   * @returns {string} An account name\n   */\n  const extractAccountName = label => label.slice(0, label.lastIndexOf('(')).trim();\n\n  /**\n   * Format is as follows\n   * @example\n   * some lines\n   * 'Account', *\n   * one blank line\n   * accountLabel, periodDebit, periodCredit, ytdDebit, ytdCredit\n   * repeat many times\n   * can have lines that don't match (they will be ignored)\n   * Total, *\n   * @param {Array} report - A parsed csv file\n   * @returns {{maps: Array, balances: Array, errors: Array}} A list of maps, balances, and errors\n   */\n  function _default(report) {\n    const maps = [];\n    const balances = [];\n    const errors = [];\n    let linesRemoved = 1;\n    if (!report.length) {\n      errors.push('Report must not be empty');\n      return {\n        maps,\n        balances,\n        errors\n      };\n    }\n\n    // Remove header rows\n    while (report.length && report[0][0].trim() !== 'Account') {\n      report.shift();\n      linesRemoved++;\n    }\n    if (!report.length) errors.push('Incorrect format. Could not find the Header \"Account\"');\n    report.shift(); // Column headers\n    linesRemoved++;\n    // Extract useful info\n    report.forEach(function (row, i) {\n      const [label, ...rest] = row;\n      const [debit, credit, ytdDebit, ytdCredit] = rest;\n      const rowHasNoInformation = rest.every(column => column === '');\n      if (rowHasNoInformation || row[0].trim() === 'Total') {\n        return;\n      }\n      const id = extractAccountCode(label);\n      const name = extractAccountName(label);\n      if (!id || !id.length) return errors.push(`Could not parse ID for line ${i + linesRemoved}`);\n      if (!name || !name.length) return errors.push(`Could not parse name for line ${i + linesRemoved}`);\n      const map = {\n        externalId: id,\n        code: id,\n        name,\n        system: 'xero-csv'\n      };\n      const isDebit = () => ytdDebit !== '';\n      const ytdValue = isDebit() ? ytdDebit : ytdCredit;\n      const balance = {\n        externalId: id,\n        periodDebit: debit.trim() !== '' ? (0, _parseCurrencyString.default)(debit) : null,\n        periodCredit: credit.trim() !== '' ? (0, _parseCurrencyString.default)(credit) : null,\n        ytd: ytdValue.trim() !== '' ? isDebit() ? -(0, _parseCurrencyString.default)(ytdValue) : (0, _parseCurrencyString.default)(ytdValue) : null\n      };\n      maps.push(map);\n      balances.push(balance);\n    });\n    if (!maps.length || !balances.length) errors.push('No imports were found');\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/old-xero-parser\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  /* eslint-disable complexity */\n  /**\n   * Format is as follows\n   * @example\n   * some lines\n   * 'Account Code', *\n   * one blank line\n   * accountCode, accountName, accountType, periodDebit, periodCredit, ytd,\n   * repeat many times\n   * can have lines that don't match (they will be ignored)\n   * Total, *\n   * @param {Array} report - A parsed csv file\n   * @returns {{maps: Array, balances: Array, errors: Array}} A list of maps, balances, and errors\n   */\n  function _default(report) {\n    const maps = [];\n    const balances = [];\n    const errors = [];\n    if (!report.length) {\n      errors.push('Report must not be empty');\n      return {\n        maps,\n        balances,\n        errors\n      };\n    }\n\n    // Remove header rows\n    while (report.length && report[0][0].trim() !== 'Account Code') {\n      report.shift();\n    }\n    if (!report.length) errors.push('Incorrect format. Could not find the Header \"Account Code\"');\n    report.shift(); // Column headers\n\n    // Extract useful info\n    report.forEach(function (row, i) {\n      if (!row[0] && !row[1] && !row[2] && !row[3] && !row[4] && !row[5] || row[0].trim() === 'Total') {\n        return;\n      }\n      const id = row[0];\n      const name = row[1];\n      if (!id || !id.length) return errors.push(`Could not parse ID for line ${i + 5}`);\n      if (!name || !name.length) return errors.push(`Could not parse name for line ${i + 5}`);\n      const map = {\n        externalId: id,\n        code: id,\n        name,\n        system: 'xero-csv'\n      };\n      const balance = {\n        externalId: id,\n        periodDebit: row[3].trim() !== '' ? (0, _parseCurrencyString.default)(row[3]) : null,\n        periodCredit: row[4].trim() !== '' ? (0, _parseCurrencyString.default)(row[4]) : null,\n        ytd: row[5].trim() !== '' ? (0, _parseCurrencyString.default)(row[5]) : null\n      };\n      maps.push(map);\n      balances.push(balance);\n    });\n    if (!maps.length || !balances.length) errors.push('No imports were found');\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/prostix\", [\"exports\", \"@ember/object\", \"portal/utils/parse-currency-string\"], function (_exports, _object, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = prostixReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function prostixReportParser(report) {\n    var maps = [];\n    var balances = [];\n    if (report.length) {\n      // Remove header row\n      report.shift();\n\n      // Extract useful info\n      report.forEach(row => {\n        const map = {\n          externalId: row[4],\n          code: row[4],\n          name: row[3],\n          system: 'prostix'\n        };\n        const balance = {\n          externalId: row[4],\n          periodDebit: null,\n          periodCredit: null,\n          ytdDebit: null,\n          ytdCredit: null\n        };\n        const value = (0, _parseCurrencyString.default)(row[5]);\n\n        // Credit values are positive\n        if (value > 0) {\n          (0, _object.set)(balance, 'periodCredit', value);\n          (0, _object.set)(balance, 'ytdCredit', value);\n        } else {\n          (0, _object.set)(balance, 'periodDebit', -value);\n          (0, _object.set)(balance, 'ytdDebit', -value);\n        }\n        maps.push(map);\n        balances.push(balance);\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/rees\", [\"exports\", \"lodash\"], function (_exports, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = reesReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"lodash\"eaimeta@70e063a35619d71f\n  function reesReportParser(input) {\n    let report = input;\n    const maps = [];\n    const balances = [];\n    const errors = [];\n\n    // If is paged\n    if (report.indexOf('\\u000C') > 0) {\n      // Check for the report number\n      if (report.indexOf('7.11.6') === -1) {\n        errors.push('Could not verify report number');\n        return {\n          maps,\n          balances,\n          errors\n        };\n      }\n\n      // Split on page break character\n      const pages = report.split(/\\u000C/); // eslint-disable-line no-control-regex\n\n      // Remove headers\n      const pagesWithoutHeaders = pages.map(page => {\n        return page.replace(/^[\\s\\S^-]*(-){130}\\r\\n/, '');\n      });\n\n      // Flatten pages\n      report = pagesWithoutHeaders.join('\\r\\n');\n    }\n\n    // Split on line breaks\n    const lines = report.split('\\r\\n');\n\n    // Trim each line\n    const trimmedLines = lines.map(_lodash.default.trim);\n\n    // Split into cells\n    const cells = trimmedLines.map(line => {\n      // remove commas from the dollar figures\n      line = line.replace(/\\,/g, '');\n\n      // Extract the values. Must handle no-match case where match returns null.\n      const [periodValue, ytdValue] = line.match(/-{0,1}\\d*\\.\\d{2}/g) || [];\n\n      // If either values are missing (can be 0.00 but not missiing), just use the whole line.\n      if (!periodValue || !ytdValue) return [line];\n\n      // The code and name is just the rest of the line with the values removed.\n      const codeAndName = line.replace(periodValue, '').replace(ytdValue, '').trim();\n      return [periodValue, codeAndName, ytdValue];\n    });\n\n    // Keep only lines with three cells (removes headers and breaks).\n    // Native filter rather than Ember's reject: this module is imported and run\n    // without the application having booted, and the array prototype extensions\n    // are not installed until it has.\n    const accountsWithTotals = cells.filter(line => line.length === 3 && line[1].split(' ').length >= 2);\n    let accounts = accountsWithTotals.filter(account => {\n      const name = account[1].match(/^[\\d\\.-]+(.*)/)[1].toLowerCase().trim();\n      return !(name.match(/^total/) || name.indexOf('must equal zero') > -1);\n    });\n    if (!accounts.length) {\n      errors.push('No accounts were found.');\n      return {\n        maps,\n        balances,\n        errors\n      };\n    }\n    accounts = accounts.map(account => {\n      return {\n        code: account[1].match(/^[\\d\\.-]+/)[0],\n        name: account[1].match(/^[\\d\\.-]+(.*)/)[1].trim(),\n        period: parseFloat(account[0]),\n        ytd: parseFloat(account[2])\n      };\n    });\n\n    // Extract useful info\n    accounts.forEach(({\n      code,\n      name,\n      period,\n      ytd\n    }) => {\n      maps.push({\n        externalId: code,\n        code,\n        name,\n        system: 'rees'\n      });\n      balances.push({\n        externalId: code,\n        period,\n        ytd\n      });\n    });\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/xero-csv\", [\"exports\", \"portal/utils/gl-import-parsers/old-xero-parser\", \"portal/utils/gl-import-parsers/new-xero-parser\"], function (_exports, _oldXeroParser, _newXeroParser) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/gl-import-parsers/old-xero-parser\",0,\"portal/utils/gl-import-parsers/new-xero-parser\"eaimeta@70e063a35619d71f\n  const isOldXeroFormat = report => report[4][0] === 'Account Code';\n\n  /**\n   * detects which format the xero export is and chooses the correct parser\n   * @param {Array} report - A parsed csv file\n   * @returns {{maps: Array, balances: Array, errors: Array}} A list of maps, balances, and errors\n   */\n  var _default = report => {\n    if (!report.length) {\n      return {\n        errors: ['Report must not be empty']\n      };\n    }\n    return isOldXeroFormat(report) ? (0, _oldXeroParser.default)(report) : (0, _newXeroParser.default)(report);\n  };\n  _exports.default = _default;\n});","define(\"portal/utils/intl/missing-message\", [\"exports\", \"portal/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = missingMessage;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  // ember-intl calls this whenever `t` is given a key that has no translation.\n  // Static keys are caught at build time (see lib/missing-translations); this\n  // warns about dynamic ones outside production.\n  function missingMessage(key, locales) {\n    const message = `Missing translation: ${key} in ${locales}`;\n    if (_environment.default.environment !== 'production') {\n      // eslint-disable-next-line no-console\n      console.warn(message);\n    }\n    return message;\n  }\n});","define(\"portal/utils/labour-cost-calculator-fixtures\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.nzlLabourCostCalculatorItems = _exports.nzlLabourCostCalculator = _exports.defaultLabourCostCalculatorItems = _exports.defaultLabourCostCalculator = _exports.ausLabourCostCalculatorItems = _exports.ausLabourCostCalculator = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /* international */\n  const defaultLabourCostCalculator = _exports.defaultLabourCostCalculator = {\n    label: 'Default worker calculator',\n    workingHoursPerDay: 8,\n    workingDaysPerWeek: 5\n  };\n  const defaultLabourCostCalculatorItems = _exports.defaultLabourCostCalculatorItems = [{\n    label: 'Paid Lunch/Breaks',\n    enabled: true,\n    isSystem: true,\n    value: 30,\n    valueType: 'minutesPerDay'\n  }, {\n    label: 'Public Holiday',\n    enabled: true,\n    isSystem: true,\n    value: 12,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Annual Leave',\n    enabled: true,\n    isSystem: true,\n    value: 20,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Sick Leave',\n    enabled: true,\n    isSystem: true,\n    value: 5,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Other',\n    enabled: true,\n    isSystem: false,\n    value: 0,\n    valueType: 'percentOfPayRate'\n  }];\n\n  /* new zealand */\n  const nzlLabourCostCalculator = _exports.nzlLabourCostCalculator = {\n    label: 'Default worker calculator',\n    workingHoursPerDay: 8,\n    workingDaysPerWeek: 5\n  };\n  const nzlLabourCostCalculatorItems = _exports.nzlLabourCostCalculatorItems = [{\n    label: 'Paid Lunch/Breaks',\n    enabled: true,\n    isSystem: true,\n    value: 30,\n    valueType: 'minutesPerDay'\n  }, {\n    label: 'Public Holiday',\n    enabled: true,\n    isSystem: true,\n    value: 12,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Annual Leave',\n    enabled: true,\n    isSystem: true,\n    value: 20,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Sick Leave',\n    enabled: true,\n    isSystem: true,\n    value: 10,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'KiwiSaver',\n    enabled: true,\n    isSystem: true,\n    value: 0.035,\n    valueType: 'percentOfPayRate'\n  }, {\n    label: 'ACC Levy Rate',\n    enabled: true,\n    isSystem: true,\n    value: 0.022,\n    valueType: 'percentOfPayRate'\n  }, {\n    label: 'Other',\n    enabled: true,\n    isSystem: false,\n    value: 0,\n    valueType: 'percentOfPayRate'\n  }];\n\n  /* australia */\n  const ausLabourCostCalculator = _exports.ausLabourCostCalculator = {\n    label: 'Default worker calculator',\n    workingHoursPerDay: 8,\n    workingDaysPerWeek: 5\n  };\n  const ausLabourCostCalculatorItems = _exports.ausLabourCostCalculatorItems = [{\n    label: 'Paid Lunch/Breaks',\n    enabled: true,\n    isSystem: true,\n    value: 30,\n    valueType: 'minutesPerDay'\n  }, {\n    label: 'Public Holiday',\n    enabled: true,\n    isSystem: true,\n    value: 15,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Annual Leave',\n    enabled: true,\n    isSystem: true,\n    value: 20,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Sick Leave',\n    enabled: true,\n    isSystem: true,\n    value: 10,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Super',\n    enabled: true,\n    isSystem: true,\n    value: 0,\n    valueType: 'percentOfPayRate'\n  }, {\n    label: 'Other',\n    enabled: true,\n    isSystem: false,\n    value: 0,\n    valueType: 'percentOfPayRate'\n  }];\n});","define(\"portal/utils/loading-route-from\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = loadingRouteFrom;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function loadingRouteFrom(Route, path) {\n    return Route.extend({\n      templateName: path,\n      controllerName: path,\n      setupController(controller) {\n        this._super(...arguments);\n        (0, _object.set)(controller, 'isLoading', true);\n      },\n      deactivate() {\n        (0, _object.set)(this, 'controller.isLoading', false);\n      }\n    });\n  }\n});","define(\"portal/utils/make-temp-id\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = makeTempId;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function makeTempId() {\n    let id = Math.floor(Math.random() * Math.pow(10, 16)).toString();\n    while (id.length < 16) {\n      id = '0' + id;\n    }\n    return id;\n  }\n});","define(\"portal/utils/multi-selectable-tree-item\", [\"exports\", \"@glimmer/tracking\", \"@ember/array\"], function (_exports, _tracking, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/tracking\",0,\"@ember/array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let MultiSelectableTreeItem = _exports.default = (_class = class MultiSelectableTreeItem {\n    get isSomeChildChecked() {\n      return function checkChildren(children = []) {\n        return children.some(child => {\n          if (child.checked) return true;\n          if (child.children?.length) return checkChildren(child.children);\n          return false;\n        });\n      }(this.children);\n    }\n    get isEveryChildChecked() {\n      return function checkChildren(children = []) {\n        return children.every(child => {\n          if (child.checked) return true;\n          if (child.children?.length) return checkChildren(child.children);\n          return false;\n        });\n      }(this.children);\n    }\n    get isChecked() {\n      return this._isChecked || this.isSomeChildChecked;\n    }\n    set isChecked(value) {\n      this._isChecked = value;\n    }\n    get checked() {\n      return this._isChecked && this.isEveryChildChecked;\n    }\n    get indeterminate() {\n      if (!this.children?.length) return false;\n      return this._isChecked && !this.isEveryChildChecked;\n    }\n    static constructItemTreeFromTasks(taskData, selectedTasks) {\n      const topTasks = taskData.toArray().filter(task => !task.belongsTo('parent').id() && ['ACTIVE', 'DRAFT_CREATED'].includes(task.status));\n      const taskItems = (0, _array.A)(topTasks).sortBy('path').map(task => new MultiSelectableTreeItem(task, selectedTasks));\n      return taskItems;\n    }\n    constructor(item, selectedTasks) {\n      _initializerDefineProperty(this, \"_isChecked\", _descriptor, this);\n      _initializerDefineProperty(this, \"item\", _descriptor2, this);\n      _initializerDefineProperty(this, \"children\", _descriptor3, this);\n      this.item = item;\n      if (selectedTasks.find(t => t.id === item.id)) {\n        this._isChecked = true;\n      } else {\n        this._isChecked = false;\n      }\n      if (item.children) {\n        const childrenArray = (0, _array.A)(item.hasMany('children').value()?.toArray());\n        this.children = childrenArray?.sortBy('path').filter(child => ['ACTIVE', 'DRAFT_CREATED'].includes(child.status)).map(child => new MultiSelectableTreeItem(child, selectedTasks)) || [];\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_isChecked\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"item\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _class);\n});","define(\"portal/utils/nest\", [\"exports\", \"@ember/utils\", \"@ember/object\", \"lodash\"], function (_exports, _utils, _object, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = nest;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/object\",0,\"lodash\"eaimeta@70e063a35619d71f\n  function nest(parents, accounts, idKey) {\n    if (idKey == null) {\n      idKey = 'id';\n    }\n    parents = parents.toArray().sortBy('sortIndex');\n    accounts = accounts.toArray();\n    parents.forEach(account => {\n      if ((0, _utils.isEmpty)(account)) {\n        return;\n      }\n      let children;\n      if (idKey !== false) {\n        children = accounts.filterBy('parent.' + idKey, (0, _object.get)(account, idKey));\n      } else {\n        children = accounts.filterBy('parent', (0, _object.get)(account, 'id'));\n      }\n      (0, _object.set)(account, 'children', []);\n      if (!(0, _utils.isEmpty)(children)) {\n        children.forEach(child => {\n          // Add to list of children\n          (0, _object.get)(account, 'children').pushObject(child);\n\n          // Remove from top level\n          parents.removeObject(child);\n        });\n\n        // Populate child's children\n        (0, _object.set)(account, 'children', nest((0, _object.get)(account, 'children'), accounts, idKey));\n      }\n    });\n    return _lodash.default.compact(parents);\n  }\n});","define(\"portal/utils/network-errors\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = networkErrors;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function networkErrors(err) {\n    if ((0, _object.get)(err, 'status') === 0) {\n      this.send('connectionError');\n      return true;\n    }\n    if ((0, _object.get)(err, 'status') >= 500) {\n      this.send('serverError');\n      return true;\n    }\n    return false;\n  }\n});","define(\"portal/utils/oidc-config\", [\"exports\", \"portal/config/environment\", \"oidc-client-ts\"], function (_exports, _environment, _oidcClientTs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.userManager = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\",0,\"oidc-client-ts\"eaimeta@70e063a35619d71f\n  const oidcConfig = _environment.default.oidc;\n  const userManager = _exports.userManager = new _oidcClientTs.UserManager({\n    authority: oidcConfig.authenticationURL,\n    client_id: oidcConfig.applicationName,\n    redirect_uri: `${window.location.origin}/login-redirect`,\n    response_type: oidcConfig.responseType,\n    scope: oidcConfig.requestedScopes,\n    automaticSilentRenew: false,\n    // we use a manual renew due to poor multi tab support in this library\n    silent_redirect_uri: `${window.location.origin}/renew-redirect.html`,\n    popup_redirect_uri: `${window.location.origin}/login-redirect`,\n    post_logout_redirect_uri: `${window.location.origin}/logout-redirect`,\n    // for cross tab support use local storage instead of the default session storage on the window\n    userStore: new _oidcClientTs.WebStorageStateStore({\n      store: localStorage\n    }),\n    stateStore: new _oidcClientTs.WebStorageStateStore({\n      store: localStorage\n    })\n  });\n});","define(\"portal/utils/parse-currency-string\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = parseMoneyString;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function parseMoneyString(string) {\n    if (string && string.length) {\n      return parseFloat(string.replace(/[^-0-9.]+/g, ''));\n    } else {\n      return 0;\n    }\n  }\n});","define(\"portal/utils/path-resolver\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = pathResolver;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  const cache = {};\n\n  /**\n   * what\n   * If the url given is not an absolute path, then it considered to be\n   * a relative one, following the same rules an anchor tag would on the\n   * page that is currently being viewed.\n   * @param {String} url\n   * @returns {String}\n   */\n  function pathResolver(url) {\n    if (cache[url]) return cache[url]; // Memoize as create element is slow\n\n    const link = document.createElement('a');\n    link.href = url;\n    // Remove any trailing slashes as a matter of convention.\n    const result = link.href.replace(/\\/$/, '');\n    cache[url] = result; // Memoize\n    return result;\n  }\n});","define(\"portal/utils/placemakers-bill-csv-normalizer\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.NORMALIZED_PLACEMAKERS_HEADERS = void 0;\n  _exports.default = normalizePlaceMakersBillCsv;\n  _exports.isPlaceMakersBillCsv = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  const PLACEMAKERS_BILL_HEADER = ['H', 'Branch', 'Branch Name', 'Parent Account', 'Account Code', 'Customer Name', 'Date', 'Customer Order Number', 'Transaction number', 'Transaction type (IN/CR)', 'Packing Slip Number', 'Freight Amount(excl GST)', 'Total including GST', 'GST Total'];\n  const PLACEMAKERS_ITEM_HEADER = ['D', 'Line number', 'Product Code (Suppliers)', 'Description', 'Qty Supplied', 'Unit', 'Unit Rate', 'Extended Line Total (excluding GST)', 'GST Rate %', 'GST Amount'];\n  const NORMALIZED_PLACEMAKERS_HEADERS = _exports.NORMALIZED_PLACEMAKERS_HEADERS = ['Invoice Number', 'Issue Date', 'Due Date', 'Customer Reference', 'Code', 'Description', 'Unit Price', 'Quantity'];\n  const rowStartsWith = (row = [], expectedHeaders = []) => expectedHeaders.every((header, index) => row[index] === header);\n  const isPlaceMakersBillCsv = (csv = []) => rowStartsWith(csv[0], PLACEMAKERS_BILL_HEADER) && rowStartsWith(csv[1], PLACEMAKERS_ITEM_HEADER);\n  _exports.isPlaceMakersBillCsv = isPlaceMakersBillCsv;\n  function normalizePlaceMakersBillCsv(csv = []) {\n    if (!isPlaceMakersBillCsv(csv)) return csv;\n    const normalizedRows = [NORMALIZED_PLACEMAKERS_HEADERS];\n    let currentBill = null;\n    csv.slice(2).forEach(row => {\n      if (row[0] === 'H') {\n        currentBill = row;\n        // PlaceMakers stores freight in the bill header, so adding it as a line item.\n        if (Number(currentBill[11])) {\n          normalizedRows.push([currentBill[8], currentBill[6], currentBill[14], currentBill[7], '', 'Freight', currentBill[11], '1']);\n        }\n        return;\n      }\n      if (row[0] !== 'D' || !currentBill) return;\n      normalizedRows.push([currentBill[8], currentBill[6], currentBill[14], currentBill[7], row[2], row[3], row[6], row[4]]);\n    });\n    return normalizedRows;\n  }\n});","define(\"portal/utils/platform\", [\"exports\", \"portal/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.BRANDING = void 0;\n  _exports.getDefaultPlatform = getDefaultPlatform;\n  _exports.getPlatforms = getPlatforms;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  const BRANDING = _exports.BRANDING = {\n    MIRAGE: {\n      brand: 'Mirage',\n      logo: '/assets/images/logos/mirage-b22f30700af826c1fd3ff142a9e7be0f.png',\n      fullLogo: '/assets/images/logos/mirage-b22f30700af826c1fd3ff142a9e7be0f.png',\n      favicon: '/assets/images/logos/mirage-b22f30700af826c1fd3ff142a9e7be0f.png',\n      entityBrandEnum: undefined\n    },\n    OTBS: {\n      brand: 'OTBS',\n      logo: '/assets/images/logos/otbs-56a7571b3aaac8d0fffcb0a36304b743.png',\n      fullLogo: '/assets/images/logos/otbs-56a7571b3aaac8d0fffcb0a36304b743.png',\n      favicon: '/assets/images/logos/otbs-56a7571b3aaac8d0fffcb0a36304b743.png',\n      entityBrandEnum: undefined\n    },\n    STEP: {\n      brand: 'Step Accounts',\n      logo: '/assets/images/logos/step-6d552db468d48acf786adc029424651a.png',\n      fullLogo: '/assets/images/logos/step-6d552db468d48acf786adc029424651a.png',\n      favicon: '/assets/images/logos/step-6d552db468d48acf786adc029424651a.png',\n      entityBrandEnum: 'STEP'\n    },\n    TPB: {\n      brand: 'TPB',\n      logo: '/assets/images/logos/tpb-34e3e21517fc4699c5cb27b5e9b4f7ab.png',\n      fullLogo: '/assets/images/logos/tpb-34e3e21517fc4699c5cb27b5e9b4f7ab.png',\n      favicon: '/assets/images/logos/tpb-34e3e21517fc4699c5cb27b5e9b4f7ab.png',\n      entityBrandEnum: 'TPB'\n    },\n    APB: {\n      brand: 'APB',\n      logo: '/assets/images/logos/apb-74eaa7ce4230c00d67fed100d00b2d8e.svg',\n      fullLogo: '/assets/images/logos/apb-74eaa7ce4230c00d67fed100d00b2d8e.svg',\n      favicon: '/assets/images/logos/apb-74eaa7ce4230c00d67fed100d00b2d8e.svg',\n      entityBrandEnum: 'APB'\n    },\n    BUILDA_PRICE: {\n      brand: 'Builda Price',\n      logo: '/assets/images/logos/builda-price-7b6987b04f25f2261166dc83c687ea9b.svg',\n      fullLogo: '/assets/images/logos/builda-price-full-ff552901c19bf3fc4d14a1f9819274fa.svg',\n      favicon: '/assets/images/logos/builda-price-7b6987b04f25f2261166dc83c687ea9b.svg',\n      entityBrandEnum: 'BUILDA_PRICE'\n    },\n    ITM: {\n      brand: 'ITM',\n      logo: '/assets/images/logos/itm-9e1f4c3b59c9c650c0f52c6eabe2593b.svg',\n      fullLogo: '/assets/images/logos/itm-9e1f4c3b59c9c650c0f52c6eabe2593b.svg',\n      favicon: '/assets/images/logos/itm-9e1f4c3b59c9c650c0f52c6eabe2593b.svg',\n      entityBrandEnum: 'ITM'\n    },\n    ATTENTION_SAFETY: {\n      brand: 'Attention Safety',\n      logo: '/assets/images/logos/attention-safety-c455aba989887566a82c8ac4d53c4410.svg',\n      fullLogo: '/assets/images/logos/attention-safety-full-50259a0b942c7c43389c731ad3822e2f.svg',\n      favicon: '/assets/images/logos/attention-safety-c455aba989887566a82c8ac4d53c4410.svg',\n      entityBrandEnum: 'ATTENTION_SAFETY'\n    },\n    STEP_UP: {\n      brand: 'Step Up Projects',\n      logo: '/assets/images/logos/step-up-f8e09b12ca9d649063bbc554f7eb4bfa.svg',\n      fullLogo: '/assets/images/logos/step-up-full-041f1bee99cad4708c3ccfd93e5a9f17.svg',\n      favicon: '/assets/images/logos/step-up-f8e09b12ca9d649063bbc554f7eb4bfa.svg',\n      entityBrandEnum: 'STEP_UP'\n    }\n  };\n  function getPlatforms() {\n    const host = window.location.host;\n    const defaultPlatforms = {\n      MIRAGE: {\n        logo: BRANDING.MIRAGE.logo,\n        fullLogo: BRANDING.MIRAGE.logo,\n        name: 'Platform name',\n        favicon: BRANDING.MIRAGE.favicon,\n        entityBrandEnum: BRANDING.MIRAGE.entityBrandEnum\n      },\n      OTBS: {\n        logo: BRANDING.OTBS.logo,\n        fullLogo: BRANDING.OTBS.logo,\n        name: 'Platform name',\n        favicon: BRANDING.OTBS.favicon,\n        entityBrandEnum: BRANDING.OTBS.entityBrandEnum\n      },\n      STEP: {\n        logo: BRANDING.STEP.logo,\n        fullLogo: BRANDING.STEP.logo,\n        name: 'Step Accounts Portal',\n        favicon: BRANDING.STEP.favicon,\n        entityBrandEnum: BRANDING.STEP.entityBrandEnum\n      },\n      APB: {\n        logo: BRANDING.APB.logo,\n        fullLogo: BRANDING.APB.logo,\n        name: 'APB - Builda Price Portal',\n        favicon: BRANDING.APB.favicon,\n        entityBrandEnum: BRANDING.APB.entityBrandEnum\n      },\n      TPB: {\n        logo: BRANDING.TPB.logo,\n        fullLogo: BRANDING.TPB.logo,\n        name: 'TPB - Builda Price Portal',\n        favicon: BRANDING.TPB.favicon,\n        entityBrandEnum: BRANDING.TPB.entityBrandEnum\n      },\n      BUILDA_PRICE: {\n        logo: BRANDING.BUILDA_PRICE.logo,\n        fullLogo: BRANDING.BUILDA_PRICE.fullLogo,\n        name: 'Builda Price Portal',\n        favicon: BRANDING.BUILDA_PRICE.favicon,\n        entityBrandEnum: BRANDING.BUILDA_PRICE.entityBrandEnum\n      },\n      ITM: {\n        logo: BRANDING.ITM.logo,\n        fullLogo: BRANDING.ITM.logo,\n        name: 'Step Accounts Portal',\n        favicon: BRANDING.ITM.favicon,\n        entityBrandEnum: BRANDING.ITM.entityBrandEnum\n      },\n      ATTENTION_SAFETY: {\n        logo: BRANDING.ATTENTION_SAFETY.logo,\n        fullLogo: BRANDING.ATTENTION_SAFETY.fullLogo,\n        name: 'Attention Safety Portal',\n        favicon: BRANDING.ATTENTION_SAFETY.favicon,\n        entityBrandEnum: BRANDING.ATTENTION_SAFETY.entityBrandEnum\n      },\n      STEP_UP: {\n        logo: BRANDING.STEP_UP.logo,\n        fullLogo: BRANDING.STEP_UP.fullLogo,\n        name: 'Step Up Projects',\n        favicon: BRANDING.STEP_UP.favicon,\n        entityBrandEnum: BRANDING.STEP_UP.entityBrandEnum\n      }\n    };\n    let authenticationUrl = _environment.default.urls.authenticationUrl;\n    let apiUrl = _environment.default.urls.authenticationUrl;\n\n    // these only need overwriting on some domains\n    switch (host) {\n      case 'portal.step.nz':\n        authenticationUrl = 'https://auth.step.nz';\n        apiUrl = 'https://portal.step.nz';\n        break;\n      case 'my.buildaprice.app':\n        authenticationUrl = 'https://auth.buildaprice.app';\n        break;\n      case 'apb.buildaprice.app':\n        authenticationUrl = 'https://auth.buildaprice.app';\n        break;\n      case 'my.stepupprojects.com':\n        authenticationUrl = 'https://auth.step.nz';\n        apiUrl = 'https://my.stepupprojects.com';\n        break;\n    }\n    const outputPlatforms = {};\n    for (const [name, details] of Object.entries(defaultPlatforms)) outputPlatforms[name] = {\n      ...details,\n      authenticationUrl,\n      apiUrl\n    };\n    return outputPlatforms;\n  }\n  function getDefaultPlatform() {\n    const host = window.location.host;\n    const platforms = getPlatforms();\n    let platform = _environment.default.useMirage ? platforms.MIRAGE : platforms.OTBS;\n    switch (host) {\n      case 'portal.step.nz':\n      case 'staging.portal.step.nz':\n        platform = platforms.STEP;\n        break;\n      case 'my.buildaprice.app':\n      case 'staging.buildaprice.app':\n        platform = platforms.BUILDA_PRICE;\n        break;\n      case 'apb.buildaprice.app':\n        platform = platforms.APB;\n        break;\n      case 'my.stepupprojects.com':\n      case 'staging.stepupprojects.com':\n        platform = platforms.STEP_UP;\n        break;\n    }\n    return platform;\n  }\n});","define(\"portal/utils/profit-margin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.calculatePercentage = calculatePercentage;\n  _exports.calculateValue = calculateValue;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function calculateValue(profitType, value, percentage) {\n    switch (profitType) {\n      case 'MARGIN':\n        // if margin check percentage is less that 1\n        if (percentage >= 1) return 0;\n        return Number((value / (1 - percentage)).toFixed(2));\n      case 'MARKUP':\n        return Number((value * percentage + value).toFixed(2));\n      default:\n        throw new Error(`Invalid profit type: ${profitType}`);\n    }\n  }\n  function calculatePercentage(profitType, Numerator, Denominator) {\n    if (Number(Denominator) === 0) return 0;\n    switch (profitType) {\n      case 'MARGIN':\n        return Number(1 - Numerator / (Denominator || Infinity));\n      case 'MARKUP':\n        return Number((Denominator - Numerator) / (Numerator || Infinity));\n      default:\n        throw new Error(`Invalid profit type: ${profitType}`);\n    }\n  }\n});","define(\"portal/utils/report-builder-attachments-bundle\", [\"exports\", \"portal/utils/download\", \"portal/config/environment\", \"jquery\"], function (_exports, _download, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = downloadAttachmentsBundle;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/download\",0,\"portal/config/environment\",0,\"jquery\"eaimeta@70e063a35619d71f\n  async function downloadAttachmentsBundle(reportData) {\n    const materialHrefs = getAttachmentHrefs(reportData.materialInvoices);\n    const subcontractorHrefs = getAttachmentHrefs(reportData.subcontractorInvoices);\n    if (![...materialHrefs, ...subcontractorHrefs].length) return;\n    const archiveDescription = {\n      name: 'attachments',\n      contents: []\n    };\n    if (materialHrefs.length) archiveDescription.contents.push({\n      name: 'Materials',\n      contents: materialHrefs\n    });\n    if (subcontractorHrefs.length) archiveDescription.contents.push({\n      name: 'Subcontractors',\n      contents: subcontractorHrefs\n    });\n    const zipBlob = await getZipBlob(archiveDescription);\n    (0, _download.download)(zipBlob, 'attachments.zip', 'application/zip');\n  }\n  function getAttachmentHrefs(invoiceWrapper) {\n    return invoiceWrapper.reduce((hrefs, wrapper) => {\n      const attachments = wrapper.invoice.myAttachments || [];\n      return [...hrefs, ...attachments.map(attachment => attachment.href)];\n    }, []);\n  }\n  function getZipBlob(archiveDescription) {\n    return new Promise((resolve, reject) => _jquery.default.ajax({\n      url: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/files/zip',\n      method: 'POST',\n      data: JSON.stringify(archiveDescription),\n      contentType: 'application/json',\n      xhr() {\n        // This seems to be the only way to set the response type to blob.\n        // This will allow js to leave the file as a bytestream rather than trying to parse it.\n        const xhr = new XMLHttpRequest();\n        xhr.responseType = 'blob';\n        return xhr;\n      }\n    }).then(resolve, reject));\n  }\n});","define(\"portal/utils/report-builder-mark-as-reported\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.clearSelectedResources = clearSelectedResources;\n  _exports.confirmMarkAsReported = confirmMarkAsReported;\n  _exports.markSelectedItemsAsReported = markSelectedItemsAsReported;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  async function markSelectedItemsAsReported(reportData, notifications) {\n    const reportedResourcesSummary = getReportedResourcesSummary(reportData);\n    if (reportedResourcesSummary.resourcesToTrack.length) {\n      await markItemsAsReported(reportedResourcesSummary.resourcesToTrack);\n      notifications.success(`${reportedResourcesSummary.resourcesToTrack.length} ${reportedResourcesSummary.resourcesToTrack.length > 1 ? 'items have' : 'item has'} been tracked.`); // eslint-disable-line\n    } else {\n      notifications.info('All items were already marked \"Reported\".');\n    }\n  }\n  function confirmMarkAsReported(reportData) {\n    const reportedResourcesSummary = getReportedResourcesSummary(reportData);\n\n    // If there are items in the report that have previously been exported ask the user if they wish to continue\n    if (reportedResourcesSummary.previouslyReportedResources.length) {\n      return confirm(`You are about to run a report with ${reportedResourcesSummary.previouslyReportedResources.length} previously reported ${reportedResourcesSummary.previouslyReportedResources.length > 1 ? 'items' : 'item'}. Do you wish to continue?`); // eslint-disable-line\n    }\n    return true;\n  }\n  function markItemsAsReported(resourcesToTrack) {\n    // Mark the selected resources as reported and save them\n    return Promise.all(resourcesToTrack.map(item => {\n      item.reported = true;\n      return item.save();\n    }));\n  }\n  function clearSelectedResources(reportData) {\n    const invoices = [...reportData.materialInvoices, ...reportData.labourInvoices, ...reportData.subcontractorInvoices];\n    invoices.forEach(invoice => invoice.items.forEach(item => (0, _object.set)(item, 'selected', false)));\n    reportData.workers.forEach(workerWrapper => workerWrapper.timesheets.forEach(timesheet => (0, _object.set)(timesheet, 'selected', false)));\n  }\n  function getReportedResourcesSummary(reportData) {\n    // Resources which need to be marked as reported and then saved.\n    const resourcesToTrack = [];\n    // Resources that were already marked as 'reported'.\n    const previouslyReportedResources = [];\n    // Takes a list of resources and sorts the selected ones by whether they had been previously reported or not\n    const sortReportedResources = resources => {\n      resources.filterBy('selected').forEach(resource => {\n        if (resource.reported) {\n          previouslyReportedResources.push(resource);\n        } else {\n          resourcesToTrack.push(resource);\n        }\n      });\n    };\n\n    // Sort all the selected invoice items and timesheets\n    [...reportData.materialInvoices, ...reportData.labourInvoices, ...reportData.subcontractorInvoices].forEach(invoice => sortReportedResources(invoice.items));\n    reportData.workers.filter(workerWrapper => workerWrapper.allSelected || workerWrapper.partSelected).forEach(worker => sortReportedResources(worker.timesheets));\n    return {\n      resourcesToTrack,\n      previouslyReportedResources\n    };\n  }\n});","define(\"portal/utils/report-builder\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getTimesheetTotal = getTimesheetTotal;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function getTimesheetTotal(timesheet, useChargeOutRates, currentChargeOutRate) {\n    if ((0, _object.get)(timesheet, 'id')) {\n      if (useChargeOutRates && currentChargeOutRate != null) return currentChargeOutRate * (0, _object.get)(timesheet, 'hours');else if (useChargeOutRates) return (0, _object.get)(timesheet, 'totals.chargeOutTotal');else return (0, _object.get)(timesheet, 'totals.costTotal');\n    } else {\n      return (0, _object.get)(timesheet, 'currentChargeOutRate') * (0, _object.get)(timesheet, 'hours') || 0;\n    }\n  }\n});","define(\"portal/utils/sanitize-filename\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sanitize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * Extracted from node-sanitize (https://github.com/parshap/node-sanitize-filename/blob/master/index.js)\n   *\n   * Replaces characters in strings that are illegal/unsafe for filenames.\n   * Unsafe characters are either removed or replaced by a substitute set\n   * in the optional `options` object.\n   *\n   * Illegal Characters on Various Operating Systems\n   * / ? < > \\ : * | \"\n   * https://kb.acronis.com/content/39790\n   *\n   * Unicode Control codes\n   * C0 0x00-0x1f & C1 (0x80-0x9f)\n   * http://en.wikipedia.org/wiki/C0_and_C1_control_codes\n   *\n   * Reserved filenames on Unix-based systems (\".\", \"..\")\n   * Reserved filenames in Windows (\"CON\", \"PRN\", \"AUX\", \"NUL\", \"COM1\",\n   * \"COM2\", \"COM3\", \"COM4\", \"COM5\", \"COM6\", \"COM7\", \"COM8\", \"COM9\",\n   * \"LPT1\", \"LPT2\", \"LPT3\", \"LPT4\", \"LPT5\", \"LPT6\", \"LPT7\", \"LPT8\", and\n   * \"LPT9\") case-insesitively and with or without filename extensions.\n   *\n   * Capped at 255 characters in length.\n   * http://unix.stackexchange.com/questions/32795/what-is-the-maximum-allowed-filename-and-folder-size-with-ecryptfs\n   *\n   * @param  {String} input      Original filename\n   * @param  {String} substitute Characters to replace illegals\n   * @return {String}            Sanitized filename\n   */\n\n  const illegal = /[\\/\\?<>\\\\:\\*\\|\":]/g;\n  const control = /[\\x00-\\x1f\\x80-\\x9f]/g; // eslint-disable-line no-control-regex\n  const reserved = /^\\.+$/;\n  const windowsReserved = /^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\\..*)?$/i;\n  const nonAsciiChars = /[^\\x00-\\x7F]/g;\n  function sanitize(input, replacement = '') {\n    const sanitized = input.replace(illegal, replacement).replace(control, replacement).replace(reserved, replacement).replace(windowsReserved, replacement).replace(nonAsciiChars, replacement).slice(-255);\n    return sanitized;\n  }\n});","define(\"portal/utils/search-filter\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = searchTermToFilter;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function searchTermToFilter(fields, term, opKey = 'op') {\n    const filter = {\n      and: []\n    };\n    const words = term.split(' ');\n    for (const word of words) {\n      const group = {\n        or: []\n      };\n      for (const field of fields) {\n        group.or.push({\n          field,\n          [opKey]: 'ILIKE',\n          value: word\n        });\n      }\n      filter.and.push(group);\n    }\n    return filter;\n  }\n});","define(\"portal/utils/search-term-escape\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.searchTermEscape = searchTermEscape;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function searchTermEscape(value) {\n    return value.replace(/\\\\/g, '\\\\\\\\').replace(/%/g, '\\\\%').replace(/_/g, '\\\\_');\n  }\n});","define(\"portal/utils/smart-payroll-csv-generator\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.generateSmartPayrollCSV = generateSmartPayrollCSV;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * Takes worker details and returns a 2D array for Smartly\n   * @param {Array} workers - An array of objects with smartly employee ids and timesheet day totals\n   * @returns {Array} - A 2D array in the Smartly CSV format\n   */\n  function generateSmartPayrollCSV(workers) {\n    const table = workers.map(buildRow);\n    return table;\n  }\n  function buildRow(worker) {\n    const {\n      smartPayrollEmployeeCode,\n      dayTotals,\n      smartPayrollEmployeeDepartmentCode\n    } = worker;\n    const periodLength = dayTotals.length;\n    const totalHourForPeriod = dayTotals.reduce((t, {\n      totalHours\n    }) => t += totalHours, 0);\n    return ['#50',\n    // Line Style: Will always be \"#50\".\n    smartPayrollEmployeeCode,\n    // Employee ID: This is the Smartly employee ID, by default, it is the employees initials.\n    1,\n    // Pay Rate ID: Enum for type of hours worked. Will be \"1\" for regular hours.\n    totalHourForPeriod,\n    // Unit (hours): The total number of hours worked for the export.\n    smartPayrollEmployeeDepartmentCode,\n    // Dept Quick Ref\n    periodLength // Days Paid: The total number of days worked - can not be empty, must be \"0\".\n    ];\n  }\n});","define(\"portal/utils/sort-accounts\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sortAccounts;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function sortAccounts(accounts = [], sortKey = 'sortIndex', categoryKey = 'category') {\n    const profitAndLoss = [];\n    const balanceSheet = [];\n    const other = [];\n    accounts.forEach(target => {\n      const category = (0, _object.get)(target, categoryKey);\n      switch (category) {\n        case 'profit-and-loss':\n          profitAndLoss.push(target);\n          break;\n        case 'balance-sheet':\n          balanceSheet.push(target);\n          break;\n        default:\n          other.push(target);\n      }\n    });\n    return [...profitAndLoss.sortBy(sortKey), ...balanceSheet.sortBy(sortKey), ...other.sortBy(sortKey)];\n  }\n});","define(\"portal/utils/sort-by-account-code\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sortByAccountCode;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function sortByAccountCode(a, b) {\n    const aSystem = (0, _object.get)(a, 'system');\n    const aString = (0, _object.get)(a, 'code');\n    const bSystem = (0, _object.get)(b, 'system');\n    const bString = (0, _object.get)(b, 'code');\n    if (aSystem.indexOf('myob') > -1 && bSystem.indexOf('myob') > -1) {\n      const aCategory = parseInt(aString, 10);\n      const bCategory = parseInt(bString, 10);\n      const categoryComparison = compare(aCategory, bCategory);\n      if (categoryComparison) {\n        return categoryComparison;\n      }\n      const aCode = parseInt(aString.split(/[-\\/]/)[1], 10);\n      const bCode = parseInt(bString.split(/[-\\/]/)[1], 10);\n      return compare(aCode, bCode);\n    } else {\n      const aCode = Number(aString);\n      const bCode = Number(bString);\n      return compare(aCode, bCode);\n    }\n  }\n  function compare(a, b) {\n    return a < b ? -1 : b < a ? 1 : 0;\n  }\n});","define(\"portal/utils/string-similarity\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.compareTwoStrings = compareTwoStrings;\n  _exports.findBestMatch = findBestMatch;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  // https://www.npmjs.com/package/string-similarity\n  function compareTwoStrings(first, second) {\n    // eslint-disable-line complexity\n    first = first.replace(/\\s+/g, '');\n    second = second.replace(/\\s+/g, '');\n    if (!first.length && !second.length) return 1; // if both are empty strings\n    if (!first.length || !second.length) return 0; // if only one is empty string\n    if (first === second) return 1; // identical\n    if (first.length === 1 && second.length === 1) return 0; // both are 1-letter strings\n    if (first.length < 2 || second.length < 2) return 0; // if either is a 1-letter string\n\n    const firstBigrams = new Map();\n    for (let i = 0; i < first.length - 1; i++) {\n      const bigram = first.substring(i, i + 2);\n      const count = firstBigrams.has(bigram) ? firstBigrams.get(bigram) + 1 : 1;\n      firstBigrams.set(bigram, count);\n    }\n    let intersectionSize = 0;\n    for (let i = 0; i < second.length - 1; i++) {\n      const bigram = second.substring(i, i + 2);\n      const count = firstBigrams.has(bigram) ? firstBigrams.get(bigram) : 0;\n      if (count > 0) {\n        firstBigrams.set(bigram, count - 1);\n        intersectionSize++;\n      }\n    }\n    return 2.0 * intersectionSize / (first.length + second.length - 2);\n  }\n  function findBestMatch(mainString, targetStrings) {\n    if (!areArgsValid(mainString, targetStrings)) {\n      throw new Error('Bad arguments: First argument should be a string, second should be an array of strings');\n    }\n    const ratings = [];\n    let bestMatchIndex = 0;\n    for (let i = 0; i < targetStrings.length; i++) {\n      const currentTargetString = targetStrings[i];\n      const currentRating = compareTwoStrings(mainString, currentTargetString);\n      ratings.push({\n        target: currentTargetString,\n        rating: currentRating\n      });\n      if (currentRating > ratings[bestMatchIndex].rating) {\n        bestMatchIndex = i;\n      }\n    }\n    const bestMatch = ratings[bestMatchIndex];\n    return {\n      ratings: ratings,\n      bestMatch: bestMatch,\n      bestMatchIndex: bestMatchIndex\n    };\n  }\n  function areArgsValid(mainString, targetStrings) {\n    if (typeof mainString !== 'string') return false;\n    if (!Array.isArray(targetStrings)) return false;\n    if (!targetStrings.length) return false;\n    if (targetStrings.find(function (s) {\n      return typeof s !== 'string';\n    })) return false;\n    return true;\n  }\n});","define(\"portal/utils/sums\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.sum = sum;\n  _exports.sumBy = sumBy;\n  _exports.sumByProducts = sumByProducts;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function sum(object, ...keys) {\n    return keys.reduce((total, key) => {\n      const number = Number((0, _object.get)(object, key));\n      return isNaN(number) ? total : total + number;\n    }, 0);\n  }\n  function sumBy(array, key) {\n    // map + get rather than Ember's mapBy: this module is reached without the\n    // application having booted, and the array prototype extensions are not\n    // installed until it has.\n    return array.map(item => (0, _object.get)(item, key)).reduce((total, value) => {\n      const number = Number(value);\n      return isNaN(number) ? total : total + number;\n    }, 0);\n  }\n  function sumByProducts(array, ...keys) {\n    return array.reduce((total, element) => {\n      const product = keys.reduce((prod, key) => prod * Number((0, _object.get)(element, key)), 1);\n      return isNaN(product) ? total : total + product;\n    }, 0);\n  }\n});","define(\"portal/utils/task-templates\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = [{\n    name: 'Comprehensive',\n    items: [{\n      name: 'Preliminaries',\n      items: [{\n        name: 'Preliminary & generals'\n      }, {\n        name: 'Home warranty insurance'\n      }, {\n        name: 'Builders risk insurance'\n      }, {\n        name: 'General liability insurance'\n      }, {\n        name: 'Site management'\n      }, {\n        name: 'Administration'\n      }, {\n        name: 'Hoarding'\n      }, {\n        name: 'Health & safety'\n      }, {\n        name: 'Design'\n      }, {\n        name: 'Tree / vine protection'\n      }, {\n        name: 'Scaffolding'\n      }, {\n        name: 'Soil test & report'\n      }, {\n        name: 'Engineering fees'\n      }, {\n        name: 'Energy report'\n      }, {\n        name: 'Survey'\n      }, {\n        name: 'Retaining wall works'\n      }, {\n        name: 'Utility service'\n      }, {\n        name: 'Termite protection'\n      }, {\n        name: 'Amenity / toilet hire'\n      }, {\n        name: 'Tool & equipment hire'\n      }, {\n        name: 'Miscellaneous expense'\n      }, {\n        name: 'Crane hire'\n      }, {\n        name: 'Waste removal',\n        items: [{\n          name: 'Skip hire'\n        }]\n      }, {\n        name: 'Project management'\n      }, {\n        name: 'Permits'\n      }, {\n        name: 'Site visits'\n      }, {\n        name: 'Delivery fees'\n      }, {\n        name: 'Temporary fencing'\n      }, {\n        name: 'Site security'\n      }, {\n        name: 'Overheads'\n      }]\n    }, {\n      name: 'Demolition'\n    }, {\n      name: 'Excavation & foundations',\n      items: [{\n        name: 'Excavation & earth works'\n      }, {\n        name: 'Soil removal'\n      }]\n    }, {\n      name: 'Concrete',\n      items: [{\n        name: 'Termite protection'\n      }]\n    }, {\n      name: 'Structural steel',\n      items: [{\n        name: 'Structural steel'\n      }]\n    }, {\n      name: 'Carpentry',\n      items: [{\n        name: 'Framing'\n      }, {\n        name: 'Lock up'\n      }, {\n        name: 'Fixing'\n      }, {\n        name: 'Fit-off'\n      }, {\n        name: 'Doors',\n        items: [{\n          name: 'Architraves'\n        }]\n      }, {\n        name: 'Skirting'\n      }, {\n        name: 'Project'\n      }, {\n        name: 'Stairs',\n        items: [{\n          name: 'Supply & install'\n        }, {\n          name: 'Labour to assist install'\n        }]\n      }]\n    }, {\n      name: 'External cladding',\n      items: [{\n        name: 'Rendering works'\n      }, {\n        name: 'External wall cladding'\n      }]\n    }, {\n      name: 'Masonry',\n      items: [{\n        name: 'Masonry supply'\n      }, {\n        name: 'Masonry'\n      }, {\n        name: 'Masonry sundries'\n      }, {\n        name: 'Bring cleaner'\n      }]\n    }, {\n      name: 'Joinery',\n      items: [{\n        name: 'Joinery'\n      }, {\n        name: 'Stone benchtops'\n      }]\n    }, {\n      name: 'Roofing',\n      items: [{\n        name: 'Roofing'\n      }]\n    }, {\n      name: 'Windows',\n      items: [{\n        name: 'Supply & install'\n      }]\n    }, {\n      name: 'Glazing',\n      items: [{\n        name: 'Shower screen & mirrors'\n      }, {\n        name: 'Balustrading'\n      }]\n    }, {\n      name: 'Plastering',\n      items: [{\n        name: 'Plastering'\n      }, {\n        name: 'Gib stopping'\n      }, {\n        name: 'Plaster & GIB'\n      }]\n    }, {\n      name: 'Insulation',\n      items: [{\n        name: 'Supply & install'\n      }]\n    }, {\n      name: 'Heating & cooling',\n      items: [{\n        name: 'Heat pump supply & install'\n      }]\n    }, {\n      name: 'Drainage & plumbing',\n      items: [{\n        name: 'Drainage'\n      }, {\n        name: 'Stormwater'\n      }, {\n        name: 'Plumbing fittings & fixtures'\n      }, {\n        name: 'Watertank'\n      }, {\n        name: 'Septictank'\n      }]\n    }, {\n      name: 'Appliances',\n      items: [{\n        name: 'Kitchen'\n      }, {\n        name: 'Laundry'\n      }]\n    }, {\n      name: 'Electrical',\n      items: [{\n        name: 'General electrical'\n      }, {\n        name: 'Lighting supply & switches'\n      }, {\n        name: 'Alarm / intercom / security system'\n      }, {\n        name: 'Sound system'\n      }]\n    }, {\n      name: 'Painting',\n      items: [{\n        name: 'Internal painting'\n      }, {\n        name: 'External painting'\n      }]\n    }, {\n      name: 'Tiling & waterproofing',\n      items: [{\n        name: 'Tiling bathroom'\n      }, {\n        name: 'Tiling kitchen'\n      }, {\n        name: 'Tiling laundry'\n      }, {\n        name: 'Waterproofing'\n      }]\n    }, {\n      name: 'Final fit off & finishing',\n      items: [{\n        name: 'Garage door'\n      }, {\n        name: 'Caulking'\n      }, {\n        name: 'Cleaning'\n      }, {\n        name: 'Upholstery'\n      }, {\n        name: 'Blinds'\n      }]\n    }, {\n      name: 'Floor finishes',\n      items: [{\n        name: 'Carpet'\n      }, {\n        name: 'Flooring timber (engineered / laminate / vinyl / actual)',\n        items: [{\n          name: 'Floor s&ing'\n        }]\n      }]\n    }, {\n      name: 'External works',\n      items: [{\n        name: 'Concrete paving works',\n        items: [{\n          name: 'Driveway'\n        }, {\n          name: 'Footpaths'\n        }]\n      }, {\n        name: 'Deck',\n        items: [{\n          name: 'Deck framing'\n        }, {\n          name: 'Decking'\n        }]\n      }, {\n        name: 'Landscaping',\n        items: [{\n          name: 'Front garden'\n        }, {\n          name: 'Rear garden'\n        }]\n      }, {\n        name: 'Swimming pool',\n        items: [{\n          name: 'Pool fencing'\n        }]\n      }]\n    }, {\n      name: 'Subcontractors'\n    }, {\n      name: 'Sums'\n    }, {\n      name: 'Variations'\n    }]\n  }, {\n    name: 'Simple contract',\n    items: [{\n      name: 'Establishment',\n      items: [{\n        name: 'Preliminary & generals',\n        items: [{\n          name: 'Health & safety'\n        }, {\n          name: 'Project management'\n        }, {\n          name: 'Insurances',\n          items: [{\n            name: 'Halo guarantee'\n          }, {\n            name: 'Public liability'\n          }, {\n            name: 'Workers risk insurance'\n          }]\n        }, {\n          name: 'Toilet hire'\n        }, {\n          name: 'Rubbish removal',\n          items: [{\n            name: 'Skip bin'\n          }]\n        }, {\n          name: 'Excavation'\n        }, {\n          name: 'Surveying'\n        }, {\n          name: 'Scaffolding'\n        }, {\n          name: 'Hoardings'\n        }, {\n          name: 'Temporary fencing'\n        }, {\n          name: 'Power supply'\n        }, {\n          name: 'Water supply'\n        }, {\n          name: 'Administration'\n        }, {\n          name: 'Overheads'\n        }]\n      }, {\n        name: 'Consent applications'\n      }, {\n        name: 'Special materials procurement'\n      }]\n    }, {\n      name: 'Floor down',\n      items: [{\n        name: 'Foundations'\n      }, {\n        name: 'Floor structure'\n      }]\n    }, {\n      name: 'Framing erected',\n      items: [{\n        name: 'Wall framing'\n      }, {\n        name: 'Roof framing'\n      }]\n    }, {\n      name: 'Roof on',\n      items: [{\n        name: 'Roof'\n      }, {\n        name: 'Fascia'\n      }, {\n        name: 'Guttering'\n      }]\n    }, {\n      name: 'Closed in',\n      items: [{\n        name: 'Doors'\n      }, {\n        name: 'Windows'\n      }, {\n        name: 'Building wrap / external ply'\n      }]\n    }, {\n      name: 'Exterior cladding',\n      items: [{\n        name: 'Cladding'\n      }]\n    }, {\n      name: 'Interior linings',\n      items: [{\n        name: 'Interior linings'\n      }, {\n        name: 'Skirtings'\n      }, {\n        name: 'Architraves'\n      }, {\n        name: 'Rooms',\n        items: [{\n          name: 'Master bedroom'\n        }, {\n          name: 'Bedroom'\n        }, {\n          name: 'Bathroom'\n        }, {\n          name: 'Ensuite'\n        }, {\n          name: 'Powder room'\n        }, {\n          name: 'Lounge'\n        }, {\n          name: 'Dining'\n        }]\n      }]\n    }, {\n      name: 'Painting & kitchen',\n      items: [{\n        name: 'Exterior painting',\n        items: [{\n          name: 'Walls'\n        }, {\n          name: 'Soffits'\n        }]\n      }, {\n        name: 'Interior painting',\n        items: [{\n          name: 'Walls'\n        }, {\n          name: 'Ceiling'\n        }, {\n          name: 'Doors'\n        }]\n      }, {\n        name: 'Kitchen cabinetry'\n      }]\n    }, {\n      name: 'Subcontractors',\n      items: [{\n        name: 'Plumbing'\n      }, {\n        name: 'Painting'\n      }, {\n        name: 'Electrical'\n      }, {\n        name: 'Flooring',\n        items: [{\n          name: 'Timber'\n        }, {\n          name: 'Carpet'\n        }]\n      }]\n    }, {\n      name: 'Sums'\n    }, {\n      name: 'Variations'\n    }]\n  }, {\n    name: 'Flat structure',\n    items: [{\n      name: 'Preliminaries & general'\n    }, {\n      name: 'Site works & establishment'\n    }, {\n      name: 'Foundations'\n    }, {\n      name: 'Timber floor system'\n    }, {\n      name: 'Concrete floor system'\n    }, {\n      name: 'Framing'\n    }, {\n      name: 'Structural steel'\n    }, {\n      name: 'Roof cladding'\n    }, {\n      name: 'Exterior wall cladding'\n    }, {\n      name: 'Exterior windows & doors'\n    }, {\n      name: 'Internal wall framing & ceiling battens'\n    }, {\n      name: 'Plumbing, electrical & insulation'\n    }, {\n      name: 'Internal ceiling & wall linings'\n    }, {\n      name: 'Interior doors & finishings'\n    }, {\n      name: 'Painting'\n    }, {\n      name: 'Tiling - bathrooms, laundry & exterior deck'\n    }, {\n      name: 'Kitchen & laundry cabinetry'\n    }, {\n      name: 'Internal fit-off'\n    }, {\n      name: 'Floor coverings & finishings'\n    }, {\n      name: 'Landscaping'\n    }, {\n      name: 'Exterior specialty finishings'\n    }, {\n      name: 'Final touches'\n    }, {\n      name: 'General'\n    }, {\n      name: 'Insurance'\n    }, {\n      name: 'Travel'\n    }, {\n      name: 'Labour'\n    }, {\n      name: 'Scaffolding'\n    }, {\n      name: 'Sums',\n      items: [{\n        name: 'Aluminium window units'\n      }, {\n        name: 'Fireplace'\n      }, {\n        name: 'Plumbing hardware & fittings'\n      }, {\n        name: 'Toilets'\n      }, {\n        name: 'Tapware, vanities etc.'\n      }, {\n        name: 'Supply of light fittings'\n      }, {\n        name: 'Wardrobes & interior cabinetry'\n      }, {\n        name: 'Internal doors'\n      }, {\n        name: 'Tiles for bathroom & utility'\n      }, {\n        name: 'Kitchen + laundry cabinets'\n      }, {\n        name: 'Kitchen appliances'\n      }, {\n        name: 'Curtains / blinds'\n      }, {\n        name: 'Shower doors'\n      }, {\n        name: 'Mirrors'\n      }, {\n        name: 'Smoke alarm'\n      }, {\n        name: 'Toilet roll holders, towel rails'\n      }, {\n        name: 'Carpet'\n      }, {\n        name: 'Garage carpet'\n      }, {\n        name: 'Driveway'\n      }, {\n        name: 'Side fences & blockwork'\n      }, {\n        name: 'Canal landscaping (excludes planting)'\n      }, {\n        name: 'Gate(s)'\n      }, {\n        name: 'T.V aerial - assume sky dish to be installed'\n      }, {\n        name: 'Clothesline'\n      }]\n    }]\n  }];\n});","define(\"portal/utils/titleize\", [\"exports\", \"ember-cli-string-helpers/utils/titleize\"], function (_exports, _titleize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _titleize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/utils/titleize\"eaimeta@70e063a35619d71f\n});","define(\"portal/utils/tree-item\", [\"exports\", \"lodash\", \"@glimmer/tracking\", \"@ember/array\"], function (_exports, _lodash, _tracking, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"lodash\",0,\"@glimmer/tracking\",0,\"@ember/array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let TreeItem = _exports.default = (_class = class TreeItem {\n    static findItemInTree(tree, itemToFind) {\n      let match;\n      (function findItem(nodes) {\n        nodes.forEach(node => {\n          if (match) return;\n          if (node.item === itemToFind) {\n            match = node;\n          } else if (node.children) {\n            findItem(node.children);\n          }\n        });\n      })(tree);\n      return match;\n    }\n    static getPath(tree, targetBranch, labelKey = 'name') {\n      let resultPath = [];\n      function traverse(nodes, currentPath) {\n        for (const node of nodes) {\n          const label = node.item[labelKey];\n          const newPath = [...currentPath, label];\n          if (node === targetBranch || node.item === targetBranch.item) {\n            resultPath = newPath;\n            return true;\n          }\n          if (node.children && node.children.length > 0) {\n            if (traverse(node.children, newPath)) {\n              return true;\n            }\n          }\n        }\n        return false;\n      }\n      traverse(tree, []);\n      return resultPath;\n    }\n\n    // constructs a nested item tree from tasks and projects\n    static constructItemTreeFromProjectAndTasks(taskData, projectData) {\n      const projectGroupedTopLevelTasks = _lodash.default.groupBy(taskData.toArray(), task => {\n        return !task.belongsTo('parent').id() && task.belongsTo('project').id();\n      });\n      const projectItems = projectData.toArray().map(project => new TreeItem(project));\n      projectItems.forEach(container => {\n        const tasks = projectGroupedTopLevelTasks[container.item.id];\n        if (!tasks) return;\n        container.children = tasks.map(task => new TreeItem(task, 'children'));\n      });\n      return projectItems;\n    }\n\n    // constructs a nested item tree from tasks\n    static constructItemTreeFromTasks(taskData, hideInactiveTimesheetTasks, excludedTasks = []) {\n      const excludedTaskIds = new Set(excludedTasks.map(task => task.id));\n      const topTasks = taskData.toArray().filter(task => !task.belongsTo('parent').id() && !excludedTaskIds.has(task.id) && ['ACTIVE', 'DRAFT_CREATED'].includes(task.status));\n      const taskItems = (0, _array.A)(topTasks).sortBy('path').map(task => new TreeItem(task, 'children', hideInactiveTimesheetTasks, excludedTaskIds));\n      return taskItems;\n    }\n    constructor(item, childKey, hideInactiveTimesheetTasks, excludedItemIds = new Set()) {\n      _initializerDefineProperty(this, \"item\", _descriptor, this);\n      _initializerDefineProperty(this, \"children\", _descriptor2, this);\n      this.item = item;\n      if (childKey && item[childKey]) {\n        const childrenArray = (0, _array.A)(item.hasMany(childKey).value()?.toArray());\n        this.children = childrenArray.sortBy('path').filter(child => !excludedItemIds.has(child.id) && ['ACTIVE', 'DRAFT_CREATED'].includes(child.status) && (hideInactiveTimesheetTasks ? child.timesheetStatus === 'ACTIVE' : true)).map(child => new TreeItem(child, childKey, hideInactiveTimesheetTasks, excludedItemIds)) || [];\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"item\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _class);\n});","define(\"portal/validators/bill-item\", [\"exports\", \"ember-changeset-validations/validators\"], function (_exports, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = buildBillItemValidations;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/validators\"eaimeta@70e063a35619d71f\n  function buildBillItemValidations(intl) {\n    const eitherDescriptionOrProductCode = (key, newValue, oldValue, changes, content) => {\n      const description = changes.description ?? content.description;\n      const productCode = changes.productCode ?? content.productCode;\n      if (!description && !productCode) {\n        if (key === 'description') {\n          return intl.t('validators.bill-item.Code or Description is required');\n        }\n        if (key === 'productCode') {\n          return '&nbsp;';\n        }\n      }\n      return true;\n    };\n    return {\n      description: [eitherDescriptionOrProductCode, (0, _validators.validateLength)({\n        max: 255\n      })],\n      productCode: [eitherDescriptionOrProductCode, (0, _validators.validateLength)({\n        max: 100\n      })],\n      quantity: [(0, _validators.validatePresence)(true)],\n      unitPrice: [(0, _validators.validatePresence)(true), (0, _validators.validateNumber)({\n        allowString: true,\n        gte: 0,\n        message: intl.t('validators.bill-item.Unit price cannot be negative')\n      })]\n    };\n  }\n});","define(\"portal/validators/bill\", [\"exports\", \"ember-changeset-validations/validators\"], function (_exports, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.VALID_STATUSES = _exports.VALID_ALLOCATION_TYPES = void 0;\n  _exports.default = buildBillValidations;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/validators\"eaimeta@70e063a35619d71f\n  const VALID_STATUSES = _exports.VALID_STATUSES = ['DRAFT', 'ACCEPTED', 'ARCHIVED', 'HELD', 'PAID'];\n  const VALID_ALLOCATION_TYPES = _exports.VALID_ALLOCATION_TYPES = ['MATERIALS', 'LABOUR', 'SUBCONTRACTORS'];\n  function buildBillValidations(intl) {\n    const validateDueDate = (0, _validators.validatePresence)(true);\n    return {\n      billNumber: [(0, _validators.validatePresence)(true), (0, _validators.validateLength)({\n        max: 100\n      })],\n      issuer: [(0, _validators.validatePresence)(true)],\n      issuerContact: [(0, _validators.validatePresence)({\n        presence: true,\n        message: intl.t('validators.bill.pleaseSelectAnActualContactOrCreateOne')\n      })],\n      issueDate: [(0, _validators.validatePresence)(true)],\n      dueDate: [(key, value, oldValue, changes, content) => {\n        const billType = changes?.billType ?? content?.billType;\n        return billType === 'CREDIT_NOTE' ? true : validateDueDate(key, value, oldValue, changes, content);\n      }],\n      status: [(0, _validators.validatePresence)(true), (0, _validators.validateInclusion)({\n        list: VALID_STATUSES\n      })],\n      allocationType: [(0, _validators.validatePresence)(true), (0, _validators.validateInclusion)({\n        list: VALID_ALLOCATION_TYPES\n      })]\n    };\n  }\n});","define(\"portal/validators/ips-connection\", [\"exports\", \"ember-changeset-validations/validators\"], function (_exports, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = buildIpsConnectionValidations;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/validators\"eaimeta@70e063a35619d71f\n  function buildIpsConnectionValidations(intl) {\n    return {\n      contactEmail: (0, _validators.validateFormat)({\n        type: 'email',\n        message: intl.t('validators.ips-connection.Please provide a valid email')\n      })\n    };\n  }\n});","define('portal/config/environment', [], function() {\n  var prefix = 'portal';\ntry {\n  var metaName = prefix + '/config/environment';\n  var rawConfig = document.querySelector('meta[name=\"' + metaName + '\"]').getAttribute('content');\n  var config = JSON.parse(decodeURIComponent(rawConfig));\n\n  var exports = { 'default': config };\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n  return exports;\n}\ncatch(err) {\n  throw new Error('Could not read config from meta tag with name \"' + metaName + '\".');\n}\n\n});\n","\n          if (!runningTests) {\n            require(\"portal/app\")[\"default\"].create({\"appVersion\":\"2.0.1\",\"name\":\"portal\",\"version\":\"2.0.0+26f00de0\"});\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,S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ACA2zB,MAAA,wBACA3zB,MAAA,OACA,CACA2zB,MAAA,4BACA3zB,MAAA,OACA,CACA2zB,MAAA,qCACA3zB,MAAA,OACA,CACA2zB,MAAA,2BACA3zB,MAAA,OACA,CACA2zB,MAAA,uBACA3zB,MAAA,OACA,CACA2zB,MAAA,yCACA3zB,MAAA,OACA,CACA2zB,MAAA,+BACA3zB,MAAA,OACA,CACA2zB,MAAA,uCACA3zB,MAAA,OACA,CACA2zB,MAAA,sBACA3zB,MAAA,OACA,CACA2zB,MAAA,8BACA3zB,MAAA,OACA,CACA2zB,MAAA,uBACA3zB,MAAA,OACA,CACA2zB,MAAA,yBACA3zB,MAAA,OACA,CACA2zB,MAAA,sCACA3zB,MAAA,OACA,CACA2zB,MAAA,sBACA3zB,MAAA,OACA,CACA2zB,MAAA,wBACA3zB,MAAA,OACA,CACA2zB,MAAA,uBACA3zB,MAAA,OACA,CACA2zB,MAAA,mBACA3zB,MAAA,OACA,CACA2zB,MAAA,gCACA3zB,MAAA,OACA,CACA2zB,MAAA,uBACA3zB,MAAA,OACA,CACA2zB,MAAA,6BACA3zB,MAAA,OACA,CACA2zB,MAAA,qBACA3zB,MAAA,OACA,CACA2zB,MAAA,yCACA3zB,MAAA,OACA,CACA2zB,MAAA,yBACA3zB,MAAA,OACA,CACA2zB,MAAA,qBACA3zB,MAAA,OACA,CACA2zB,MAAA,wBACA3zB,MAAA,OACA,CACA2zB,MAAA,2BACA3zB,MAAA,OACA,CACA2zB,MAAA,sBACA3zB,MAAA,OACA,CACA2zB,MAAA,sBACA3zB,MAAA,OACA,CACA2zB,MAAA,4BACA3zB,MAAA,OACA,CACA2zB,MAAA,qBACA3zB,MAAA,OACA,CACA2zB,MAAA,uBACA3zB,MAAA,OACA,CACA2zB,MAAA,oBACA3zB,MAAA,OACA,CACA2zB,MAAA,wBACA3zB,MAAA,OACA,CACA2zB,MAAA,2BACA3zB,MAAA,OACA,CACA2zB,MAAA,sBACA3zB,MAAA,OACA,CACA2zB,MAAA,sBACA3zB,MAAA,OACA,CACA2zB,MAAA,2BACA3zB,MAAA,OACA,CACA2zB,MAAA,4BACA3zB,MAAA,OACA,CACA2zB,MAAA,qBACA3zB,MAAA,OACA,CACA2zB,MAAA,qCACA3zB,MAAA,OACA,CACA2zB,MAAA,qBACA3zB,MAAA,OACA,CACA2zB,MAAA,uBACA3zB,MAAA,OACA,CACA2zB,MAAA,2BACA3zB,MAAA,OACA,CACA2zB,MAAA,2BACA3zB,MAAA,OACA,CACA2zB,MAAA,qCACA3zB,MAAA,OACA,CACA2zB,MAAA,4BACA3zB,MAAA,OACA,CACA2zB,MAAA,qBACA3zB,MAAA,OACA,CACA2zB,MAAA,sBACA3zB,MAAA,OACA,CACA2zB,MAAA,yBACA3zB,MAAA,OACA,CACA2zB,MAAA,wBACA3zB,MAAA,OACA,CACA2zB,MAAA,+BACA3zB,MAAA,OACA,CACA2zB,MAAA,sBACA3zB,MAAA,OACA,CACA2zB,MAAA,2BACA3zB,MAAA,OACA,CACA2zB,MAAA,sBACA3zB,MAAA,OACA,CACA2zB,MAAA,uBACA3zB,MAAA,OACA,CACA2zB,MAAA,+BACA3zB,MAAA,OACA,CACA2zB,MAAA,+BACA3zB,MAAA,OACA,CACA2zB,MAAA,6BACA3zB,MAAA,OACA,CACA2zB,MAAA,wBACA3zB,MAAA,OACA,CACA2zB,MAAA,wBACA3zB,MAAA,OACA,CACA2zB,MAAA,sBACA3zB,MAAA,OACA,CACA2zB,MAAA,0BACA3zB,MAAA,OACA,CACA2zB,MAAA,yBACA3zB,MAAA,OACA,CACA2zB,MAAA,mCACA3zB,MAAA,OACA,CACA2zB,MAAA,uBACA3zB,MAAA,OACA,CACA2zB,MAAA,qCACA3zB,MAAA,OACA,CACA2zB,MAAA,oCACA3zB,MAAA,OACA,CACA2zB,MAAA,oBACA3zB,MAAA,OACA,CACA2zB,MAAA,sBACA3zB,MAAA,OACA,CACA2zB,MAAA,sBACA3zB,MAAA,OACA,CACA2zB,MAAA,qBACA3zB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AA,sBACAliF,aAAA,cACAjrD,OAAA,OACA5H,MAAA,MACA84L,WAAA,KACA,CACA5tL,KAAA,gBACAulH,QAAA,6BACAskB,OAAA,yBACAliF,aAAA,cACAjrD,OAAA,OACA5H,MAAA,MACA84L,WAAA,KACA,CACA5tL,KAAA,qBACAulH,QAAA,0BACAskB,OAAA,kBACAliF,aAAA,YACAjrD,OAAA,OACA5H,MAAA,MACA84L,WAAA,KACA,CACA5tL,KAAA,wBACAulH,QAAA,6BACAskB,OAAA,4BACAliF,aAAA,cACAjrD,OAAA,OACA5H,MAAA,MACA84L,WAAA,KACA,CACA5tL,KAAA,wBACAulH,QAAA,+BACAskB,OAAA,4BACAliF,aAAA,cACAjrD,OAAA,SACA5H,MAAA,MACA84L,WAAA,GACA,CACA5tL,KAAA,6BACAulH,QAAA,+BACAskB,OAAA,eACAliF,aAAA,YACAjrD,OAAA,SACA5H,MAAA,MACA84L,WAAA,GACA,CACA5tL,KAAA,sBACAulH,QAAA,2BACAskB,OAAA,yBACAliF,aAAA,cACAjrD,OAAA,OACA5H,MAAA,MACA84L,WAAA,MAUAj6L,EAAAy5L,YAAA,EACAptL,KAAA,mBACAouL,OAAA,IACA/5F,SAAA,OACA26F,IAAA,CACAv8F,OAAA,IACAE,UAAA,IACAC,eAAA,KAEA,CACA5yF,KAAA,qBACAouL,OAAA,GACA/5F,SAAA,gBACA26F,IAAA,CACAv8F,OAAA,IACAE,UAAA,IACAC,eAAA,KAEA,CACA5yF,KAAA,UACAouL,OAAA,IACA/5F,SAAA,OACA26F,IAAA,CACAv8F,OAAA,IACAE,UAAA,GACAC,eAAA,MAEA,CACA5yF,KAAA,UACAouL,OAAA,IACA/5F,SAAA,gBACA26F,IAAA,CACAv8F,OAAA,IACAE,UAAA,IACAC,eAAA,KAEA,CACA5yF,KAAA,2BACAouL,OAAA,IACA/5F,SAAA,OACA26F,IAAA,CACAv8F,OAAA,GACAE,UAAA,GACAC,eAAA,IAEA,CACA5yF,KAAA,WACAouL,OAAA,IACA/5F,SAAA,OACA26F,IAAA,CACAv8F,OAAA,GACAE,UAAA,GACAC,eAAA,KAEA,CACA5yF,KAAA,sBACAouL,OAAA,IACA/5F,SAAA,gBACA26F,IAAA,CACAv8F,OAAA,EACAE,UAAA,GACAC,eAAA,KAEA,CACA5yF,KAAA,oBACAouL,OAAA,IACA/5F,SAAA,gBACA26F,IAAA,CACAv8F,OAAA,EACAE,UAAA,IACAC,eAAA,MAEA,CACA5yF,KAAA,aACAouL,OAAA,IACA/5F,SAAA,OACA26F,IAAA,CACAv8F,OAAA,GACAE,UAAA,GACAC,eAAA,IAEA,CACA5yF,KAAA,iBACAouL,OAAA,IACA/5F,SAAA,gBACA26F,IAAA,CACAv8F,OAAA,EACAE,UAAA,IACAC,eAAA,MAEA,CACA5yF,KAAA,mBACAouL,OAAA,IACA/5F,SAAA,OACA26F,IAAA,CACAv8F,OAAA,GACAE,UAAA,GACAC,eAAA,IAEA,CACA5yF,KAAA,uBACAouL,OAAA,IACA/5F,SAAA,OACA26F,IAAA,CACAv8F,OAAA,GACAE,UAAA,GACAC,eAAA,KAEA,CACA5yF,KAAA,kBACAouL,OAAA,IACA/5F,SAAA,OACA26F,IAAA,CACAv8F,OAAA,IACAE,UAAA,IACAC,eAAA,KAEA,CACA5yF,KAAA,WACAouL,OAAA,IACA/5F,SAAA,gBACA26F,IAAA,CACAv8F,OAAA,EACAE,UAAA,GACAC,eAAA,KAEA,CACA5yF,KAAA,WACAouL,OAAA,IACA/5F,SAAA,gBACA26F,IAAA,CACAv8F,OAAA,EACAE,UAAA,GACAC,eAAA,KAEA,CACA5yF,KAAA,cACAouL,OAAA,IACA/5F,SAAA,gBACA26F,IAAA,CACAv8F,OAAA,GACAE,UAAA,GACAC,eAAA,KAEA,CACA5yF,KAAA,yBACAouL,OAAA,IACA/5F,SAAA,YACA26F,IAAA,CACAv8F,OAAA,GACAE,UAAA,EACAC,eAAA,MAGAj/F,EAAAohM,QAAA,EACA1nI,UAAA,OACAC,SAAA,YACAizC,QAAA,GACA1c,cAAA,IACA,CACAx2B,UAAA,QACAC,SAAA,QACAizC,QAAA,GACA1c,cAAA,IACA,CACAx2B,UAAA,MACAC,SAAA,aACAizC,QAAA,GACA1c,cAAA,IACA,CACAx2B,UAAA,SACAC,SAAA,OACAizC,QAAA,GACA1c,cAAA,IACA,CACAx2B,UAAA,QACAC,SAAA,QACAizC,QAAA,GACA1c,cAAA,IACA,CACAx2B,UAAA,WACAC,SAAA,SACAizC,QAAA,GACA1c,cAAA,IACA,CACAx2B,UAAA,OACAC,SAAA,SACAizC,QAAA,GACA1c,cAAA,IACA,CACAx2B,UAAA,OACAC,SAAA,SACAizC,QAAA,GACA1c,cAAA,IACA,CACAx2B,UAAA,OACAC,SAAA,SACAizC,QAAA,GACA1c,cAAA,IACA,CACAx2B,UAAA,OACAC,SAAA,aACAizC,QAAA,GACA1c,cAAA,KAOAlwF,EAAAilM,UAAA,EACA54L,KAAA,wBACAulH,QAAA,8CACAhxF,eAAA,YACA0hK,UAAA,cACAC,YAAA,uBACA,CACAl2L,KAAA,uBACAulH,QAAA,4CACAhxF,eAAA,YACA0hK,UAAA,cACAC,YAAA,uBACA,CACAl2L,KAAA,uBACAulH,QAAA,sCACAhxF,eAAA,YACA0hK,UAAA,cACAC,YAAA,uBACA,CACAl2L,KAAA,2BACAulH,QAAA,8CACAhxF,eAAA,YACA0hK,UAAA,cACAC,YAAA,uBACA,CACAl2L,KAAA,8BACAulH,QAAA,yCACAhxF,eAAA,iBACA0hK,UAAA,cACAC,YAAA,uBACA,CACAl2L,KAAA,iCACAulH,QAAA,4CACAhxF,eAAA,iBACA0hK,UAAA,cACAC,YAAA,uBACA,CACAl2L,KAAA,sBACAulH,QAAA,4CACAhxF,eAAA,iBACA0hK,UAAA,cACAC,YAAA,uBACA,CACAl2L,KAAA,kBACAulH,QAAA,8BACAhxF,eAAA,iBACA0hK,UAAA,cACAC,YAAA,uBACA,CACAl2L,KAAA,gCACAulH,QAAA,yCACAhxF,e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EAAA,wDACAulC,QAAA/jC,KAAA2V,KAAAnX,EAAA,kEACAojF,QAAA,EACA5b,MAAA,iBAGAyiB,MAAA,GACA1nD,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAAjvM,KAAA2V,KAAAnX,EAAA,oDACA,CACAgvM,QAAA,CACA2C,aAAA,WACA5qM,UAEAw7B,OAAA,eACAkoD,WAAA,EACArH,QAAA,EACA5b,MAAA,eAEAnkC,UAAA,IACA,EACAd,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAAjvM,KAAA2V,KAAAnX,EAAA,0DACA,CACAgvM,QAAA,CACA2C,aAAA,WACA5qM,UAEAw7B,OAAA,YACA6gD,QAAA,EACA5b,MAAA,eAEAnkC,UAAA,IACA,EACAd,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAA,IACA,CACAluK,OAAA,OACAkuK,cAAAjvM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AA,cACAmB,OAAA,IAEAnB,EAAAuC,aAAA;AAEAvC,EAAAuC,QAAA,EACA8J,KAAA,gBACA2K,MAAA,EACA3K,KAAA,gBACA2K,MAAA,EACA3K,KAAA,0BACA,CACAA,KAAA,2BACA,CACAA,KAAA,2BACA,CACAA,KAAA,+BACA,CACAA,KAAA,mBACA,CACAA,KAAA,kBACA,CACAA,KAAA,YACA,CACAA,KAAA,mBACA,CACAA,KAAA,UACA,CACAA,KAAA,0BACA,CACAA,KAAA,eACA,CACAA,KAAA,sBACA,CACAA,KAAA,oBACA,CACAA,KAAA,iBACA,CACAA,KAAA,UACA,CACAA,KAAA,wBACA,CACAA,KAAA,mBACA,CACAA,KAAA,sBACA,CACAA,KAAA,yBACA,CACAA,KAAA,yBACA,CACAA,KAAA,yBACA,CACAA,KAAA,cACA,CACAA,KAAA,gBACA2K,MAAA,EACA3K,KAAA,eAEA,CACAA,KAAA,sBACA,CACAA,KAAA,WACA,CACAA,KAAA,eACA,CACAA,KAAA,iBACA,CACAA,KAAA,qBACA,CACAA,KAAA,iBACA,CACAA,KAAA,eAEA,CACAA,KAAA,cACA,CACAA,KAAA,2BACA2K,MAAA,EACA3K,KAAA,4BACA,CACAA,KAAA,kBAEA,CACAA,KAAA,WACA2K,MAAA,EACA3K,KAAA,wBAEA,CACAA,KAAA,mBACA2K,MAAA,EACA3K,KAAA,sBAEA,CACAA,KAAA,YACA2K,MAAA,EACA3K,KAAA,WACA,CACAA,KAAA,WACA,CACAA,KAAA,UACA,CACAA,KAAA,WACA,CACAA,KAAA,QACA2K,MAAA,EACA3K,KAAA,iBAEA,CACAA,KAAA,YACA,CACAA,KAAA,WACA,CACAA,KAAA,SACA2K,MAAA,EACA3K,KAAA,oBACA,CACAA,KAAA,gCAGA,CACAA,KAAA,oBACA2K,MAAA,EACA3K,KAAA,mBACA,CACAA,KAAA,4BAEA,CACAA,KAAA,UACA2K,MAAA,EACA3K,KAAA,kBACA,CACAA,KAAA,WACA,CACAA,KAAA,oB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AAA,EACA3K,KAAA,gBACA,CACAA,KAAA,iBAEA,CACAA,KAAA,gBACA2K,MAAA,EACA3K,KAAA,oBAGA,CACAA,KAAA,kBACA,CACAA,KAAA,QACA,CACAA,KAAA,gBAEA,CACAA,KAAA,kBACA2K,MAAA,EACA3K,KAAA,gBACA2K,MAAA,EACA3K,KAAA,yBACA2K,MAAA,EACA3K,KAAA,mBACA,CACAA,KAAA,sBACA,CACAA,KAAA,aACA2K,MAAA,EACA3K,KAAA,kBACA,CACAA,KAAA,oBACA,CACAA,KAAA,4BAEA,CACAA,KAAA,eACA,CACAA,KAAA,kBACA2K,MAAA,EACA3K,KAAA,cAEA,CACAA,KAAA,cACA,CACAA,KAAA,aACA,CACAA,KAAA,eACA,CACAA,KAAA,aACA,CACAA,KAAA,qBACA,CACAA,KAAA,gBACA,CACAA,KAAA,gBACA,CACAA,KAAA,kBACA,CACAA,KAAA,eAEA,CACAA,KAAA,wBACA,CACAA,KAAA,mCAEA,CACAA,KAAA,aACA2K,MAAA,EACA3K,KAAA,eACA,CACAA,KAAA,qBAEA,CACAA,KAAA,kBACA2K,MAAA,EACA3K,KAAA,gBACA,CACAA,KAAA,kBAEA,CACAA,KAAA,UACA2K,MAAA,EACA3K,KAAA,QACA,CACAA,KAAA,UACA,CACAA,KAAA,eAEA,CACAA,KAAA,YACA2K,MAAA,EACA3K,KAAA,SACA,CACAA,KAAA,WACA,CACAA,KAAA,kCAEA,CACAA,KAAA,oBACA2K,MAAA,EACA3K,KAAA,cAEA,CACAA,KAAA,mBACA2K,MAAA,EACA3K,KAAA,oBACA,CACAA,KAAA,aACA,CACAA,KAAA,eACA,CACAA,KAAA,QACA2K,MAAA,EACA3K,KAAA,kBACA,CACAA,KAAA,WACA,CACAA,KAAA,YACA,CACAA,KAAA,WACA,CACAA,KAAA,eACA,CACAA,KAAA,UACA,CACAA,KAAA,cAGA,CACAA,KAAA,qBACA2K,MAAA,EACA3K,KAAA,oBACA2K,MAAA,EACA3K,KAAA,SACA,CACAA,KAAA,aAEA,CACAA,KAAA,oBACA2K,MAAA,EACA3K,KAAA,SACA,CACAA,KAAA,WACA,CACAA,KAAA,WAEA,CACAA,KAAA,uBAEA,CACAA,KAAA,iBACA2K,MAAA,EACA3K,KAAA,YACA,CACAA,KAAA,YACA,CACAA,KAAA,cACA,CACAA,KAAA,WACA2K,MAAA,EACA3K,KAAA,UACA,CACAA,KAAA,cAGA,CACAA,KAAA,QACA,CACAA,KAAA,gBAEA,CACAA,KAAA,iBACA2K,MAAA,EACA3K,KAAA,2BACA,CACAA,KAAA,8BACA,CACAA,KAAA,eACA,CACAA,KAAA,uBACA,CACAA,KAAA,yBACA,CACAA,KAAA,WACA,CACAA,KAAA,oBACA,CACAA,KAAA,iBACA,CACAA,KAAA,0BACA,CACAA,KAAA,4BACA,CACAA,KAAA,2CACA,CACAA,KAAA,qCACA,CACAA,KAAA,mCACA,CACAA,KAAA,+BACA,CACAA,KAAA,YACA,CACAA,KAAA,+CACA,CACAA,KAAA,+BACA,CACAA,KAAA,oBACA,CACAA,KAAA,gCACA,CACAA,KAAA,eACA,CACAA,KAAA,iCACA,CACAA,KAAA,iBACA,CACAA,KAAA,WACA,CACAA,KAAA,aACA,CACAA,KAAA,UACA,CACAA,KAAA,UACA,CACAA,KAAA,eACA,CACAA,KAAA,OACA2K,MAAA,EACA3K,KAAA,0BACA,CACAA,KAAA,aACA,CACAA,KAAA,gCACA,CACAA,KAAA,WACA,CACAA,KAAA,0BACA,CACAA,KAAA,4BACA,CACAA,KAAA,kCACA,CACAA,KAAA,kBACA,CACAA,KAAA,gCACA,CACAA,KAAA,8BACA,CACAA,KAAA,sBACA,CACAA,KAAA,qBACA,CACAA,KAAA,gBACA,CACAA,KAAA,WACA,CACAA,KAAA,eACA,CACAA,KAAA,oCACA,CACAA,KAAA,UACA,CACAA,KAAA,iBACA,CACAA,KAAA,YACA,CACAA,KAAA,2BACA,CACAA,KAAA,yCACA,CACAA,KAAA,WACA,CACAA,KAAA,gDACA,CAC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